Huge thanks again! This works like a charm!
It is currently April 19th, 2024, 6:42 pm
Help with weather icons
-
- Posts: 47
- Joined: February 12th, 2020, 1:53 am
-
- Posts: 865
- Joined: January 4th, 2018, 9:52 pm
-
- Posts: 47
- Joined: February 12th, 2020, 1:53 am
Re: Help with weather icons
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?
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
-
- Posts: 865
- Joined: January 4th, 2018, 9:52 pm
Re: Help with weather icons
Replace the previous code with itCrash 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
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
-
- Posts: 47
- Joined: February 12th, 2020, 1:53 am
Re: Help with weather icons
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
-
- Posts: 47
- Joined: February 12th, 2020, 1:53 am
Re: Help with weather icons
Would this not cause an issue if theres 2 meters with the priority of 2?
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
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
https://gyazo.com/7b7b2c7708c45ea5598a589af7911b12
is what im using for this
https://gyazo.com/56744e05bd911201a962ee7a9c36fde1
are all the ones i have setup
-
- Posts: 865
- Joined: January 4th, 2018, 9:52 pm
Re: Help with weather icons
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]
-
- Posts: 47
- Joined: February 12th, 2020, 1:53 am
Re: Help with weather icons
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?
-
- Posts: 943
- Joined: May 7th, 2016, 7:32 am
Re: Help with weather icons
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
The law of averages says what it means; even if you get everything right, you will get something wrong. Therefore; self managing error trapping initiates another set of averages - amongst the errors, some of them will not be errors, instead those instances will appear to be "luck". One cannot complain of the 'appearance' of 'infinite regress of causation', even if it does not have a predictable pattern, only that it requires luck to achieve.
There are many ways to be different - there is only one way to be yourself - be amazing at it
The law of averages says what it means; even if you get everything right, you will get something wrong. Therefore; self managing error trapping initiates another set of averages - amongst the errors, some of them will not be errors, instead those instances will appear to be "luck". One cannot complain of the 'appearance' of 'infinite regress of causation', even if it does not have a predictable pattern, only that it requires luck to achieve.
-
- Posts: 47
- Joined: February 12th, 2020, 1:53 am
Re: Help with weather icons
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 greatMor3bane 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