Adding "on-peak" and "off-peak" colouring to the production/consumption graph
solrak44 opened this issue · 19 comments
Kia ora,
I love your visualiser software. We have it proudly displayed in the kitchen and it's much remarked upon by visitors to our house! It frequently prompts us to ask "why are we using so much power?" and go looking for the offending appliance. It also prompts us to do something with the power once the hot water has finished heating. Awsome stuff!
Our power company is offering us on-peak and off-peak rates for our power at very set times of the day. I wondered how easy it would be add some background colour to the production/consumption graph to show these times (and prompt us to avoid them for high power use appliances). Is this a couple of lines or a complete re-write?
Thanks again for your awesome software, and please ignore this if it's a cheeky thing to ask :-)
Karl
I have added some support for bands within the graph. Please try out the new release (See the readme for setup).
Have not added support in the docker image though so hopefully you run the jar.
Sorry for the late reply - I've been away. While I was originally using the RPi, I'm running as a docker image on my new Synology. I'll see if I can get the RPi version up and running again and test this for you. It looks great!
Ok, I am looking at how to add this feature to the Docker image so it will be there eventually
The docker image should now also work with this feature, you will need to bind a new volume. I have added instructions to the readme.
Let me know of any issues
Interesting, is a file being created in the folder you mapped /internal_db to?
Not yet. Put the docker run command you are using and let me see if there is something there.
Hmm, sorry no image attached,
Maybe compare the ownership information of the 2 files and the 2 directories. It certainly looks like a lack of write permission.
Yes sorry, that's a debug I left in there.
Try sending any images to my email dlmcpaul AT gmail.com
Ok, I have added a default for the database to the docker file. Try the latest image. It should also remove the logging.
Cool. I will close this issue off then.