Try this, and you'll get the dateTime section:
Code: Select all
https://api.weather.com/v3/dateTime?geocode=<latitude>,<longitude>&format=json&apiKey=d522aa97197fd864d36b418f39ebb323
Try this, and you'll get the dateTime section:
Code: Select all
https://api.weather.com/v3/dateTime?geocode=<latitude>,<longitude>&format=json&apiKey=d522aa97197fd864d36b418f39ebb323
Nice. I don't mind a tiny parent measure to get that information. Thanks!Yincognito wrote: ↑July 31st, 2020, 1:29 pm Try this, and you'll get the dateTime section:It's a bit of a guess work to figure out the names of other sections, by the way. Sometimes they are just like the names in the JSON, otherwise a little bit different...Code: Select all
https://api.weather.com/v3/dateTime?geocode=<latitude>,<longitude>&format=json&apiKey=d522aa97197fd864d36b418f39ebb323
The way this is going to work, starting a bit later today, is:anbr07 wrote: ↑July 31st, 2020, 1:37 pm Sorry for asking, but i have noe clues about all those tech details. I am using Weather Meter. Is there any code in the numerous code examples in this thread, that could replace the current one to make it work again? I had a brief look into the vast code of this skin, and have no idea, where the relevant REGEX stuff is, where things have to be replaced, so i don't even think about trying.
It's not about stumbling on them, as such luck is generally very rare, it's about trying different names for it, i.e. the air quality section is called getSunV3GlobalAirQualityUrlConfig in the embedded JSOn, thus the name in the API URL could be v3-wx-global-air-quality, or v3-global-air-quality, or v3-wx-air-quality-global, or v3-wx-globalAirQuality, and so on. It's quite hard to find what works, as they could use any remotely similar permutation or section name format for those. Or, they could be unavailable in the aggregated form and available otherwise, like the dateTime thing.jsmorley wrote: ↑July 31st, 2020, 1:33 pm Nice. I don't mind a tiny parent measure to get that information. Thanks!
Yeah, it would be nice to be able to get the other stuff like "air quality" and "pollen" and who knows what else that is there in the embedded JSON. If you stumble on to any of those, could you post about it? It's not critical for a general weather skin, but for those who want to go all-out, I'd like to offer separate .inc files at some point in the future.
Code: Select all
https://api.weather.com/v2/turbo/vt1Loc;vt1Observation;vt1CurrentDateTime;vt1DailyForecast?geocode=<latitude>,<longitude>&format=json&units=m&language=en-GB&apiKey=d522aa97197fd864d36b418f39ebb323
There is just no help I can offer just yet. I'm still working on the fixes for the .inc files to correct this issue, and while this is likely to be done a bit later today, there is just nothing you can do until then. Patience...anbr07 wrote: ↑July 31st, 2020, 1:55 pm Thanks for the quick reply. Does "@Include=#@#WeatherComJSONVariables.inc" sound good to you? If so, you could help me with the changes. Otherwise i would use your version from the link, but would prefer to stick to the old one, with sun and moon informations.
I would give my left arm for a list of all the "sections" that are available in the V3 API...Yincognito wrote: ↑July 31st, 2020, 1:56 pm It's not about stumbling on them, as such luck is generally very rare, it's about trying different names for it, i.e. the air quality section is called getSunV3GlobalAirQualityUrlConfig in the embedded JSOn, thus the name in the API URL could be v3-wx-global-air-quality, or v3-global-air-quality, or v3-wx-air-quality-global, or v3-wx-globalAirQuality, and so on. It's quite hard to find what works, as they could use any remotely similar permutation or section name format for those. Or, they could be unavailable in the aggregated form and available otherwise, like the dateTime thing.
The same data as this can be obtained using the "old" V2 format, like (notice how the vt1Loc seems to be invalid, another puzzle I've been unable to figure out):Code: Select all
https://api.weather.com/v2/turbo/vt1Loc;vt1Observation;vt1CurrentDateTime;vt1DailyForecast?geocode=<latitude>,<longitude>&format=json&units=m&language=en-GB&apiKey=d522aa97197fd864d36b418f39ebb323
This has been discussed on the main Gadgets thread. Check this link: https://github.com/SilverAzide/Weather-Meter-Patchanbr07 wrote: ↑July 31st, 2020, 1:37 pm Sorry for asking, but i have noe clues about all those tech details. I am using Weather Meter. Is there any code in the numerous code examples in this thread, that could replace the current one to make it work again? I had a brief look into the vast code of this skin, and have no idea, where the relevant REGEX stuff is, where things have to be replaced, so i don't even think about trying.
LOL, not me. You might be disssapointed to find out that those V3 API sections don't cover all the sections in the embedded V3 JSON...