-
Notifications
You must be signed in to change notification settings - Fork 104
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
power consumption last 24 hours #6
Comments
Hi, thanks for using the project! The plugs don't natively report the energy consumption in a format other than the total daily usage (as a single value), or the current real-time usage for that second it was requested. To get a usage history for the last 24 hours, the app could request the real-time usage every minute seconds or so, and log the result to disk. Then when the user requests the dashboard, query this log and build up the last 24 hrs of usage stats to display. It shouldn't be too much work to implement, and it sounds like a useful feature so I'll look to add it when I get some spare time. Equally if anyone wants to try to implement this feel free! |
Hi, very nice work, i second robvos wish for a 24H chart. But i'I have the same problem i'm not a programmer. I'm also using this program on WIN10 machine. |
Just posting for a quick thanks, while also "thirding" to show my interest in this feature. I'll also consider writing the feature, but my js is pretty terrible. |
Thank you, this is great. I want to add my vote to the last 24 hours feature. |
Thanks for all the feedback! |
When I saw this code, I decided to buy the TP-link HS110 👍 |
I've added this logging functionality into the latest build (v0.6) available here. By default the app will log every minute and keep 24hrs worth of history, but if you want to log more often or store more entries you can change the The logged data is shown on a new 'Logged Usage' graph on the dashboard. I haven’t tested it too much so let me know if there are any bugs/issues. |
Looks great. Love that all the configuration and logging works on the precompiled version as well. Only one issue I've noticed so far... What I'd like to do is log pretty frequently, but not flog my drive. So, I'd like to store the result in /tmp/ . Your tool only considers the local directory, which is fine - i can just use a wrapper set up the right symlink (with the correct local filename) before launching the monitor. However, I found a catch - the energy monitor (correctly) tries to use an existing file, but if it encounters a 0-length file, it errors out on json syntax. Perhaps it should be comfortable overwriting a zero-length file? (Especially given the unique filename that is used) In any case, I sorted it out for myself - I just keep a single-entry json file on-hand to copy to /tmp/ to kick everything off. |
For those that care... |
@ballachango I'll take a look at the 0 length/byte file issue. It currently assumes that if a file exists it must have created it itself, and so expects it will contain at least an empty JSON array Thanks for the |
Thanks @jamesbarnett91 , good to know what the minimum requirement for the file is. |
Hello @jamesbarnett91 , Best regards Bullolle |
Hi I do not have the issue with V0.6 and currently running this version without problems (except incorrect voltage measurement due to RMS issue). Could this issue be related to the scanning and registering plugs to monitor feature included in V0.7? I have also found that kWh totals displayed are different from my calculations using log files. Are these read directly from teh HS110 as I have found teh Kasa app reports these incorrectly also. Many thanks for a great program |
Hi, thanks for the reports. I'll have a look and see if anything in v0.7 could have caused this, or if its always been a problem and needs a fix. |
Hello, Thanks for the lovely tool, I was wondering if there is an existing plugin or a way for exporting the real-time data into csv format. Thanks a million. |
There are a few ways to do this. From the front page of the project (and higher up in this thread), if you have access to the command line tool It may look complicated, but it's just finding and replacing characters. |
Thanks for this tool.
I use it on a windows pc. Programming is not one of my skills.
Would it be possible too see the power consumption off the last 24 hours?
So I have an idee when there are peaks in the consumption.
Thanks
The text was updated successfully, but these errors were encountered: