This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Weather service not working anymore?
#31
Hi
1. I stored the script above in library ecl_yrno (don't forget to change URL according to your location)
2. I added script below into my scheduler. You have to change GAs to addresses you use in your project.
7/2/30 and 7/2/31 are 9.001 (temperature, float)
7/2/32 is 11.3 (date)

Code:
function forecast_write(low,high,next_day)
 low = low or 0
 high = high or 0
 next_day = next_day or 0
 grp.write('7/2/30', low, dt.float16)
 grp.write('7/2/31', high, dt.float16)
 grp.write('7/2/32', next_day, dt.date)
end  

require ('user.ecl_yrno')
forecast_write(minmax_temp_tomorrow())
LM5Lp, firmware: 2018.08.22 and 2021.12.15, FlashSYS v2, ARMv7 Processor rev 5 (v7l), kernel 4.4.151 and 4.4.259
Reply


Messages In This Thread
RE: Weather service not working anymore? - by Thomas - 09.01.2019, 11:58

Forum Jump: