I made a tiny hack to the rawdata script, to display a delta between min and max readings, which I thought I’d share as it may be of use to others. Hopefully this is the right place for this? Please forgive me if it’s not!
One of the things I sometimes like to know is how many kWh I’ve either drawn from grid, or produced, or fed into my immersion heater “so far today”. The bargraph vis script doesn’t display ‘the day so far’ as its final column, so what I’ve tended to do is fire up the ‘rawdata’ and then view the day from midnight onwards. This would then display below the graph, a value for Mean, Min, Max etc. But not the difference from min to max (i.e. how much produced so far today). I’ve added an extra line here that calculates the delta.
It only required a tiny modification to one script, and, at least for me, it saves me doing mental arithmetic each time!
The modification is to the script is in two places :
And also :
Hopefully this will be of use to some others
If you know where the changes need to be made (which file), create a Pull Request on GitHub - it really isn’t as scary as it sounds!
Ohhh, I’m not a programmer. I have no idea if I’ve done this hack in the ‘proper way’!
I also am aware of git and gitlab, but never used it as a programmer.
I just made the mod for myself and found it handy - a slight timesaver.
I will read around git though. Would this mean ‘submitting a patch’?
If you are interested in learning then I’m happy to help.
Windows or Linux user?
Linux - just not a developer
And - wld be v. grateful of the help, thank you!
Desktop and command line. I’m running Debian+Xfce. But I have various RPis, and have been using Linux (starting with Slackware 2.1 IIRC) since about 1996. I’m not really ops or sysadmin and deffo not a programmer, but I am a bodger. I’ve done a bit of ham radio stuff on Linux too.
Never heard of VSCode though, sorry.
Not trying to hijack the thread…
Just wanted to say hello to a fellow ham.