Can't configure My Electric

Hi,

My conf is Raspberry Pi (emonSD_7oct15.img, "apt-get update/dist-upgrade", and "git pull" on emonhub/emoncms directory, so v9.3), with shield from lechacal.com (2CT 1 temp). I configured everything for having a dashboard functional.

My problem is when I go on My Electric, a click on the wrench for configuration do nothing. What could be the problem?

Megagolgoth.

Paul Reed's picture

Re: Can't configure My Electric

Which version did you update from?

V9 of emoncms needs the v9 branch of the app module installed. 

Paul

megagolgoth's picture

Re: Can't configure My Electric

Hi,

Didn't take a look, it was from the version included on emonSD_7oct15.img .

How can I update/install v9 branch of the app module? A "git pull" on "/var/www/emoncms" isn't enough?

Megagolgoth

Paul Reed's picture

Re: Can't configure My Electric

Provided the app module was initially installed via git, you can git pull from within the /emoncms/Modules/app directory to update or switch branch. However the image which you are using isn't that old so I would have thought that it was already on v9 app.

Are you getting any browser errors, usually F12 will give you the developers console in your browser, where you can look and see if there are any displayed.

 

Paul

megagolgoth's picture

Re: Can't configure My Electric

I don't know the F12 dev bar of firefox, but i got :

"

12:29:35,867 TypeError: app.config.myelectric is undefined
app_myelectric.init/<() jquery-1.11.3.min.js line 2 > eval:113
m.event.dispatch() jquery-1.11.3.min.js:4
m.event.add/r.handle() jquery-1.11.3.min.js:4
1 jquery-1.11.3.min.js line 2 > eval:113:13

"

There's a problem for "config.myelectric", so it could explain the impossibility to config "My Electric".

Any idea? Maybe a (stupid) cache problem?

megagolgoth's picture

Re: Can't configure My Electric

however this javascript isn't very nice :

"

<script type="text/javascript">(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)})(window,document,'script','//www.google-analytics.com/analytics.js','ga');ga('create','UA-227875-4','auto');ga('require', 'linkid', 'linkid.js');ga(function(e){ga('set','screenName','app//');ga('set','dimension1',e.get('clientId'));ga('set','dimension2','en');ga('set','&uid',
window.location.host+'|1|API');ga('set','appName','EmonCMS');ga('set','appVersion','low-write 9 RC2 | 2015.09.15'); ga('send','screenview');ga('send', 'timing', 'main', 'pageview', '0.20822215080261', 'LoadTime', {'page': 'app//'});});</script>

"

Not so fair for an opensource project to get back the control of our electric system, to provide it to google...

Edit - wrapped long line - Moderator, BT

megagolgoth's picture

Re: Can't configure My Electric

I used your solution to another "My Electric" problem ("http://openenergymonitor.org/emon/comment/reply/11451/35300"):

"
cd /var/www/emoncms/Modules

rm -rf app

git clone https://github.com/emoncms/app.git

cd app

git checkout 9.0

git pull
"

and it solves the problem

 

 

Paul Reed's picture

Re: Can't configure My Electric

There's now no need to git checkout 9.0 because 9.0 is the default branch, and which will be cloned.

Paul

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.