Search found 3 matches
- Thursday 21 January 2016 15:33
- Forum: LUA
- Topic: Real-time solar data : azimuth, Altitude, Lux sensor... [closed]
- Replies: 245
- Views: 67680
Re: Real-time solar data : azimuth, Altitude, Lux sensor...
Hi, You need to Edit this row: local config=assert(io.popen('curl http://api.wunderground.com/api/'..wuAPIkey..'/conditions/q/FR/'..city..'.json')) -- customize here !! Paste in you APIkey where it says ..wuAPIkey.. Change /FR/ to /GB/ (or whatever countrycode WU uses for UK. Paste in London where ...
- Thursday 21 January 2016 10:29
- Forum: LUA
- Topic: Real-time solar data : azimuth, Altitude, Lux sensor... [closed]
- Replies: 245
- Views: 67680
Re: Real-time solar data : azimuth, Altitude, Lux sensor...
OK, I think I can answer my own question
time = os.date("*t")
if ((time.min % 5)==0) then -- remember the wundergroud limitation
That will make the script run every 5 minutes, which solves the API limit-issue
time = os.date("*t")
if ((time.min % 5)==0) then -- remember the wundergroud limitation
That will make the script run every 5 minutes, which solves the API limit-issue
- Thursday 21 January 2016 10:24
- Forum: LUA
- Topic: Real-time solar data : azimuth, Altitude, Lux sensor... [closed]
- Replies: 245
- Views: 67680
Re: Real-time solar data : azimuth, Altitude, Lux sensor...
Hey, I implemented your script yesterday, and I must say that it works really well. Good Job! I have a question though, the API calls are running through the roof,and I am already up to 199 API calls to Weather Underground today (time now is 10:15) So how can I edit your script to not go over the ...