Please Note This forum exists for community support for the Mango product family and the Radix IoT Platform. Although Radix IoT employees participate in this forum from time to time, there is no guarantee of a response to anything posted here, nor can Radix IoT, LLC guarantee the accuracy of any information expressed or conveyed. Specific project questions from customers with active support contracts are asked to send requests to support@radixiot.com.
Weather Forecast
-
Hello Everyone,
I've been trying to get future high and low temperature forecasts into mango. I can get the daily high and low and everything in between as data points, but not for tomorrow. Any idea's?
Thanks
-
You'll need to post at least the details of the data source and data points you're using (try posting a JSON export) for forecast data in order for anyone to offer any meaningful help..
-
Well the data source is an HTTP receiver, the URL is http://weather.yahooapis.com/forecastrss?w=23401819&u=c.
The data points I do have for forecast is the daily high and low, the value RegEx for the daily high is yweather:forecast.?high="(\d.?\d*).
The issue is getting the high and low for the next day, which is apart of the api, but I can't figure out how to pull out that data.Thanks
-
Has anyone been able to store forecast data into Mango? Did you make sure "System Settings / Purge Settings / Discard point values future dated more than" is set to not purge the forecast points?
Can the REST API accept future dated non-zero timestamps?
-
@StephenVDK
You can always just disregard a number of yweather:forecast lines until finding the days ahead that you're looking for. Some(?:<yweather:forecast[^\n]*\n){3}<yweather:forecast[^\n]*low="(\d*)
for instance would be the fourth item, or the third day forecast. You could control it with the {1,2,3....}. I just recently requested adding capture group number to HTTP retriever specifically so that you could use backreferences on forecast information to make it feel like a reasonable regex.