dashboard

Installed the latest cms, and having problems saving the changes i make to my dashboard.

Anybody know why the save button dont work.

The add new dashboard works.

Have to use phpmyadmin to make changes.

Fuzzylogic's picture

Re: dashboard

Same issue here, installation went ok, log in ok.

Testing a dashboard only works on the tab "Dashboards", After saving, i can see my working result below the editor window, but after leaving the page, it's gone.

Also the "-" button to (i presume) remove the dashboard, does not work. Creating new (empty) ones works however.

When previewing the empty dashboard, i see that it opens a new window, and the following URL is generated:

http://myhost/Vis/Dashboard/embed.php?apikey=&id=

I don't think this is right, somehow the api key and id are not used.

EDIT:

Resetting my local master branch to the 3rd of May fixed the problem for me, ofcourse this also removed the option to edit multiple dashboards.  Can anyone confirm this?

 

 

 

 

vworp's picture

Re: dashboard

I've had my first play with emoncms today, and I'm seeing pretty much the same behavior. Saving doesn't save and preview opens an empty window.

Larsjo's picture

Re: dashboard

is it only the 3. of us having this problem ?

 

PeterN's picture

Re: dashboard

Hi, Your not alone I have same issue and had to make changes directly in database. 

http://openenergymonitor.org/emon/node/638

Cheers

 

Lloyd's picture

Re: dashboard

I'm also having problems with the new dashboard.  It striped out my display of values, and I don't seem to be able to create new dashboards. (Download from github master last night).

 Lloyd

TrystanLea's picture

Re: dashboard

Hello, sorry about this, I think it was a missing couple of lines in setup.php. I've updated it, it should work now.

Trystan

Lloyd's picture

Re: dashboard

Just got this when running the new setup.php:

 

ALTER TABLE `dashboard` ADD `id` int NOT NULL AUTO_INCREMENT, PRIMARY KEY(id,userid)You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'PRIMARY KEY(id,userid)' at line 1ALTER TABLE `dashboard` ADD `name` VARCHAR(30) DEFAULT 'no name'ALTER TABLE `dashboard` ADD `description` VARCHAR(255) DEFAULT 'no description'

Does userid exist when you try and create a primary key of it?

 

Lloyd

vworp's picture

Re: dashboard

I'm getting the same error as Lloyd. Still unable to save/preview/delete dashboards.

Larsjo's picture

Re: dashboard

Ok, i will try a fresh install, to see if its working.

Lloyd's picture

Re: dashboard

I think setup.php should look like this:

 

 

 $schema['dashboard'] = array(
    'id'=> array('type'=>'int NOT NULL AUTO_INCREMENT, ADD PRIMARY KEY(id,userid)'),
    'userid'=> array('type'=>'int'),
    'content'=> array('type'=>'text'),
    'name'=> array('type'=>"VARCHAR(30) DEFAULT 'no name'"),
    'description'=> array('type'=>"VARCHAR(255) DEFAULT 'no description'")
  );
 
I'm not sure why similar errors are not thrown for other tables that have primary keys.
 
Lloyd
Larsjo's picture

Re: dashboard

Just tried it out, with no luck.

I can add a new dashboard, go to edit - everything looks OK, but then when i add or change anything i cant save, if i only add txt then i can save, when ever i try to add dials or container i cant. ... ? strange

When ever it goes wrong, i have to delete the dashboard and start over.

Lloyd's picture

Re: dashboard

Working better for me now that I have succeeded in running setup with no errors, but have no more time to experiment tonight.  Do seem to be able to create new dashboard with a dial on it, save it and then return to it.  Are you sure you have all the latest updates from github? 

 

Lloyd

TrystanLea's picture

Re: dashboard

Just tested it again here to be sure and setup ran with no problems and I can create, save and preview multiple dashboards.

What fixed it for you Lloyd, I think PRIMARY KEY() without the add is ok: http://dev.mysql.com/doc/refman/5.1/en/create-table.html. It has also succeeded in creating a primary key for both id and userid

Lloyd's picture

Re: dashboard

I pasted the failed sql into phpadmin, and it failed unless I added the ADD. Is the add required because it is doing an ALTER rather than CREATE?

Lloyd

i.martinez's picture

Re: dashboard

Hi

if you had a created database the better way to upgrade is call

your_url/Includes/upgrade.php

so the alter table is executed and all is ok. Then you should not go to Dashboard menu directly, you have to go Dashboards menu and add new dashboard and edit it from there. The Dashboard button is there due compatibility.

I will do a fresh install and test setup instead.

Best regads

ilde

i.martinez's picture

Re: dashboard

Dear Larsjo

Did you try to add widget container and insert into a dial?... i detected that dial without/outside container doesnt work

Could you send us the html code generated?

 

Best regards

ilde

Larsjo's picture

Re: dashboard

did that, and you are right dial outside container dont work. But thats ok because it looks better with container.

I am building the code 1 step at a time, to see where it goes wrong. And it looks like it maybe is when i add multi or kwhzoom part.

______________________________________________________________

 

<div class="widget-container-v" style="height:663px">
<div class="title">&nbsp;Watt nu:</div>
<div class="dial" feed="power" max="7000" scale="1" units="W"></div>
<div style="clear:both;"></div>
<div class="stats" style="height:50px"><b>Watt:</b><br />
<div class="value">W</div>
</div>
<div class="stats" style="height:50px"><b>kW total:</b><br />
<div class="value">kW</div>
</div>
<div class="stats" style="height:50px"><b>Energi idag:</b><br />
<div class="value">kW</div>
</div>
<div class="widget">
<div class="graph" feed="power" id="house-graph"></div>
</div>
</div>
<div class="widget-container-v" style="height:663px">
<div class="title">Inverter Temp:</div>
<div class="dial" feed="temp_disp" max="30" scale="1" units="C"></div>
<div style="clear:both;"></div>
<div style="clear:both;"></div>
<div class="stats" style="height:180px"><b>Temp:</b><br />
<div class="value">C</div>
</div>
<div class="widget">
<div class="graph" feed="temp_disp" id="house-graph1"></div>
</div>
</div>
<div class="widget-container-nc">
<div class="title">kWhdZoomer</div>
<iframe frameborder="0" marginheight="0" marginwidth="0" scrolling="no" src="http://192.168.1.240/sol/Vis/kWhdZoomer/kwhdzoomer.php?apikey=773bcd5145cabdc02b4046629c3b34ec&amp;kwhd=5&amp;power=3" style="width:917px; height:572px;"></iframe></div>
 
_______________________________________________________________
 
when i try to change the ipadr, i cant save ?
 
i.martinez's picture

Re: dashboard

Dear Larsjo

i follow these steps

it worked fine for me....

Let me know news about this :-)

 

We should think about hide the Dashboard menu so not go directly without pass go through Dasboards menu.

 

Best regards

ilde

Larsjo's picture

Re: dashboard

did just that. so that should be ok

 

Did you add the multi or kwhdzoom ? And got it to work.

Larsjo's picture

Re: dashboard

this is what happen.

if i make a dial, its works

if i make some kind of error (feed, path... anything), and save. After that i cant save anymore, and i have to delete the dashboard, make a new, past back the code (with changes) it can save again until i make a new error in the code.

The only way to see that the SAVE don't work is bye shifting between pages, and when you return back to the editor the last changes are lost. It did not save it.

Hope this helps to solve the problem.

 

PeterN's picture

Re: dashboard

Try going to dashboards and choose dashboard you want to edit, then edit and save. Worked for me.

vworp's picture

Re: dashboard

Seems to be working better for me, but I did delete my original database and start from scratch. I can now save and preview editing dashboards, still can't delete dashboards.

I don't seems to have any trouble getting dials working, but I can't get the default  energy explorer to work at all

http://openenergymonitor.org/emon/applications/homeenergy

Lloyd's picture

Re: dashboard

If you enter the full url with your apikey in a browser, what error message do you get back?  Beware that the capitalisation in the url can catch you out.

Lloyd

vworp's picture

Re: dashboard



Notice: Undefined index: power in C:\xampp\htdocs\emoncms3\Vis\kWhdZoomer\kwhdzoomer.php on line 16

Notice: Undefined index: kwhd in C:\xampp\htdocs\emoncms3\Vis\kWhdZoomer\kwhdzoomer.php on line 17

Notice: Undefined index: currency in C:\xampp\htdocs\emoncms3\Vis\kWhdZoomer\kwhdzoomer.php on line 19

Notice: Undefined index: pricekwh in C:\xampp\htdocs\emoncms3\Vis\kWhdZoomer\kwhdzoomer.php on line 20
Lloyd's picture

Re: dashboard

That looks strange. For completeness can you post here the url you are using (blank out the apikey).

Lloyd

vworp's picture

Re: dashboard

second attempt, spam filter didn't like it first time

 

http://192.168.1.70/emoncms     3/Vis/kWhdZoomer/kwhdzoomer.php?%0Aapikey=*********&amp;kwhd=powerKwhd&amp;power=power&amp;currency=%C2%A3&amp;pricekwh=0.18

Lloyd's picture

Re: dashboard

You need to specify the feed by number.  And do you really have &amp, or is this just the way it has pasted.  Here's mine

 

..........co.uk/emoncms3/Vis/kWhdZoomer/kwhdzoomer.php?power=3&kwhd=8&price=0.14&apikey=xxxxxxxxxxx

Lloyd

vworp's picture

Re: dashboard

Look like it was just the feed numbers throwing things out. Thanks for that.

TrystanLea's picture

Re: dashboard

Just updated the vis.openenergymonitor server with the latest version and got the mysql error to do with the missing ADD, had to add it in to make it work. Maybe its to do with updating an existing field and so the error does not appear when creating a new database from scratch..

Comment viewing options

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