XWidgetSoft Forum https://www.bbs.xwidget.com/ |
|
[HELP] The number of daily images is the same as nr of night https://www.bbs.xwidget.com/viewtopic.php?f=3&t=6915 |
Page 1 of 1 |
Author: | Slavoo [ August 30th, 2018, 9:53 am ] |
Post subject: | [HELP] The number of daily images is the same as nr of night |
The widget downloads images from Accuweather and displays them. There are 40 pictures. Some of them are displayed during the day, others are displayed at night, but there are also those that are displayed both day and night [same picture]. I would like to divide it day and night. Is there any variable in XWidget that checks if it is already night, or is the sun already set? Or the other way round, is the day gone, or is the sun already rising? I would like to add [force] to display eg picture No. 37 instead of 11 at night or add a few equivalents of night conditions, because some weather conditions [the same] are displayed both during the day and at night. Np 7, 11, 12, 18, 19, 20, 22 For example, No. 11 [fog] If day is present, display 11, if it is night, display 37 or If is fog [11] and if is night, then display 37, if is fog [11] and if is day then display 11 No. 11 is displayed both during the day and at night and I do not want to Is it possible to do something like that? I hope that I expressed myself clearly @Jimking, @Tony, @yereverluvinuncleber |
Author: | Jimking [ August 30th, 2018, 1:38 pm ] |
Post subject: | Re: [HELP] The number of daily images is the same as nr of n |
Slavoo as you know accuweather uses 3 kind of codes/ways to visualize the icons viewtopic.php?f=10&t=4837 The best way to have more clear night icons is the tag for the 40 images. THIS CANNOT BE CHANGED BECAUSE THESE ARE THE DEFAULT TAGS FROM ACCUWEATHER.COM.. So this does not depend on us. BUT you need to understand that depends a lot on the icons used! The numbers that you ask for, have day and night images. Now there are conditions like fog, full cloudy, full rain, full snow, that have the same visualisation because in real life, the sky for these conditions are full of clouds without sun or moon. Now there are many icon sets that have day/night images (except for the fog) Example using the above weather set 7-Cloudy = 38-Night Mostly Cloudy 11-Fog 12- general showers 13- Mostly Cloudy with Showers = 39-Night Partly Cloudy with Showers 14- Partly Sunny with Showers = 40-Night Mostly Cloudy with Showers 18 - general rain 19 - general flurries 20-Mostly Cloudy with Flurries - 43--Night Mostly Cloudy with Flurries 22 - general snow EXTRA The "37" is not the fog for the night. This is the HAZE condition so it's the number "5" for the day. 5--Hazy Sunshine - 37--Night Hazy CONCLUSION: 1. We can't do anything. The tags cannot be changed since are the ones that are provided from the accuweather.com service 2. As you can see, the answer to your question depends a lot on the icon set used for the widget. There are icon packs that have the same weather icons for some of the above numbers. So in this case depends on the user who created them. |
Author: | Slavoo [ August 31st, 2018, 6:32 am ] |
Post subject: | Re: [HELP] The number of daily images is the same as nr of n |
Thanks |
Page 1 of 1 | All times are UTC - 8 hours |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |