It is currently March 28th, 2024, 9:53 am

⭐ Weather.com - Parsing the V3 JSON

Our most popular Tips and Tricks from the Rainmeter Team and others
User avatar
fonpaolo
Moderator
Posts: 1387
Joined: April 11th, 2013, 8:08 pm
Location: Italy
Contact:

Re: ⭐ weather.com - Parsing the JSON

Post by fonpaolo »

I've given a look at the code you provided.
Since it uses the same source, meteoalarm.eu, it's better to use the original.
I've been using it for a long time, there's an rss file and it's very easy to develop a skin, it's very well documented, or, if you want, to use my code... ;-)
User avatar
Yincognito
Rainmeter Sage
Posts: 7017
Joined: February 27th, 2015, 2:38 pm
Location: Terra Yincognita

Re: ⭐ weather.com - Parsing the JSON

Post by Yincognito »

fonpaolo wrote: April 4th, 2020, 2:26 pmProbably it's the wrong time, since the weather is almost always good, so, no alerts, however in the old wxdata the alerts were gone long ago and looking at the web page every now and then, I haven't seen any.
It's not the wrong time for daddy Yincognito, who saved and formatted a couple of weather.com page sources ever since the beginning of February, in order to not poll the site for nothing whenever he needed a little info on the overall source structure... :D
User avatar
Yincognito
Rainmeter Sage
Posts: 7017
Joined: February 27th, 2015, 2:38 pm
Location: Terra Yincognita

Re: ⭐ weather.com - Parsing the JSON

Post by Yincognito »

fonpaolo wrote: April 4th, 2020, 3:04 pm I've given a look at the code you provided.
Since it uses the same source, meteoalarm.eu, it's better to use the original.
I've been using it for a long time, there's an rss file and it's very easy to develop a skin, it's very well documented, or, if you want, to use my code... ;-)
Thanks, but as I said, I'm using that forecast day field as an "alert substitute" in my weather skin. I don't have either the space in my skins or the wliingness to make an additional effort to decifer the alerts code technical meaning. I didn't yet implement the hourly forecast either, for the same reason, after all. I might do it someday if I feel like it, but I wouldn't hold my breath... ;-)

Thanks again for the offer - you're a gentleman. :thumbup:
User avatar
fonpaolo
Moderator
Posts: 1387
Joined: April 11th, 2013, 8:08 pm
Location: Italy
Contact:

Re: ⭐ weather.com - Parsing the JSON

Post by fonpaolo »

Well, there's little or nothing to translate or decipher, it's just an icon and the time from start to end of alert, maybe put it in a tooltip... ;-)
User avatar
Yincognito
Rainmeter Sage
Posts: 7017
Joined: February 27th, 2015, 2:38 pm
Location: Terra Yincognita

Re: ⭐ weather.com - Parsing the JSON

Post by Yincognito »

fonpaolo wrote: April 4th, 2020, 4:10 pm Well, there's little or nothing to translate or decipher, it's just an icon and the time from start to end of alert, maybe put it in a tooltip... ;-)
You mean in your code, not the weather.com source, right?
User avatar
fonpaolo
Moderator
Posts: 1387
Joined: April 11th, 2013, 8:08 pm
Location: Italy
Contact:

Re: ⭐ weather.com - Parsing the JSON

Post by fonpaolo »

Yes, I mean directly from the European source.

There's also a description, but is very similar to what is in weather.com alerts.
Attachments
EuAlerts.jpg
Today no alerts...
User avatar
Yincognito
Rainmeter Sage
Posts: 7017
Joined: February 27th, 2015, 2:38 pm
Location: Terra Yincognita

Re: ⭐ weather.com - Parsing the JSON

Post by Yincognito »

fonpaolo wrote: April 4th, 2020, 6:12 pm Yes, I mean directly from the European source.

There's also a description, but is very similar to what is in weather.com alerts.
Oh, I see. Well, you can share the code if you like - will see what's up with it and maybe I'll find a place for it in a tooltip. No guarantees though, I'm very strict with what can enter and what can leave my precious tooltip space, LOL...
User avatar
fonpaolo
Moderator
Posts: 1387
Joined: April 11th, 2013, 8:08 pm
Location: Italy
Contact:

Re: ⭐ weather.com - Parsing the JSON

Post by fonpaolo »

Ok, I'll take a look at it, since it's integrated with the other part(s) of my weather skin.
To avoid confusions, I've to clean up any unnecessary reference.
User avatar
Yincognito
Rainmeter Sage
Posts: 7017
Joined: February 27th, 2015, 2:38 pm
Location: Terra Yincognita

Re: ⭐ weather.com - Parsing the JSON

Post by Yincognito »

fonpaolo wrote: April 4th, 2020, 7:21 pm Ok, I'll take a look at it, since it's integrated with the other part(s) of my weather skin.
To avoid confusions, I've to clean up any unnecessary reference.
Only if you want too. If there's too much trouble, don't worry. My skins are 95% complete anyway - just need to rephrase some of the text in my tooltips to align in my monospaced font custom tooltips.
User avatar
fonpaolo
Moderator
Posts: 1387
Joined: April 11th, 2013, 8:08 pm
Location: Italy
Contact:

Re: ⭐ weather.com - Parsing the JSON

Post by fonpaolo »

Don't worry, no troubles for me, it's solely to avoid confusion.

Do you also need (or want) the related icons?

If yes, I don't remember if I can upload a zip file here....
Post Reply