Ciao Techdoctor,
thanks a lot for this useful info!
I'm in Italy and already have Loxone weather station & weather services, but I'd like to have a back-up service so that now I can compare the data too. J
Here enclosed you can check my Virtual Input template I created until now. As Polling cycle I've set 600s because OpenWeatherMap suggests to call the API every 10 minutes. Do u have better experience here?
Thanks a lot for your help!
--
You received this message because you are subscribed to the Google Groups "Loxone English" group.
To unsubscribe from this group and stop receiving emails from it, send an email to loxone-englis...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/loxone-english/250dc1a4-b515-47d7-a7ff-5ee06e9119ef%40googlegroups.com.
It's ok!
I'm now trying to use the newer API, which is called "onecall"
API, https://openweathermap.org/api/one-call-api#how,
in which there are 3 sections, Current, 48 Hour forecast, 7 day
forecast, and 5 days history. Max. calls in a day are 1000.
I'm currently reading just the Actual data, since I still need to know how to filter out the hour-by-hour or day-by-day data.
To unsubscribe from this group and stop receiving emails from it, send an email to loxone-...@googlegroups.com.
@techdoctor
I now moved to OneCallAPI. Quite satisfied with it, but I'm becoming crazy to nail down the info under "weather" section of the data frame:
"weather":[{"id":800,"main":"Clear","description":"clear sky","icon":"01d"}]
If I call the the "id" it's straight forward and replies with the
correct value, 800 in the actual case.
I've then tried to read "main", which in this case is "Clear",
also tried with your suggested trick ("id"\s6\v)
but it always replies 0; is the Virtual Input capable to deliver String type data or I'm doing something wrong ?
@Pavel
Here enclosed you've the XML template file for the OneCallAPI I've done until now. Please note
@Techdoctor
Wow di u worked on research ships? But on navigation?
- Yep, limitation of Virtual inputs maybe the reason why. Yes I've made a quite big status table containing all the described cases: 2xx, 3xx, 5xx, 6xx, 7xx, 8xx
- Since I'm not an expert about weather & navigation I also made a Status table for the wind directon (South-west wind, mainly North wind, etc.)
Also, I converted the UTC Unix time (in s) adding 1230768000 (s from 2009, which is the internal UTC for the miniserver) + GMT+1 I'm located, what about also considering the daylight saving option? Do u know if Loxone has a Merker "daylight saving time" wich tells us Yes or Not so that we can also add this to the formula?
Otherwise it's now: UTC time + 1230768000 + 3600 + 3600 (GMT+1 + 1h saving time)
Last but not the least: we should go to the interesting point now, using the OneCallAPI, what about getting the forecast data which are given at hourly rate for the next 48h ?
Thanks!
--
You received this message because you are subscribed to the Google Groups "Loxone English" group.
To unsubscribe from this group and stop receiving emails from it, send an email to loxone-englis...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/loxone-english/7892c218-7c37-483d-8110-126108697b02%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to loxone-...@googlegroups.com.
Good!
- Which data are u quering to get forecast ? I mean I see you get
the forecast for Sky, Humidirty, Temp, UV. But forecast 12h ? 24h
? I don't see those into the json data frame. That's why I moved
to OneCallAPI.
- Are u also considering to extrapolate the sunshine threshold,
which is very important to control the blinds ?
On Monday, 27 April 2020 23:54:16 UTC+2, Techdoctor wrote:
--
You received this message because you are subscribed to the Google Groups "Loxone English" group.
To unsubscribe from this group and stop receiving emails from it, send an email to loxone-englis...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/loxone-english/ef950724-7ca0-4b7f-a803-447862c878a9%40googlegroups.com.
Not sure I've got the clue of it.
I've tried but it always replies 0
May you please share the Loxone XML template file of the
OneCallAPI you've created? Thanks!
I think I have worked it out now by using jump to text command i\,"uvi":\ii\,"uvi":\ii\,"uvi":\i\v So this would jump three uvi positions and read the data after the third uvi.I have done this for all the forecast data using this text jump command rather than character jump.To get most of the forecast data I have used the http://api.openweathermap.org/data/2.5/forecast?q=location&appid=your_api_key&units=metric&mode=xml
I then cut and pasted the output into notepad and using the find function counted the number of words to jump to.
For the UVI I used the onecall version of the api. Reason for using two different api's apart from UVI is only available on the onecall is to see if either drop out.
--
You received this message because you are subscribed to the Google Groups "Loxone English" group.
To unsubscribe from this group and stop receiving emails from it, send an email to loxone-englis...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/loxone-english/32feb90b-738b-42e7-8939-03cb222e320c%40googlegroups.com.
My min was 18.1 at 0930 this morning and is still showing 18.1 at 12:40, max temp is 21.4 and current temp is 21.4. Which Max Min block are you using, I am using the normal Max Min block and not the Max Min since reset.I also reset the max min temp at dawn every day.
--
You received this message because you are subscribed to the Google Groups "Loxone English" group.
To unsubscribe from this group and stop receiving emails from it, send an email to loxone-englis...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/loxone-english/cdd505d1-23b5-4cb0-b39c-862909dd9b65%40googlegroups.com.
Why have I even started to read this blog ;-) spend a couple of nights on getting the api's properly working.Thanks to all the participants, learned a lot and it helps in improving automatic shading and other future automations I want to achieve and just the additional information you have.About the min - max debate, I see two approaches here.What techdoctor is doing, getting the min/max from the observed temperature of that day with the min/max block. Your min temperature is probably at dawn and your max temperature is somewhere in the afternoon.But for the forecast, I was more looking like Mbee's approach, getting the min/max with the API but it is only available in the daily part of the api and it does have little changes during the day.For me it is part of the forecast, therefor I just used the min/max value of the api.I'm not using it in any automation and can't think of any use case for myself at the moment.Kind regardsSteven
Op za 9 mei 2020 om 12:49 schreef Techdoctor <casa.d...@gmail.com>:
--
My min was 18.1 at 0930 this morning and is still showing 18.1 at 12:40, max temp is 21.4 and current temp is 21.4. Which Max Min block are you using, I am using the normal Max Min block and not the Max Min since reset.I also reset the max min temp at dawn every day.
You received this message because you are subscribed to the Google Groups "Loxone English" group.
To unsubscribe from this group and stop receiving emails from it, send an email to loxone-...@googlegroups.com.
{"lat":xx,"lon":x.xx,"timezone":"Europe/xx","daily":[{"dt":1589108400,"sunrise":1589083040,"sunset":1589138136,"temp":{"day":11.41,"min":8.21,"max":11.41,"night":8.21,"eve":11.41,"morn":11.41},"feels_like":{"day":5.54,"night":1.02,"eve":5.54,"morn":5.54},"pressure":1008,"humidity":76,"dew_point":7.34,"wind_speed":7.5,"wind_deg":25,"weather":[{"id":804,"main":"Clouds","description":"overcast clouds","icon":"04d"}],"clouds":100,"uvi":5.74},{"dt":1589194800,"sunrise":1589169346,"sunset":1589224628,"temp":{"day":12.03,"min":2.34,"max":12.03,"night":2.34,"eve":9.19,"morn":6.12},"feels_like":{"day":3.8,"night":-1.53,"eve":2.37,"morn":-2.48},"pressure":1012,"humidity":46,"dew_point":0.84,"wind_speed":9.08,"wind_deg":22,"weather":[{"id":804,"main":"Clouds","description":"overcast clouds","icon":"04d"}],"clouds":100,"uvi":5.38},{"dt":1589281200,"sunrise":1589255653,"sunset":1589311120,"temp":{"day":10.07,"min":3.07,"max":11.25,"night":3.07,"eve":9.45,"morn":5.44},"feels_like":{"day":6.09,"night":-0.2,"eve":4.97,"morn":2.86},"pressure":1019,"humidity":55,"dew_point":1.5,"wind_speed":3.16,"wind_deg":339,"weather":[{"id":803,"main":"Clouds","description":"broken clouds","icon":"04d"}],"clouds":61,"uvi":5.67},{"dt":1589367600,"sunrise":1589341963,"sunset":1589397611,"temp":{"day":11.49,"min":3.1,"max":12.76,"night":3.1,"eve":9.69,"morn":5.82},"feels_like":{"day":5.93,"night":-2.03,"eve":3.77,"morn":2.44},"pressure":1019,"humidity":54,"dew_point":2.62,"wind_speed":5.67,"wind_deg":29,"weather":[{"id":802,"main":"Clouds","description":"scattered clouds","icon":"03d"}],"clouds":26,"uvi":5.89},{"dt":1589454000,"sunrise":1589428274,"sunset":1589484101,"temp":{"day":12.75,"min":4.35,"max":13.33,"night":4.35,"eve":10.87,"morn":4.84},"feels_like":{"day":6.63,"night":-0.94,"eve":6.06,"morn":-1.03},"pressure":1020,"humidity":44,"dew_point":0.82,"wind_speed":6.08,"wind_deg":55,"weather":[{"id":800,"main":"Clear","description":"clear sky","icon":"01d"}],"clouds":0,"uvi":5.9},{"dt":1589540400,"sunrise":1589514588,"sunset":1589570591,"temp":{"day":13.96,"min":5.17,"max":14.15,"night":5.17,"eve":12.26,"morn":5.75},"feels_like":{"day":8.97,"night":2.27,"eve":8.32,"morn":0.62},"pressure":1018,"humidity":51,"dew_point":4.26,"wind_speed":5.24,"wind_deg":25,"weather":[{"id":800,"main":"Clear","description":"clear sky","icon":"01d"}],"clouds":9,"uvi":6.21},{"dt":1589626800,"sunrise":1589600903,"sunset":1589657079,"temp":{"day":14.42,"min":3.75,"max":14.42,"night":3.75,"eve":12.45,"morn":8.25},"feels_like":{"day":11.57,"night":0.52,"eve":9.43,"morn":5.9},"pressure":1021,"humidity":59,"dew_point":6.64,"wind_speed":2.92,"wind_deg":305,"weather":[{"id":500,"main":"Rain","description":"light rain","icon":"10d"}],"clouds":74,"rain":0.69,"uvi":6.3},{"dt":1589713200,"sunrise":1589687221,"sunset":1589743566,"temp":{"day":11.95,"min":2.95,"max":11.95,"night":2.95,"eve":10.14,"morn":7.27},"feels_like":{"day":5.8,"night":-0.55,"eve":5.2,"morn":4.48},"pressure":1024,"humidity":54,"dew_point":3.07,"wind_speed":6.62,"wind_deg":333,"weather":[{"id":500,"main":"Rain","description":"light rain","icon":"10d"}],"clouds":53,"rain":0.44,"uvi":6.54}]}
{"lat":xx.xx,"lon":x.xx,"timezone":"Europe/xx","current":{"dt":1589141446,"sunrise":1589083040,"sunset":1589138136,"temp":11.28,"feels_like":4.89,"pressure":1008,"humidity":76,"dew_point":7.21,"uvi":5.74,"clouds":100,"visibility":10000,"wind_speed":8.2,"wind_deg":10,"wind_gust":13.9,"weather":[{"id":300,"main":"Drizzle","description":"light intensity drizzle","icon":"09n"}],"rain":{}}}
To unsubscribe from this group and stop receiving emails from it, send an email to loxone-englis...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/loxone-english/f3694129-9f14-48bc-a3f0-f954d77c0e63%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/loxone-english/CAFai%3DXBqfm9JaLBEuErhF_-q_StOrSbG7THDPDa8AjU%3DoJ3Xqg%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/loxone-english/f3694129-9f14-48bc-a3f0-f954d77c0e63%40googlegroups.com.
I made Virtual HTTP Input Commands, one for "min":\v and one for "max":\v for the min and max temperatures of each day. They pick up the first ones for the current day perfectly, but I have not been able to figure out how to pick up the next 7 of each. I was thinking that the J command to jump X spaces may work but with a multi day forecast the spacing is different for each day depending on what is being reported for that day.
Has anyone messed with a weather service that can bring data like that in?
{"cod":"200","message":0,"cnt":40,"list":[{"dt":1612234800,"main":{"temp":0.56,"feels_like":-2.44,"temp_min":0.56,"temp_max":1.15,"pressure":954,"sea_level":954,"grnd_level":920,"humidity":93,"temp_kf":-0.59},"weather":[{"id":803,"main":"Clouds","description":"broken clouds","icon":"04n"}],"clouds":{"all":77},"wind":{"speed":1.36,"deg":262},"visibility":10000,"pop":0.27,"sys":{"pod":"n"},"dt_txt":"2021-02-02 03:00:00"},{"dt":1612245600,"main":{"temp":0.79,"feels_like":-2.18,"temp_min":0.79,"temp_max":1.01,"pressure":986,"sea_level":986,"grnd_level":921,"humidity":89,"temp_kf":-0.22},"weather":[{"id":600,"main":"Snow","description":"light snow","icon":"13n"}],"clouds":{"all":68},"wind":{"speed":1.24,"deg":277},"visibility":10000,"pop":0.3,"snow":{"3h":0.15},"sys":{"pod":"n"},"dt_txt":"2021-02-02 06:00:00"},{"dt":1612256400,"main":
Assuming it looks more or less like this, if you want the current temp you would type the "temp":\v in the command recognition box on the virtual http input command script. The \v is the loxone command to display the value following the text that was typed prior to it. (Hopefully that makes sense)
You received this message because you are subscribed to a topic in the Google Groups "Loxone English" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/loxone-english/kqVJg4lSLWc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to loxone-englis...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/loxone-english/fb56ef01-b74d-4984-b0e6-9ef34572cdbcn%40googlegroups.com.
{"temp":286,"feels_like":281.51,"temp_min":285.37,"temp_max":286.48,"pressure":995,"humidity":71},"visibility":10000,"wind":{"speed":5.66,"deg":230},"clouds":
This is the command recognition text I am using for temp and humidity
“temp”:\v
“humidity”:\V
To view this discussion on the web visit https://groups.google.com/d/msgid/loxone-english/dc66bb97-952c-407e-81b9-6bc9de2c9e70n%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/loxone-english/9808256d-fce1-4357-9e17-e57e62f257ebn%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/loxone-english/ec858a55-83aa-4f2a-8dac-cb304c9a1d44n%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/loxone-english/9f4aefc9-853d-4b90-b5e4-d454ba29de79n%40googlegroups.com.
--
You received this message because you are subscribed to a topic in the Google Groups "Loxone English" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/loxone-english/kqVJg4lSLWc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to loxone-englis...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/loxone-english/e6a51905-6eb4-474c-990d-0cccc913e438n%40googlegroups.com.
Just received a mail that OWM API 2.5 that we were using for this hack will be depreciated, we'll have to move to API 3.0 (the 1000 free calls/day should be sufficient)