Weather not working?

Help with creating, editing & fixing problems with skins
User avatar

Re: Weather not working?

October 19th, 2016, 4:17 pm
balala
Rainmeter Sage   [3743 posts]

Please pack the whole config and upload it. It would be much simpler for me to check what's happening.

Re: Weather not working?

October 19th, 2016, 4:25 pm
Rayn
   [6 posts]

I did post the link for the theme on my OP. It's from deviantart:
http://toastbrotpascal.deviantart.com/art/ABP-1-2-173567354
I'd upload it, but the file size it too large for the forum.

Anyway, the original dev seems to have given up on the theme, and a lot of people are complaining about the weather issue, so if you can fix it, I'll post a link to working .ini file for other users with a link to your deviantart profile, as you did all the work :)
User avatar

Re: Weather not working?

October 19th, 2016, 4:28 pm
balala
Rainmeter Sage   [3743 posts]

I'd need your config, as it is now. If you can't upload it to the forum, upload to any file host (like FileFactory) and post here the link.

Re: Weather not working?

October 19th, 2016, 4:41 pm
Rayn
   [6 posts]

Here's the theme from my /documents/rainmeter/skins folder:
https://www.dropbox.com/s/brrs1xgwoq8mdbi/ABP.rar?dl=0

And here's the /program files/Rainmeter app folder:
https://www.dropbox.com/s/zlg7gmckabek4 ... r.rar?dl=0
User avatar

Re: Weather not working?

October 19th, 2016, 6:26 pm
balala
Rainmeter Sage   [3743 posts]

Rayn wrote:And here's the /program files/Rainmeter app folder:
https://www.dropbox.com/s/zlg7gmckabek4 ... r.rar?dl=0

That's not needed at all.

Do the followings:
1. Remove the first occurrence of the @include and @include2 options. You don't need them twice, use them just under the [Variables] section.
2. Again: please, please move the Author option into the [Metadata] section. Newly it belongs there.
3. Replace the [TodayText] meter with this one:

Code: Select all

[TodayText]
Meter=STRING
MeasureName=MeasureWeatherTemp2
MeterStyle=Style
FontColor=#Color#
StringAlign=CENTER
X=57
Y=120
Text=Today: %1°
Group=Open
Hidden=#Open#

and completely remove the [TodayTemperature] meter.
4. Also replace the [Date2] meter with:

Code: Select all

[Date2]
Meter=STRING
MeterStyle=Style
MeasureName=MeasureWeatherDate2
MeasureName2=MeasureWeatherTemp2
FontColor=#Color#
StringAlign=CENTER
X=136
Y=120
FontSize=8
Text=%1: %2°
Group=Open
Hidden=#Open#

and remove the [Temperature2] meter.
The last two changes will properly align the temperatures.

Weather Fix for ABP 1.2

October 19th, 2016, 6:50 pm
Rayn
   [6 posts]

It works! :) thanks for all your help.

Here's the Weather.ini code for anyone else who's having problems with the weather plugin in ABP v1.2

Code: Select all

[Rainmeter]
Update=1000

[Metadata]
Author=P2C | toastbrotpascal.deviantart.com

[Variables]
Closed=1
Open=0
@include="#SKINSPATH#\ABP\Variables.txt"
@include2="#SKINSPATH#\ABP\Resources\#Skin#\Colors.txt"

[BG]
Meter=IMAGE
ImageName=WeatherBG.png
Path="#SKINSPATH#\ABP\Resources\#Skin#"

[BG2]
Meter=IMAGE
ImageName=WeatherBG2.png
Path="#SKINSPATH#\ABP\Resources\#Skin#"
Y=115
Hidden=#Open#
Group=Open

[Bottom]
Meter=IMAGE
ImageName=Bottom.png
Path="#SKINSPATH#\ABP\Resources\#Skin#"
Y=186

[MeasureWeatherRSS]
Measure=Plugin
Plugin=WebParser
UpdateRate=1800
Url=http://wxdata.weather.com/wxdata/weather/local/#WeatherCode#?cc=*&unit=#Unit#&dayf=4
RegExp=(?siU)<weather ver="(.*)">.*<dnam>(.*)</dnam>.*<lat>(.*)</lat>.*<lon>(.*)</lon>.*<sunr>(.*)</sunr>.*<suns>(.*)</suns>.*<zone>(.*)</zone>.*<tmp>(.*)</tmp>.*<flik>(.*)</flik>.*<t>(.*)</t>.*<icon>(.*)</icon>.*<moon>.*<icon>(.*)</icon>.*<t>(.*)</t>.*</moon>.*t="(.*)" dt="(.*)">.*<hi>(.*)</hi>.*<low>(.*)</low>.*<icon>(.*)</icon>.*<t>(.*)</t>.*t="(.*)" dt="(.*)">.*<hi>(.*)</hi>.*<low>(.*)</low>.*<icon>(.*)</icon>.*<t>(.*)</t>.*t="(.*)" dt="(.*)">.*<hi>(.*)</hi>.*<low>(.*)</low>.*<icon>(.*)</icon>.*<t>(.*)</t>.*t="(.*)" dt="(.*)">.*<hi>(.*)</hi>.*<low>(.*)</low>.*<icon>(.*)</icon>.*<t>(.*)</t>
StringIndex=1

[MeasureWeatherTemp]
Measure=Plugin
Plugin=WebParser
Url=[MeasureWeatherRSS]
StringIndex=8

[MeasureWeatherIcon]
Measure=Plugin
Plugin=WebParser
Url=[MeasureWeatherRSS]
StringIndex=11

[MeasureWeatherDesc]
Measure=Plugin
Plugin=WebParser
Url=[MeasureWeatherRSS]
StringIndex=10

[MeasureWeatherDate2]
Measure=Plugin
Plugin=WebParser
Url=[MeasureWeatherRSS]
StringIndex=20

[MeasureWeatherTemp2]
Measure=Plugin
Plugin=WebParser
Url=[MeasureWeatherRSS]
StringIndex=22

[MeasureWeatherIcon2]
Measure=Plugin
Plugin=WebParser
Url=[MeasureWeatherRSS]
StringIndex=24

[MeasureWeatherDate3]
Measure=Plugin
Plugin=WebParser
Url=[MeasureWeatherRSS]
StringIndex=26

[MeasureWeatherTemp3]
Measure=Plugin
Plugin=WebParser
Url=[MeasureWeatherRSS]
StringIndex=28

[MeasureWeatherIcon3]
Measure=Plugin
Plugin=WebParser
Url=[MeasureWeatherRSS]
StringIndex=30

[CurrentTemperature]
Meter=STRING
MeterStyle=Style
MeasureName=MeasureWeatherTemp
X=175
Y=70
Postfix="°"
FontSize=12
FontColor=#Color#
StringAlign=RIGHT

[CurrentIcon]
Meter=Image
MeasureName=MeasureWeatherIcon
Path="#SKINSPATH#\ABP\Resources\Weather\LargeIcons"
X=20
W=145

[WeatherDescription]
Meter=STRING
MeterStyle=Style
MeasureName=MeasureWeatherDesc
StringAlign=CENTER
X=97
Y=98
FontSize=8

[Down]
Meter=IMAGE
ImageName=Down.png
Path="#SKINSPATH#\ABP\Resources\#Skin#"
X=86
Y=118
Group=Closed
Hidden=#Closed#
MouseOverAction=[!ShowMeter DownH][!Redraw]
MouseLeaveAction=[!HideMeter DownH][!Redraw]

[DownH]
Meter=IMAGE
ImageName=Down.png
Path="#SKINSPATH#\ABP\Resources\#Skin#"
X=r
Y=r
Hidden=1
ImageTint=#Color#
LeftMouseUpAction=[!WriteKeyValue Bottom Y 186][!WriteKeyValue Variables Closed 1][!WriteKeyValue Variables Open 0][!HideMeterGroup Closed][!ShowMeterGroup Open][!MoveMeter 0 186 Bottom][!HideMeter DownH][!Redraw]

[Up]
Meter=IMAGE
ImageName=Up.png
Path="#SKINSPATH#\ABP\Resources\#Skin#"
X=86
Y=189
Group=Open
Hidden=#Open#
MouseOverAction=[!ShowMeter UpH][!Redraw]
MouseLeaveAction=[!HideMeter UpH][!Redraw]

[UpH]
Meter=IMAGE
ImageName=Up.png
Path="#SKINSPATH#\ABP\Resources\#Skin#"
X=r
Y=r
Hidden=1
ImageTint=#Color#
LeftMouseUpAction=[!WriteKeyValue Bottom Y 115][!WriteKeyValue Variables Closed 0][!WriteKeyValue Variables Open 1][!ShowMeterGroup Closed][!HideMeterGroup Open][!MoveMeter 0 115 Bottom][!HideMeter UpH][!Redraw]

[TodayText]
Meter=STRING
MeasureName=MeasureWeatherTemp2
MeterStyle=Style
FontColor=#Color#
StringAlign=CENTER
X=57
Y=120
Text=Today: %1°
Group=Open
Hidden=#Open#

[TodayIcon]
Meter=Image
MeasureName=MeasureWeatherIcon2
Path="#SKINSPATH#\ABP\Resources\Weather\SmallIcons"
X=27
Y=15r
Group=Open
Hidden=#Open#

[Date2]
Meter=STRING
MeterStyle=Style
MeasureName=MeasureWeatherDate2
MeasureName2=MeasureWeatherTemp2
FontColor=#Color#
StringAlign=CENTER
X=136
Y=120
FontSize=8
Text=%1: %2°
Group=Open
Hidden=#Open#

[Icon2]
Meter=Image
MeasureName=MeasureWeatherIcon2
Path="#SKINSPATH#\ABP\Resources\Weather\SmallIcons"
X=109
Y=15r
Group=Open
Hidden=#Open#

[Yahoo]
Meter=STRING
MeterStyle=Style
X=100
Y=171
Text="Yahoo! Weather"
FontSize=7
StringAlign=CENTER
Group=Open
Hidden=#Open#
LeftMouseUpAction=["https://www.yahoo.com/news/weather/"]
User avatar

Re: Weather not working?

October 19th, 2016, 7:08 pm
balala
Rainmeter Sage   [3743 posts]

You're welcome, Rayn.
User avatar

Re: Weather not working?

October 26th, 2016, 5:47 am
picasso21
   [10 posts]

i'm bamboozled. how do I get it to work again? here's the code: thanks



[Rainmeter]
Author=allendurakovic
Contact:allendurakovic@gmail.com
Name=Tick Weather
Version:1.0.0
Preview=#SKINSPATH#Preview.png

----------------------------------------------
WEATHER
----------------------------------------------


[Variables]
You may delete "&unit=m" if you prefer the Fahrenheit Scale.
Enter your location code instead of srxx0005
URL=https://weather.com/weather/today/l/BRXX0043:1:BR
Font=Century Gothic
;---------------------------

[MeasureWeatherRSS]
Measure=Plugin
Plugin=Plugins\WebParser.dll
UpdateRate=1800
URL=http://xml.weather.com/weather/local/BKXX0005?cc=*&unit=m&dayf=6
RegExp="(?siU)<weather ver="(.*)">(.*)<tmp>(.*)</tmp>(.*)<t>(.*)</t>(.*)<icon>(.*)</icon>(.*)<day d="1" t="(.*)" dt="(.*)">(.*)<hi>(.*)</hi>(.*)<low>(.*)</low>(.*)<icon>(.*)</icon>(.*)<t>(.*)</t>(.*)<day d="2" t="(.*)" dt="(.*)">(.*)<hi>(.*)</hi>(.*)<low>(.*)</low>(.*)<icon>(.*)</icon>(.*)<t>(.*)</t>(.*)<day d="3" t="(.*)" dt="(.*)">(.*)<hi>(.*)</hi>(.*)<low>(.*)</low>(.*)<icon>(.*)</icon>(.*)<t>(.*)</t>(.*)"
StringIndex=1
IfAboveValue=1
IfAboveAction=!execute [!RainmeterHideMeter MeterIconNA][!RainmeterShowMeter MeterIcon]
;Debug=1

;---------------------------

[MeasureWeatherTemp]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureWeatherRSS]
StringIndex=3

[MeasureWeatherDesc]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureWeatherRSS]
StringIndex=5

[MeasureWeatherIcon]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureWeatherRSS]
StringIndex=7

;---------------------------

[MeterTemp]
MeasureName=MeasureWeatherTemp
Meter=STRING
X=130
Y=102
FontColor=255,255,255,255
FontSize=25
FontFace=Segoe UI Light
StringAlign=CENTER
AntiAlias=1
Postfix="°C"



[MeterIconNA]
ImageName=na.png
Meter=IMAGE
X=30
Y=95


[MeterIcon]
MeasureName=MeasureWeatherIcon
Meter=IMAGE
X=25
Y=95
;Hidden=1
User avatar

Re: Weather not working?

October 26th, 2016, 12:12 pm
balala
Rainmeter Sage   [3743 posts]

picasso21 wrote:i'm bamboozled. how do I get it to work again? here's the code: thanks

Replace the URL option of the [MeasureWeatherRSS] measure, with the following one: URL=http://wxdata.weather.com/wxdata/weather/local/BKXX0005?cc=*&unit=m&dayf=4.
A few other things about your code:
  • The !execute bang and the !Rainmeter... prefix are deprecated. You should remove them.
  • Also replace the Plugin options of all WebParser measures, with Plugin=WebParser, which is enough.
  • The Name, Version and Author options was moved from the [Rainmeter] section, to the [Metadata]. You should also move them. Contact isn't and neither was a valid option. Remove it.
User avatar

Re: Weather not working?

October 26th, 2016, 5:53 pm
picasso21
   [10 posts]

thank you my friend :bow:

Return to “Help: Rainmeter Skins”



Who is online

Users browsing this forum: No registered users and 1 guest