It is currently April 18th, 2024, 1:26 pm

MoxaBox Weather

Get help with creating, editing & fixing problems with skins
TheThing
Posts: 7
Joined: August 20th, 2010, 3:59 am

MoxaBox Weather

Post by TheThing »

I've got the theme and I've got my weather code. But I can't seem to get it to show my weather. I only get the degree signs and a question mark.

I do know that you only need to change the url at the top of the page only in the section where the weather code goes (specifically, change http://xoap.weather.com/weather/local/UKXX1289?cc=*&unit=m&dayf=6 to http://xoap.weather.com/weather/local/USPA1276?cc=*&unit=m&dayf=6), but nothing changes. It wouldn't even display the weather from the original location code.

Here's the code as I have it now.
;Weather Status & 3-Day Forecast (Sittingbourne, UK)

[Rainmeter]
Background=bg.png
Original Author=moxamax
Editby=Simieski

[Variables]
;Please replace your location code of Weather.com below, e.g: sittingbourne, UK is UKXX1289.
;You can check it here: http://aspnetresources.com/tools/locid.aspx
;And you may also delete "&unit=m" if you prefer the Fahrenheit Scale.
URL=http://xoap.weather.com/weather/local/USPA1276?cc=*&unit=m&dayf=6
Font=Calibri

;================================================================

[MeasureWeatherRSS]
Measure=Plugin
Plugin=Plugins\WebParser.dll
UpdateRate=3600
Url=#URL#
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
;-------------------------

;tomorrow's weather description, id=18
;tomorrow's day, id=9
;tomorrow's date, id=10, you can redefine the StringIndex value below with the id#
[MeasureWeatherDate1]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureWeatherRSS]
StringIndex=9

;tomorrow's Hi-temp, id=12
;tomorrow's Lo-temp, id=14, you can redefine the StringIndex value below with the id#
[MeasureWeatherTemp1]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureWeatherRSS]
StringIndex=12

;tomorrow's weather icon, id=16
[MeasureWeatherIcon1]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureWeatherRSS]
StringIndex=16
;-------------------------

;D+2, weather description, id=29
;D+2, day of week, id=20
;D+2, date, id=21
[MeasureWeatherDate2]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureWeatherRSS]
StringIndex=20

;D+2, Hi-temp, id=23
;D+2, Lo-temp, id=25
[MeasureWeatherTemp2]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureWeatherRSS]
StringIndex=23

;D+2, weather icon, id=27
[MeasureWeatherIcon2]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureWeatherRSS]
StringIndex=27

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

;D+3, weather description, id=40
;D+3, day of week, id=31
;D+3, date, id=32
[MeasureWeatherDate3]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureWeatherRSS]
StringIndex=31

;D+3, Hi-temp, id=34
;D+3, Lo-temp, id=36
[MeasureWeatherTemp3]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureWeatherRSS]
StringIndex=34

;D+3, weather icon, id=38
[MeasureWeatherIcon3]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureWeatherRSS]
StringIndex=38

;================================================================

[MeterTemp]
MeasureName=MeasureWeatherTemp
Meter=STRING
X=5
Y=3
FontColor=255,255,255,180
StringStyle=NORMAL
FontSize=10
StringAlign=LEFT
StringStyle=BOLD
FontFace=#Font#
Antialias=1
Postfix="°"

[MeterDesc]
MeasureName=MeasureWeatherDesc
Meter=STRING
X=51
Y=5
FontColor=255,255,255,130
FontSize=8
StringAlign=LEFT
StringStyle=BOLD
FontFace=#Font#
Antialias=1

[MeterIconNA]
ImageName=na.png
Meter=IMAGE
X=9
Y=0

[MeterIcon]
MeasureName=MeasureWeatherIcon
Meter=IMAGE
X=9
Y=0
Hidden=1
;------------------------- offset X: +40

[MeterTemp1]
MeasureName=MeasureWeatherTemp1
Meter=STRING
X=20
Y=33
FontColor=255,255,255,120
StringStyle=NORMAL
FontSize=10
StringAlign=LEFT
StringStyle=BOLD
FontFace=#Font#
Antialias=1
Postfix="°"

[MeterDate1]
MeasureName=MeasureWeatherDate1
Meter=STRING
X=20
Y=47
FontColor=255,255,255,120
FontSize=7
StringAlign=LEFT
StringStyle=BOLD
FontFace=#Font#
Antialias=1

[MeterIcon1]
MeasureName=MeasureWeatherIcon1
Meter=IMAGE
X=30
Y=20
;------------------------- offset X: +40

[MeterTemp2]
MeasureName=MeasureWeatherTemp2
Meter=STRING
X=80
Y=33
FontColor=255,255,255,120
StringStyle=NORMAL
FontSize=10
StringAlign=LEFT
StringStyle=BOLD
FontFace=#Font#
Antialias=1
Postfix="°"

[MeterDate2]
MeasureName=MeasureWeatherDate2
Meter=STRING
X=80
Y=47
FontColor=255,255,255,120
FontSize=7
StringAlign=LEFT
StringStyle=BOLD
FontFace=#Font#
Antialias=1

[MeterIcon2]
MeasureName=MeasureWeatherIcon2
Meter=IMAGE
X=90
Y=20
;------------------------- offset X: +40

[MeterTemp3]
MeasureName=MeasureWeatherTemp3
Meter=STRING
X=140
Y=33
FontColor=255,255,255,120
StringStyle=NORMAL
FontSize=10
StringAlign=LEFT
StringStyle=BOLD
FontFace=#Font#
Antialias=1
Postfix="°"

[MeterDate3]
MeasureName=MeasureWeatherDate3
Meter=STRING
X=140
Y=47
FontColor=255,255,255,120
FontSize=7
StringAlign=LEFT
StringStyle=BOLD
FontFace=#Font#
Antialias=1

[MeterIcon3]
MeasureName=MeasureWeatherIcon3
Meter=IMAGE
X=150
Y=20
User avatar
Alex2539
Rainmeter Sage
Posts: 642
Joined: July 19th, 2009, 5:59 am
Location: Montreal, QC, Canada

Re: MoxaBox Weather

Post by Alex2539 »

In the URL, change "xoap" to "xml".
ImageImageImageImage
TheThing
Posts: 7
Joined: August 20th, 2010, 3:59 am

Re: MoxaBox Weather

Post by TheThing »

Thanks, works perfectly now
Echer123
Posts: 3
Joined: October 5th, 2010, 12:21 am

Re: MoxaBox Weather

Post by Echer123 »

I'm not sure if necro'ing a dead thread is frowned upon, but I'm having the same problem as the OP.
;Weather Status & 3-Day Forecast (Sittingbourne, UK)

[Rainmeter]
Background=bg.png
Original Author=moxamax
Editby=Simieski

;Metadata added by RainBrowser
;http://rainmeter.net/cms/Rainmeter101-EditingSkins

[Metadata]
Name=
Config=
Description=
Instructions=
Version=
Tags=
License=
Variant=
Preview=

;End of added Metadata

[Variables]
;Please replace your location code of Weather.com below, e.g: sittingbourne, UK is UKXX1289.
;You can check it here: http://aspnetresources.com/tools/locid.aspx
;And you may also delete "&unit=m" if you prefer the Fahrenheit Scale.
URL=http://xml.weather.com/weather/today/USMD0337:1:US
Font=Calibri

;================================================================

[MeasureWeatherRSS]
Measure=Plugin
Plugin=Plugins\WebParser.dll
UpdateRate=3600
Url=#URL#
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
I tried following the advice in the follow up post, but I think I'm getting the Weather code from the wrong place.
User avatar
Alex2539
Rainmeter Sage
Posts: 642
Joined: July 19th, 2009, 5:59 am
Location: Montreal, QC, Canada

Re: MoxaBox Weather

Post by Alex2539 »

Reviving dead threads is kind of frowned upon here, but this isn't the worst case I've seen. In fact this time it actually made the problem you're having obvious. A wire got crossed somewhere and your URL is completely wrong. My advice before was to take the URL that was originally included in the skin and change the word "xoap" to "xml". Your URL is just... something else and you tacked on xml to the front of it. Use this URL:

Code: Select all

URL=http://xml.weather.com/weather/local/USMD0337?cc=*&unit=m&dayf=6
As for the weather code, if you live in (or close to) Reisterstown, Maryland, then you do in fact have the correct weather code.
ImageImageImageImage
Echer123
Posts: 3
Joined: October 5th, 2010, 12:21 am

Re: MoxaBox Weather

Post by Echer123 »

Alex2539 wrote:Reviving dead threads is kind of frowned upon here, but this isn't the worst case I've seen. In fact this time it actually made the problem you're having obvious. A wire got crossed somewhere and your URL is completely wrong. My advice before was to take the URL that was originally included in the skin and change the word "xoap" to "xml". Your URL is just... something else and you tacked on xml to the front of it. Use this URL:

Code: Select all

URL=http://xml.weather.com/weather/local/USMD0337?cc=*&unit=m&dayf=6
As for the weather code, if you live in (or close to) Reisterstown, Maryland, then you do in fact have the correct weather code.
Alright, thanks. I'll keep the necroing thing in mind.