Add buttons to Dashboard Editor

Is it possible to add buttons for the led and centre dial widgets to the dashboard editor?

Thanks

Lloyd

Lloyd's picture

Re: Add buttons to Dashboard Editor

And a second question - how do I add the display of a feed value graphically, as the editor seems to have stripped all mine out?

Lloyd

Lloyd's picture

Re: Add buttons to Dashboard Editor

Anyone ?

Lloyd

i.martinez's picture

Re: Add buttons to Dashboard Editor

First question... i am on the way :-)  (can you paste html code? )

Second... can you paste the html code here too so could make a class style to better display?

 

Best regards

ilde

Lloyd's picture

Re: Add buttons to Dashboard Editor

This is the code I use for the led and import/export meter:

<div class="led" feed="feedname"></div>

 

 <div class="widget">

    <div class="title">Import/Export</div>

    <div class="centredial" feed="ImportExport" max="10000" units="W" scale="1"></div>

  </div>

 

And this should display a value, where kwhd is the feed name:

 

  <div class="stats" style="height:70px">
    <b>Energy used today:</b><br>
    <div class="value"><span class="kwhd">&nbsp;</span> kWh</div>
  </div>

hope this helps,

Lloyd

 

 

Lloyd's picture

Re: Add buttons to Dashboard Editor

There is also this widget which is good on a dashboard:

 

  <div class="widget">
    <div id="house-graph" class="graph" feed="power"></div>
  </div>
 

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

 

Lloyd

 

 

Lloyd's picture

Re: Add buttons to Dashboard Editor

Hi Ilde

Good job on getting the house graphs in the editor.

Any joy on getting display of values available?  When I try and add by hand (div class="value"><span class="kwhd">&nbsp;</span> kWh</div>) the editor strips the span tags out.

Thanks

Lloyd

i.martinez's picture

Re: Add buttons to Dashboard Editor

Thx!!!

i insert your code and it doesnt happend to me.... :-o

The code works fine for me :-(

<div class="value"><span class="kwhd">&nbsp;</span> kWh</div>

did you test it in lastest version? could you send me the complete html code (maybe some other code breaks the parser )

Best regards

ilde

Lloyd's picture

Re: Add buttons to Dashboard Editor

I've have now found that sometimes the span elements stay, sometimes they get deleted.  In the attached file, the last two get deleted (Voltage and ImmVRms).

Lloyd

Comment viewing options

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