Page 19 of 67

Re: ⭐ weather.com - Parsing the JSON

Posted: April 4th, 2020, 3:04 pm
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... ;-)

Re: ⭐ weather.com - Parsing the JSON

Posted: April 4th, 2020, 3:13 pm
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

Re: ⭐ weather.com - Parsing the JSON

Posted: April 4th, 2020, 3:22 pm
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:

Re: ⭐ weather.com - Parsing the JSON

Posted: April 4th, 2020, 4:10 pm
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... ;-)

Re: ⭐ weather.com - Parsing the JSON

Posted: April 4th, 2020, 4:37 pm
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?

Re: ⭐ weather.com - Parsing the JSON

Posted: April 4th, 2020, 6:12 pm
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.

Re: ⭐ weather.com - Parsing the JSON

Posted: April 4th, 2020, 6:30 pm
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...

Re: ⭐ weather.com - Parsing the JSON

Posted: April 4th, 2020, 7:21 pm
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.

Re: ⭐ weather.com - Parsing the JSON

Posted: April 4th, 2020, 7:33 pm
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.

Re: ⭐ weather.com - Parsing the JSON

Posted: April 4th, 2020, 7:55 pm
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....