This is some basic glue that connects to Amber Electric's realtime wholesale electricity pricing API. It pulls out some stats, does some calculations and publishes the result to an MQTT server for integration with home automation systems.
The API is not ready for general consumption, I've kindly been given access for experimentation, but you may have success in contacting their support folk and asking nicely.
The goal of this interface is to enable smarter decisions on domestic power usage in order to minimise power bills and benefit the environment. I can selectively charge up my home battery storage and hot water systems while electricity is cheap/free/negative and avoid drawing from the grid when the prices are high.
Right now I'm consuming the MQTT with Telegraf into Influxdb and graphing with Grafana. Later on, once we've actually switched over to Amber for our electricity supply, I'll probably use Nodered to automate our battery and hot water system based on the price of electricity.
Edit the contents of secrets.py to your heart's content, or copy it to secrets_real.py and make your changes there if you're worried about pushing the changes to a public repo. You'll need to populate the API_URI variable with the actual API URL from Amber Electric. If/when I get the OK to include the URL in this script by default, I'll do so.