It is currently February 29th, 2020, 3:39 am

Help with weather icons

Help with creating, editing & fixing problems with skins
Crash
Posts: 14
Joined: February 12th, 2020, 1:53 am

Re: Help with weather icons

Post by Crash »

xenium wrote:
February 12th, 2020, 10:09 pm
I added the Pollen Alert
SkinGif+PollenAlert_.rmskin
Huge thanks again! This works like a charm!
xenium
Posts: 474
Joined: January 4th, 2018, 9:52 pm

Re: Help with weather icons

Post by xenium »

Crash wrote:
February 12th, 2020, 10:12 pm
Huge thanks again! This works like a charm!
You're welcome.
Crash
Posts: 14
Joined: February 12th, 2020, 1:53 am

Re: Help with weather icons

Post by Crash »

So a bit of a followup question, assuming i only have about 5 images for the "Pollen Alert" sorta notifs
Assuming every sorta alert is setup in a similar sense to this, would there be a way to prioritize alerts where only one shows up at a time? or the next one will show up under the one beforehand?

Code: Select all

[MeasurePollenAlert]
Measure=WebParser
Url=#URL#
RegExp=(?siU)(?(?=.*<a class="priority bg-alert-.*" href="/forecast/allergy/l/.*" title="Local Pollen Alert").* className="priority bg-alert-.*"><div class="title text text-overflow" className="title text text-overflow"><span class="warning-text" className="warning-text">Local Pollen Alert</span>)
UpdateRate=10000
LogSubstringErrors=0
IfMatch=Local Pollen Alert
IfMatchAction=[!ShowMeter "MeterPollenAlertIcon"]
IfNotMatchAction=[!HideMeter "MeterPollenAlertIcon"] 

[MeterPollenAlertIcon]
Meter=IMAGE
ImageName=#@#PollenWarning.png
X=0
Y=0
Hidden=1
AntiAlias=1
xenium
Posts: 474
Joined: January 4th, 2018, 9:52 pm

Re: Help with weather icons

Post by xenium »

Crash wrote:
February 13th, 2020, 9:56 pm
So a bit of a followup question, assuming i only have about 5 images for the "Pollen Alert" sorta notifs
Assuming every sorta alert is setup in a similar sense to this, would there be a way to prioritize alerts where only one shows up at a time? or the next one will show up under the one beforehand?

Code: Select all

[MeasurePollenAlert]
Measure=WebParser
Url=#URL#
RegExp=(?siU)(?(?=.*<a class="priority bg-alert-.*" href="/forecast/allergy/l/.*" title="Local Pollen Alert").* className="priority bg-alert-.*"><div class="title text text-overflow" className="title text text-overflow"><span class="warning-text" className="warning-text">Local Pollen Alert</span>)
UpdateRate=10000
LogSubstringErrors=0
IfMatch=Local Pollen Alert
IfMatchAction=[!ShowMeter "MeterPollenAlertIcon"]
IfNotMatchAction=[!HideMeter "MeterPollenAlertIcon"] 

[MeterPollenAlertIcon]
Meter=IMAGE
ImageName=#@#PollenWarning.png
X=0
Y=0
Hidden=1
AntiAlias=1
Replace the previous code with it

Code: Select all

[MeasurePollenAlert]
Measure=WebParser
Url=#URL#
RegExp=(?siU)(?(?=.*<a class="priority bg-alert-.*" href="/forecast/allergy/l/.*" title="Local Pollen Alert").* className="priority bg-alert-.*"><div class="title text text-overflow" className="title text text-overflow"><span class="warning-text" className="warning-text">Local Pollen Alert</span>)
UpdateRate=10000
LogSubstringErrors=0
IfMatch=priority bg-alert-1
IfMatchAction=[!ShowMeter "MeterAlertIcon1"]
IfNotMatchAction=[!HideMeter "MeterAlertIcon1"]                           
IfMatch2=priority bg-alert-2
IfMatchAction2=[!ShowMeter "MeterAlertIcon2"]
IfNotMatchAction2=[!HideMeter "MeterAlertIcon2"]
IfMatch3=priority bg-alert-3
IfMatchAction3=[!ShowMeter "MeterAlertIcon3"]
IfNotMatchAction3=[!HideMeter "MeterAlertIcon3"]
IfMatch4=priority bg-alert-4
IfMatchAction4=[!ShowMeter "MeterAlertIcon4"]
IfNotMatchAction4=[!HideMeter "MeterAlertIcon4"]
IfMatch5=priority bg-alert-5
IfMatchAction5=[!ShowMeter "MeterAlertIcon5"]
IfNotMatchAction5=[!HideMeter "MeterAlertIcon5"]

[MeterAlertIcon1]
Meter=IMAGE
ImageName=#@#AlertIcon1.png
X=0
Y=0
Hidden=1
AntiAlias=1

[MeterAlertIcon2]
Meter=IMAGE
ImageName=#@#AlertIcon2.png
X=0
Y=0
Hidden=1
AntiAlias=1
.
.
.
[MeterAlertIcon5]
Meter=IMAGE
ImageName=#@#AlertIcon5.png
X=0
Y=0
Hidden=1
AntiAlias=1
Crash
Posts: 14
Joined: February 12th, 2020, 1:53 am

Re: Help with weather icons

Post by Crash »

Ahh i see ok, this should be a huge help! thanks again, I only have one issue with an image i place based on time but i should be able to work it in since its lower than lowest priority heh
Crash
Posts: 14
Joined: February 12th, 2020, 1:53 am

Re: Help with weather icons

Post by Crash »

Would this not cause an issue if theres 2 meters with the priority of 2?

Code: Select all


[MeasurePollenAlert]
Measure=WebParser
Url=#URL#
RegExp=(?siU)(?(?=.*<a class="priority bg-alert-.*" href="/forecast/allergy/l/.*" title="Local Pollen Alert").* className="priority bg-alert-.*"><div class="title text text-overflow" className="title text text-overflow"><span class="warning-text" className="warning-text">Local Pollen Alert</span>)
UpdateRate=10000
LogSubstringErrors=0
IfMatch=Local Pollen Alert
IfMatchAction=[!ShowMeter "MeterPollenAlertIcon"]
IfNotMatchAction=[!HideMeter "MeterPollenAlertIcon"] 

[MeterPollenAlertIcon]
Meter=IMAGE
ImageName=#@#PollenWarning.png
X=0
Y=0
Hidden=1
AntiAlias=1


[MeasureTorrentialAlert]
Measure=WebParser
Url=#URL#
RegExp=(?siU)(?(?=.*<a class="priority bg-alert-.*" href="/weather/alerts/localalerts/l/.*" title="River Flood Advisory").* classname="priority bg-alert-.*"><div class="title text text-overflow" classname="title text text-overflow"><span class="warning-text" classname="warning-text">River Flood Advisory</span>)
LogSubstringErrors=0
IfMatch=River Flood Advisory
IfMatchAction=[!ShowMeter "MeterTorrentialAlertIcon"]
IfNotMatchAction=[!HideMeter "MeterTorrentialAlertIcon"] 

[MeterTorrentialAlertIcon]
Meter=IMAGE
ImageName=#@#TorrentialRain.png
X=0
Y=0
Hidden=1
AntiAlias=1
Presuming the images for said things are Specific to what issue is going on(Probably should have said that before sorry)
https://gyazo.com/7b7b2c7708c45ea5598a589af7911b12
is what im using for this
https://gyazo.com/56744e05bd911201a962ee7a9c36fde1
are all the ones i have setup
xenium
Posts: 474
Joined: January 4th, 2018, 9:52 pm

Re: Help with weather icons

Post by xenium »

Crash wrote:
February 13th, 2020, 10:50 pm
Would this not cause an issue if theres 2 meters with the priority of 2?
When you have alerts for different phenomena (pollen, tornado, river flood ....) the images should not have the same position.
Change the values for x and y to [MeterTorrentialAlertIcon]
Crash
Posts: 14
Joined: February 12th, 2020, 1:53 am

Re: Help with weather icons

Post by Crash »

xenium wrote:
February 13th, 2020, 11:05 pm
When you have alerts for different phenomena (pollen, tornado, river flood ....) the images should not have the same position.
Change the values for x and y to [MeterTorrentialAlertIcon]
Would that not then cause an issue with say
Pollen and Rain
Say Pollen Y=0
Rain Y=25
and when both are active it shows up fine but when only Rain is active it shows up at the Y of 25?
User avatar
Mor3bane
Posts: 772
Joined: May 7th, 2016, 7:32 am

Re: Help with weather icons

Post by Mor3bane »

Crash wrote:
February 14th, 2020, 12:05 am
Would that not then cause an issue with say
Pollen and Rain
Say Pollen Y=0
Rain Y=25
and when both are active it shows up fine but when only Rain is active it shows up at the Y of 25?
if you go off of from the top left to the lower right you can use relative positioning of icons. X=r20 Y=r0 this would put the designated icon at 20 pixels to the right but at the same height as the previous image - top to bottom in the code. Negative values also work e.g. X=r-20
My DevArt Gallery

There are many ways to be different - there is only one way to be yourself - be amazing at it
Crash
Posts: 14
Joined: February 12th, 2020, 1:53 am

Re: Help with weather icons

Post by Crash »

Mor3bane wrote:
February 14th, 2020, 1:54 am
if you go off of from the top left to the lower right you can use relative positioning of icons. X=r20 Y=r0 this would put the designated icon at 20 pixels to the right but at the same height as the previous image - top to bottom in the code. Negative values also work e.g. X=r-20
I had a setup like that but setting it r-20 when its alone would set it -20 and that dosn't look all that great