-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
-
py-applescript
An easy-to-use Python wrapper for NSAppleScript, allowing Python scripts to communicate with AppleScripts and AppleScriptable applications.
I've got a Mac OS status bar app written in Python here that could easily be modified to do this. It uses rumps to create the status bar app and psutil to monitor the plugged/unplugged state and charge status. I use it to remind me to plug in the charger when charge gets below a certain level and unplug the charger when charge gets above a certain level. Here's how to get the plugged in status (which you could check periodically on a loop)
I've got a Mac OS status bar app written in Python here that could easily be modified to do this. It uses rumps to create the status bar app and psutil to monitor the plugged/unplugged state and charge status. I use it to remind me to plug in the charger when charge gets below a certain level and unplug the charger when charge gets above a certain level. Here's how to get the plugged in status (which you could check periodically on a loop)
And to change the volume, you could use osascript
or py-applescript