Customized visulisation

Hi everybody

My partner and I are currently working on or bachelor thesis in Design and Innovation at The Danish Institute of Technology (DTU). We are working in collaboration with UNICEF to make a autonomous temperature monitoring system for vaccine cooling storage. In regard to our project we are using the emoncms system to handle the data we gather in the coldrooms.
(For more information about our project take a look on our blog, we would really appreciate some feedback on our work so far: unicefccl.design-portfolio.dk)

Okay, back to the current problem. We have been working on a customized variant of the dial visualization, we would like it to represent the acceptable temperature ranges, as shown in this diagram: https://www.dropbox.com/s/mzb8658kmaoz4h7/dial_graph.jpg

We have already rewritten the dial_render script, so that the input values are rendered as we want. However the script does not seem to receive the measurements correctly, because now it always has 0 as output.

Here is the  rewritten script:
www.unicefccl.design-portfolio.dk/dial_render.js

The two tests:
www.unicefccl.design-portfolio.dk/WIC.html (WIC = walk-in-cooler)
www.unicefccl.design-portfolio.dk/WIF.html (WIF = walk-in-freezer)

And the feed we get the information from:
www.emoncms.org/unicefDTU

Thank you in advance and thank you for a great system.

Kind regards,
Adam & Emil

TrystanLea's picture

Re: Customized visulisation

Hello Adam & Emil

Looks like a really interesting project. I couldn't quite make out what was happening in your modification of dial_render, couldnt quite make out what was happening in my code either, its been a while since I created those dials, so I took the working dial render code and started from there modifying it as in your diagram here: https://www.dropbox.com/s/mzb8658kmaoz4h7/dial_graph.jpg

There is now a min and max property and if you set it to -2 and 12 for the first dial and -31.66 and -8.33 for the second that will create the dials you want.

Here's ths zip: copy the dialunicef_render code and the folder dialunicef into your widgets directory:

http://openenergymonitor.org/emon/sites/default/files/dialunicef.zip

Keep up the good work with the project

Trystan

emilb's picture

Re: Customized visulisation

wow, thanks for putting the work in it! But the problem is still occurring. I've updated the two 'dashboards' so they use your script instead, but as before the dial seems only to get 0 as input. I am not sure, but the WIC and WIF html-files might be the problem then. I could think it might be a problem with the access to the data.

http://unicefccl.design-portfolio.dk/WIC.html

http://unicefccl.design-portfolio.dk/WIF.html

Comment viewing options

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