I’ve been working on a new version of the emoncms app’s module over the last few weeks, the first release of which is now ready for testing The key new features are:
Ability to have multiple instances of an app, e.g a MyElectric app for multiple circuits in a building.
A list of available apps that is separate to the menu list meaning that only used app’s are shown.
A new sidebar menu for navigation through the apps module.
A large code refactor that moves away from the single page app implementation of the apps module towards a separate page for each app implementation that should help with making development of new apps easier.
A new My Electric app which shows a daily bar graph where a particular day can be clicked on for the detailed power view, plus average consumption comparison with UK average and ZeroCarbonBritain low energy home potential standards.
A Time of Use app that can show night time vs day time electricity consumption, making use of the potential of cumulative kWh feeds stored with PHPFina.
The apps module requires the latest version of the emoncms master branch to work. We will be merging this in to the emonpi stable branches after a bit more testing over the next week or so.
The latest emoncms master branch has an option in settings.php to make the top menu bar blue which I think looks quite nice with some of the new apps in the apps module, here’s an example:
Its also possible to set an app as the starting page once you log in to emoncms. I’ve added a field to the account profile called starting page that can be set to point to any starting location, I think this gives quite a nice user experience, once its set up all you have to do is login and the main app used is shown straight away.
The new changes to the apps modules described by @TrystanLea in this post have now been merged into master (9.0) branch and now available on all emonSD emonPi / emonBase after running an update (Admin > Update)
Thanks @glyn.hudson
I’ve replaced the settings.php with the default emonpi settings as you advised and its all working.
I’m not aware of any changes, but I am running @stuart sma bluetooth to read figures directly from the sma inverter and its not running, but could be because its night-time?
Please see below update log as requested… emonpiupdate.log.txt (33.3 KB)
Great, thanks a lot. Any chance you could run emonPi update once more and send me the update log again?
The update log is showing that there has been a change to /etc/rc.local which might be stopping the emonPi from updating some parts of the software. Running the update a second time might fix this.
Ah, I see the issue there is an entry in rc.local from dataplicity. I’m assuming you installed dataplicity on the emonPi? I’ve not used it, however I’ve just had a look and it looks like a nice solution for easy remote Pi access: https://www.dataplicity.com/
How have you been finding it?
In order to get the emonpi folder to update while keeping the dataplicity changes to rc.local we need to stash your changes, pull in the new changes then restore your changes. Try running:
rpi-rw
cd /home/pi/emonpi
git stash
git pull
git stash pop
In order to run git stash you may need to give git your name and email. I don’t plan to push anything to github to come you can just make these up.
See the “Dataplicity VPN” thread, @barfle did say he would look at a fix for this back in January.
I saw no mention of any specific commit relating to this when I briefly looked through the repo just now though.
If I get a mo, I will try a fresh install to see if the issue still exists as the installer seems to be downloaded from the main site rather than being in the client repo so a fix might not be obvious without trying it.
Apologies for the delay. We have a new version of the agent due out in the next two weeks. I have asked that this be looked at in time for that release. Some of our own devices are also impacted by this issue.
I’ve just added the bash commands you need to setup dataplicity log files to the standard emonPi rc.local so dataplicity will work out of the box for all emonPi users. You can now stash your changes and pull in the latest change and you will be good to go for automatic updates in the future:
rpi-rw
cd /home/pi/emonpi
git stash
git pull
rpi-ro
Then reboot to test dataplicity comes back online ok.
See my post on the dataplicity thread for more info:
Hi, I’m pretty much a novice with respect to EmonCMS but am getting the hang of things.
I recently updated the apps (git pull) and noticed a change from the previous My Solar Divert. Previously the divert was displayed as ‘cumulative’ with the house use. Like in this picture.
You can see the orange ‘divert’ is stacked on top of the light blue house use.
But now the divert starts on the x-axis. The reason I like it stacked is that it was easy to see if the there was a problem with the diversion. The cumulative house use and divert should not exceed the solar generation. I.e. the orange stacked on the light blue should not be more than the yellow. But now with the divert not being stacked on the house use it is difficult to visualize the total use.
Sorry…as a new user I am only allowed to post 1 picture. I hope this makes sense?
Marty