Community
OpenEnergyMonitor

Community

Dashboard add external png graph

Tags: #<Tag:0x00007f6e0ea2f200> #<Tag:0x00007f6e0ea2efa8> #<Tag:0x00007f6e0ea2ee68>

HI,

i’ve found many references to PNG files but I have not been able to establish whether it is possible to add an external PNG (graph picture) to my dashboard?

My current dashboard shows current solar panel production. I’d like to add a graph from my weatherstation data, showing solar radiation, as a comparison.

Thanks
John

Instead of adding a PNG representation of the data, is it possible to import the actual feed data from your weatherstation into emoncms.
This would allow you to store historical data, select timeframes and display data in the same format as your solar power production.

Paul

Paul,

That was part of my long term plan, Yes I’d love to get my weather data into emonpi. Any pointers as to where I can get instructions for import of at CSV file, being produced every 10 secs,

Thanks
John

Can you post an example of the CSV file, so we can see the format.

Paul

And details of the weatherstation (make and model etc) and any software you are using with it (local or online services)

realtime.txt paste:

23/02/18 16:09:03 2.4 72 -2.1 6.0 10.0 44 0.0 0.0 1020.05 NE 2 mph C hPa mm 43.6 -0.43 35.6 35.6 0.0 20.7 50 -0.4 -0.2 3.1 12:51 -1.2 01:02 8.0 14:08 19.0 11:47 1022.86 00:05 1020.05 15:53 1.9.4 1099 17.0 2.4 2.4 0.0 0.51 53 54 0.0 2 1 0 NE 565 m -1.8 2.1 77 0

sorry it’s not a CSV but plain text space delimited.

My station is a Davis Vantage Pro2 with the solar attachment. It feeds to it’s own console which then links to software “Cumulus version 1.9.4 build 1099”. I feed data to Weather Underground, and Met Office WOW (weather observations website). I also feed my own website solarschols.com

weather underground station id: IENGLAND1253
https://www.wunderground.com/personal-weather-station/dashboard?ID=IENGLAND1253
Met office site id: 436149203
http://wow.metoffice.gov.uk/weather/view?siteID=436149203

I’m sure @Paul will direct you to some nodered implementations. I would also like to say there maybe another option on the horizon.

@TrystanLea and I are trying to reunite the emonhub variants and I had previously written a weatherunderground interfacer for the original emonhub that allowed you to just define the weather values you want in the order you want from the location you want and emonhub would fetch the data and pass it to emoncms every 3 mins. Hopefully that interfacer will make an appearance in the not to distant future (not soon enough for you though I guess - The old code is at https://github.com/emonhub/emonhub/tree/test-wunderground)

John, do you have node-red installed?
If so, there are at least 2 options available;

  1. Using node-red, it would be trivial to parse the space delimited text file and change it into a suitable format, to be fed into emoncms via MQTT, the node-red emoncms node, or even via emoncms’s API.
  2. Again via node-red, send a HTTP request at regular intervals to Wunderground, parse the response, and again feed that into emoncms as per option 1.

Paul

Thanks, will have a look at this on Tuesday and may have some more questions.

If you decide to go down the node-red route, and need some help with developing the flow, just let me know!

Paul

Paul,

Have been trying to read up on NodeRED. I understand a little bit more, however rather than playing around with it on my live data I’d like to load it up onto my Emoncms on WAMPSERVER running in Windows 10. I don’t have any feeds in this yet. Is there a write up somewhere that explains how to load the NodeRED with the emoncms bits and pieces?

Regards
John

Not really, as node-red is so flexible. The flows are individually developed to suit the data that you are trying to import into emoncms.
If I give you the framework, I’m sure that you will quickly get the idea how it all fits together.
I’ve just written a quick flow which will parse the example ‘realtime.txt’ which you pasted above, but it would help me if you could identify which items of data (and what they are) from the following list, that you want imported (ignore the items that you don’t need importing).

"col1":"23/02/18"
"col2":"16:09:03"
"col3":2.4
"col4":72
"col5":-2.1
"col6":6
"col7":10
"col8":44
"col9":0
"col10":0
"col11":1020.05
"col12":"NE"
"col13":2
"col14":"mph"
"col15":"C"
"col16":"hPa"
"col17":"mm"
"col18":43.6
"col19":-0.43
"col20":35.6
"col21":35.6
"col22":0
"col23":20.7
"col24":50
"col25":-0.4
"col26":-0.2
"col27":3.1
"col28":"12:51"
"col29":-1.2
"col30":"01:02"
"col31":8
"col32":"14:08"
"col33":19
"col34":"11:47"
"col35":1022.86
"col36":"00:05"
"col37":1020.05
"col38":"15:53"
"col39":"1.9.4"
"col40":1099
"col41":17
"col42":2.4
"col43":2.4
"col44":0
"col45":0.51
"col46":53
"col47":54
"col48":0
"col49":2
"col50":1
"col51":0
"col52":"NE"
"col53":565
"col54":"m"
"col55":-1.8
"col56":2.1
"col57":77
"col58":0

So for example, if you wanted the data contained in the following 3 columns to be imported into emoncms, just add a ‘short’ name alongside, so I can write the next bit of the flow;
“col36”:“00:05” rain
"col37":1020.05 pressure
"col38":“15:53” tempc

Paul

Paul,

Thats really great. Am off out today to see the grandchildren. Will get back to it tomorrow.

John

Paul,

I not sure if this data will feed thru properly. See how we go

"1":"23/02/18":"date"
"2":"16:09:03":"time"
"3":"2.4":"temp_outside_back"
"4":"72":"humidity_outside_back"
"5":"-2.1":"dewpoint"
"6":"6":"10min_avg_wind_speed"
"7":"10":"latest_wind_speed"
"8":"44":"wind_bearing"
"9":"0":"curr_rain_rate"
"10":"0":"rain_today"
"11":"1020.05":"pressure"
"12":"NE":"wind_direction"
"13":"2":"B_wind_speed"
"18":"43.6":"wind_run"
"19":"-0.43":"pressure_trend_value"
"23":"20.7":"temp_dining_room"
"24":"50":"humidity_dining_room"
"25":"-0.4":"wind_chill"
"26":"-0.2":"temp_trend"
"41":"17":"10min_high_gust"
"42":"2.4":"heat_index"
"43":"2.4":"humidex"
"44":"0":"UV_index"
"45":"0.51":"today_evapotranspiration"
"46":"53":"solar_radiation"
"47":"54":"10min_avg_wind_bearing"
"48":"0":"rainfall_lasthour"
"49":"2":"current_forecast_no"
"50":"1":"is_it_daylight"
"53":"565":"cloudbase"
"55":"-1.8":"apparent_temp"
"56":"2.1":"sunshine_hours_sofar_today"
"57":"77":"current_theorectial_max_solar_radiotation"

I’ve got this in file format also, just don’t know how to load to here

It’s pretty easy to do the node-red wunderground to emoncms route. I have the following in node-red which gets me the local outside temperature to emoncms every 5 minutes which I can then display on a dial. The Humidity and Temperature go off the top to MQTT for other bits of the system.

Simon

PS the code in the WU: temperature node is as follows:

var msg = {payload: msg.payload.tempc};
msg.topic = “weather/tempC”;
return [msg];

Simon,
I am already feeding my data to Wunderground so it would seem to be the long way round to go back to them to get my data back, it would seem better to cut out the middle man.

John

image

Like that! Click that and follow the instructions, or just drag-and-drop into the window you’re typing in.

Sorry, I thought you were doing that anyway and would continue to do that, in which case if it’s already there it’s pretty straightforward to get to emoncms as Paul had suggested via node-red.

Simon