MyElectric App

Hi all,

Just setup an 8.4.0 self hosted site, then decided to upgrade to 9.0 RC. I added the 'apps' modules from the repository. I am totally lost as to why I get basically a blank page (I get the menu and footer but nothing in between). This happened on 8.4.0 too, but I was thinking that was an incompatibility issue?

 

Anyhow, I don't get a wrench or anything to configure the feeds for the apps, and mainly right now I just would like to have the My Electric app to work. Any insight?

 

J

Paul Reed's picture

Re: MyElectric App

It would help if you told us what hardware you're using, what OS? Did everything work OK before you installed the app folder? Paul

jabq's picture

Re: MyElectric App

I'm using a CentOS Linux instance off of Amazon AWS. No real issues with 8.4.0 or the upgrade, seemed pretty straight forward. I did have a bit of a learning curve understanding Nodes, inputs, feeds, and feed types. Still don't have a good handle on how the calculations work and how I can use them all to my advantage yet.

I did have the old My electric on 8.4.0 working before the upgrade. I did install the App from the repo on 8.4.0 and while it wasn't blank, it didn't graph anything or let me do anything. I figured it was because I was on 8.4.

thanks again!

TrystanLea's picture

Re: MyElectric App

@jabq, did you use the v9.0 branch version of the app module? If you used git to install the app module you can switch over with:

git checkout 9.0

Another thing to check would be your browser's development console log, do you see any javascript errors there?

 

andrewhg's picture

Re: MyElectric App

I have just created an account on emoncms.org. I tried going to the myelectric app. It has only worked a few times. The times it did work I was not able to edit the page. Clicking on the spanner was unresponsive. I am not sure if my error is related to your. 

I was using chrome. I tried firefox and that didn't work either. 

jabq's picture

Re: MyElectric App

Javascript console states: Uncaught TypeError: Cannot read property 'currency' of undefined

Any insight? Randomly I did get the page to pop up, but still could not click on the settings button (does nothing when I click it).

jabq's picture

Re: MyElectric App

Oh, I did git checkout 9.0 and git pull and everything was up to date.

Beire's picture

Re: MyElectric App

I have the exact same issue. The error seems to be on line:

if (app.config.myelectric.currency==undefined) app.config.myelectric.currency = "";

Also bar graphs with diff =1 don't work either.
They give error :

Uncaught TypeError: Cannot read property '0' of undefined

on this line:

var year = new Date (data[0][0]).getFullYear();

TrystanLea's picture

Re: MyElectric App

I've fixed the currency undefined error I think now. Both on emoncms.org and changes updated to the github repository under the v9.0 branch.

jabq's picture

Re: MyElectric App

No go here, same error on my self hosted. Maybe I'm just bad with git? said there were deltas when I re-cloned the repo.

 

 

Beire's picture

Re: MyElectric App

Same error here still on self hosted after git pull in the app directory.

Is there anything we should do after the git pull command? Because now my multigraph's aren't working anymore either.

Paul Reed's picture

Re: MyElectric App

@jabq

Maybe make a fresh 'app' install;

cd /var/www/emoncms/Modules
rm -rf app
git clone https://github.com/emoncms/app.git
cd app
git checkout 9.0
git pull

Then select your feeds.

@Beire

To get your multigraphs working, go to 'extras' > 'visualization' and select each of your multigraphs in turn, reselect the feeds that you want to appear in the multigraph and then re-save each multigraph.

Paul

Beire's picture

Re: MyElectric App

OK, my electric works again. Thx for that.
The multigraphs however do not.
If i reselect them all I get is a blank page.

Also creating a new graph does not work.

Do you need more info to debug?
I've done the checkout and git pull on the main emoncms folder also.
Does not work.

Paul Reed's picture

Re: MyElectric App

@Biere - Have you set your timezone correctly in 'My Account', and also updated your database in 'Administration' (you may need to log out and back in to see the administration menu)

Paul

Beire's picture

Re: MyElectric App

yes i have set it correctly.
The jsconsole gives the following output:

http://192.168.5.168/emoncms/Modules/vis/visualisations/multigraph.js Failed to load resource: the server responded with a status of 406 (Not Acceptable)

I checked, and can confirm the multigraph.js is not at that location, but in:
emoncms/Modules/vis/visualisations/multigraph/multigraph.js

Is this a bug?

WHen i create a symbolic link, the error is this:

Uncaught ReferenceError: multigraph_init is not defined

Paul Reed's picture

Re: MyElectric App

multigraph.js was located at emoncms/Modules/vis/visualisations/multigraph.js in v8.5, which probably suggests that your browser cache needs clearing.

v9.0 should have multigraph at emoncms/Modules/vis/visualisations/multigraph/multigraph.js

Paul

Beire's picture

Re: MyElectric App

Clearing cahce did not help.
I also tried using other browsers which I did not use emoncms for in the past.

I have never had v8.5 either. It's a quite new install that started at v9.
Just a couple days ago I tried git pull and the graphs stopped working.

jabq's picture

Re: MyElectric App

Paul,

 

I have no idea why, as last night I installed 9.0RC2 from the zip file in case the repo didn't work in another folder and did this and still had the same issue. I see no magic in what you posted, however, it was magic. All is well!!

 

Thanks!!

Paul Reed's picture

Re: MyElectric App

That's good news.

Paul

cab123's picture

Re: MyElectric App

The "fresh 'app' install" as Paul Reed suggested did the trick for me.

 

Thank you.

cab123's picture

Re: MyElectric App

Actually the settings from myelectric and mysolar are not saved. If i browse away and back the apps revert to their defaults.

I cant debug further since im on a  tablet. Il try later

 

edit: i'm on a local rpi fresh install of emoncms 9rc2

Paul Reed's picture

Re: MyElectric App

Have you updated your database since installing the apps?

Setup > Administration > Update Database (you may need to log out and back in, to see the administration menu)

Paul

cab123's picture

Re: MyElectric App

Indeed there was a pending database update. mysolar app is fixed, but not myelectric.

thanks!

Paul Reed's picture

Re: MyElectric App

What's wrong with myelectric? Are you using the correct feed formats.

Paul

cab123's picture

Re: MyElectric App

Hi Paul,

 

I found something interesting, if i submit the config of myelectric and leave currency field unedited, the settings revert back to the previous configuration every time i re-enter myelectric app.

 

I changed currency from "£" to "euro" and the settings were saved correclty.

After saving, the currency field appears as "€", without quotes.

 

So if i want to edit a field, for instance update "unit cost", i need to change currency from "€" to "euro" and change the unit cost in order to get the config saved.

 

Paul Reed's picture

Re: MyElectric App

Yes, there does seem an issue here around currency, where does the & come from?

Paul

jabq's picture

Re: MyElectric App

If you save a Currency, an & shows up in front of the currency name and a semicolor after. If you go in a just click save (or change anything but currency) again, it adds another & and semicolon at the end. Thats how mine reacts.

 

Likewise, for some reason, my days in the My Electric app are way off. It thinks it's Saturday even though it has the date right. Server time is correct. Any thoughts?

 

 

ramunsa's picture

Re: MyElectric App

I am receiving this error trying to save My Electric Settings:

[15-Jan-2016 10:30:35 America/Chicago] PHP Notice:  Trying to get property of non-object in /home1/a/public_html/r/emoncms/Modules/app/AppConfig_model.php on line 61
[15-Jan-2016 10:30:35 America/Chicago] PHP Warning:  Cannot modify header information - headers already sent by (output started at /home1/a/public_html/r/emoncms/Modules/app/AppConfig_model.php:61) in /home1/a/public_html/r/emoncms/index.php on line 186
 

Every time I navigate out of my electric and go back my settings are gone.

Any ideas on what could be the problem?

yves's picture

Re: MyElectric App

I double that.

I intalled 9.4 and also cannot save the app settings. 

And i get this error on the database update screen:

Notice: Trying to get property of non-object in /var/www/emoncms/Lib/dbschemasetup.php on line 41

Comment viewing options

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