Page 1 of 1
Display Rain for last 24 hours in the dashboard
Posted: Sat 06 Aug 2016 1:16 pm
by grwkak
Bit lost here - I can change the font size of titles etc, but would like to display the rainfall for the last 24 hours in the rainfall block in the dashboard.
Is there a list of "tags" available that can be displayed?
Re: Display Rain for last 24 hours in the dashboard
Posted: Sat 06 Aug 2016 1:48 pm
by steve
if you call http://<your MX URL>:<your MX port>/api/data/currentdata you'll get back a string of json, which should be fairly easy to understand even if you're not familiar with json, it's basically a set of name:value pairs. If you create an HTML element (e.g. a 'span') with an id the same as one of the names, the dashboard.js code will automatically substitute the corresponding actual value. Unfortunately, the rain in the last 24 hours is not currently one of the available items.
Re: Display Rain for last 24 hours in the dashboard
Posted: Sat 06 Aug 2016 2:23 pm
by grwkak
Thanks - that helps - will use RainYesterday and just mentally add the amount to today!
Re: Display Rain for last 24 hours in the dashboard
Posted: Wed 17 Aug 2016 7:37 pm
by steve
I've just uploaded build 3041, which adds RainLast24Hours to the json data available for the dashboard.