Community
OpenEnergyMonitor

Community

Hack to show 'delta' (between min and max) on rawdata

Tags: #<Tag:0x00007fc923055070>

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 :slight_smile:

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’?

Effectively yes.

If you are interested in learning then I’m happy to help.

Windows or Linux user?

1 Like

Linux - just not a developer :slight_smile:

And - wld be v. grateful of the help, thank you!

Desktop or Command line?

Do you use VSCode?

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.

1 Like

Not trying to hijack the thread…
Just wanted to say hello to a fellow ham.

73 OM,
Bill KR6K

1 Like