Adding new visualisations to emoncms

Does anyone know if there are instructions/discussion about how to add new visualizations to emoncms?

What I want to do is just copy the existing visualizations and modify those to my needs. The practical issue is that I would like to have the control buttons on different locations and change the "kw" labels to more relevant to temperature measurements (without loosing the original ones).

As far as I have understood all units in the graphs are hard coded.

(Also I am having hard time editing the dashboards with mac. More or less no functions work with Chrome or Safari. One needs to open the windows box to have something done. Or am I doing something wrong?)

markdegroot's picture

Re: Adding new visualisations to emoncms

Would really like to find some documentation also.

Posted a similar question here: http://openenergymonitor.org/emon/node/1960

mezz64's picture

Re: Adding new visualisations to emoncms

I've been slowly figuring some of this stuff out on my own via my github clone of the main project branch. ( https://github.com/mezz64/emoncms )

I'm not a programmer by trade so it's likely a bit messy and there are a ton of commits as I break/fix things until I end up with the right result, but it might help somebody out.  I've moved the button on most of the graphs to be above the graph window, added a graph to calculate energy cost and added a units option to the bargraphs, among some other changes.

You can see my public dashboards here: http://energy.johnmihalic.com/admin

I'd recommend cloning my branch into a separate install before going over the master though, I may have made some changes that work fine for me but reek havoc for others.

Delphy's picture

Re: Adding new visualisations to emoncms

I'm curious, mezz; How did you get the graph showing KwH/d and cost per period?  I've so far not been able to find anything about how to add KwH costs into emoncms...  Maybe I'm just missing something. :)

mezz64's picture

Re: Adding new visualisations to emoncms

It's a new graph type I made based on the existing bar graph visualization.  Shouldn't be too difficult to add it into another emoncms install, just grab the costgraph.php file from my github to add to your visualisations directory and define it in vis_controller.php and vis_render.js files.  You can look at them on my github to see the changes.

Delphy's picture

Re: Adding new visualisations to emoncms

Got it, thanks!  Definately something that should be in the base. :)

 

 

o_cee's picture

Re: Adding new visualisations to emoncms

Yeah mezz64, it would be great if you could clean up and submit pull requests for the generic parts. For example, the min and max input processors was one thing I saw in your code which definitely should go to the master branch imo. 

bbroge's picture

Re: Adding new visualisations to emoncms

I am having some trouble getting this working...I am using the latest version of OEM. All I see is a blank graph.

Thanks.

tuxd3v's picture

Re: Adding new visualisations to emoncms

hi,

what the parameter in smoothie Ufac means??I get a desyncronesid screen all the time miving forward...but grey...with no data.

 

regards

tux

Comment viewing options

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