I've created new Python scripts which I can now run on my MacBook to watch what's going on with my solar system. It gives me quite a bit of insight and control over things at my home.
* ChargerOff.py... View MoreI've created new Python scripts which I can now run on my MacBook to watch what's going on with my solar system. It gives me quite a bit of insight and control over things at my home.
* ChargerOff.py, ChargerOn.py
* CrockpotOff.py, CrockpotOn.py
* FanOff.py, FanOn.py, LightOff.py, LightOn.py
* FridgeOff.py, FridgeOn.py, MedFridgeOff.py, MedFridgeOn.py
* GetBatteryCurrent.py, GetBatteryTemp.py, GetBatteryVoltage.py
* GetPVCurrent.py, GetPVVoltage.py, GetPVWattage.py
* GetMode.py, GetLoad.py
* MonitorAbsorption.py, MonitorBatteryTemp.py, MonitorBatteryVoltage.py, MonitorFloat.py, MonitorBatteryTempOCD.py, MonitorBatteryVoltageOCD.py, MonitorNetwork.py, MonitorPVWattage.py, MonitorPVWattageOCD.py
The ones which toggle power are directed toward a number of TP-Link TAPO smartplugs. The ones beginning with "Get..." request information from the system. The ones beginning with "Monitor..." are on fifteen minutes and five second repeats and query the related information, using the MacOS "say" command to speak the results.
The query scripts can now accept a command line argument of "raw" to just return the related number. So next, I can make new scripts which then can do something above/below a certain threshold, for example. (I might decide to turn off the crockpot if the weather is overcast so much that the battery voltage isn't really charging enough that day.)