It is currently November 30th, 2022, 3:19 am

5day weather not working...

Get help with creating, editing & fixing problems with skins
User avatar
daenal
Posts: 7
Joined: October 23rd, 2016, 2:10 pm

Re: 5day weather not working...

Post by daenal »

Js, I understand that and I appreciate that part, but the insinuation that I changed it to what he said and it started working without giving him credit isn't. If that isn't what was meant, I apologize, but that is definitely how it came across.
“Whales are just obese sea dragons!”
User avatar
jsmorley
Developer
Posts: 22551
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: 5day weather not working...

Post by jsmorley »

daenal wrote:Js, I understand that and I appreciate that part, but the insinuation that I changed it to what he said and it started working without giving him credit isn't. If that isn't what was meant, I apologize, but that is definitely how it came across.
He can speak for himself, but I'm pretty sure what he is saying is the same result I get with that URL when I replace the #Variables# with valid values. It doesn't work...

If I replace your

http://wxdata.weather.com/wxdata/weather/5day/#WeatherCode#?cc=*&unit=#Units#&dayf=3

With values for my location:

http://wxdata.weather.com/wxdata/weather/5day/USVA0944?cc=*&unit=f&dayf=3

I get
{"class":"error",
"type":4000,
"cat":"commands",
"text":"The command 'Invalid command' is invalid"}
Returned from the site. We don't have the entirety of your skin, so who knows what magic is going on with it to make it work, but on the surface, with what we do know, it really can't... I think that is all he is saying.
User avatar
daenal
Posts: 7
Joined: October 23rd, 2016, 2:10 pm

Re: 5day weather not working...

Post by daenal »

Ah, now putting it that way, it sounds like confusion and not an accusation, so if that is the case. I apologize. Yes, there is that error when I put it in as well, but somehow with the alice-reworked code, it seems to work. Though, I am not sure why it doesn't work overnight. Here is the entire code if you wish to see it as i know the rudimentary aspects enough to follow it's basics, but not enough to know why things are REALLY working.

Code: Select all

[Rainmeter]
MiddleMouseUPAction=!Refresh

[Variables]
@Include=#@#Configs\DefaultVariables.inc
@Include2=#@#Configs\CommonStyles.inc
@Include3=#@#Configs\UserVariables.inc
WeatherIcons=#@#images\weather\wIcons\
5dayForecast=http://wxdata.weather.com/wxdata/weather/5day/#WeatherCode#
WindDirections="VAR":"S","N/A":"","CALM":"Calm","S":"South","N":"North","E":"East","W":"West","NorthNorthWest":"NNW","WestNorthWest":"WNW","WestSouthWest":"WSW","SouthSouthWest":"SSW","SouthSouthEast":"SSE","EastSouthEast":"ESE","EastNorthEast":"ENE","NorthNorthEast":"NNE","SouthEast":"SE","SouthWest":"SW","NorthEast":"NE","NorthWest":"NW"
UpdateWeather=3600
PanelWidth=304
RPX=178
RPY=15
FIconX=65
FX1=146
F1Y=16
F2Y=115
F3Y=218
IconSize=60
Yspace=16
TxtColor=a3a193
TxtColor2=cecbbb

[sText]
FontFace=Puritan
FontSize=9
FontColor=#TxtColor#
AntiAlias=1

;===  [  measures  ]  
[mGoGetWeather]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=http://wxdata.weather.com/wxdata/weather/local/#WeatherCode#?cc=*&unit=#Units#&dayf=3
 RegExp="(?siU).*<head>.*<ut>(.*)</ut>.*<us>(.*)</us>.*<loc id="(.*)">.*<dnam>(.*)</dnam>.*<tm>(.*)</tm>.*<tmp>(.*)</tmp>.*<flik>(.*)</flik>.*<t>(.*)</t>.*<icon>(.*)</icon>.*<bar>.*<r>(.*)</r>.*<d>(.*)</d>.*<wind>.*<s>(.*)</s>.*<d>(.*)</d>.*<t>(.*)</t>.*<hmid>(.*)</hmid>.*<uv>.*<i>(.*)</i>.*<t>(.*)</t>.*</uv>.*<dayf>.*<hi>(.*)</hi>.*<low>(.*)</low>.*<part.*=(.*)>.*<icon>(.*)</icon>.*<t>(.*)</t>.*<wind>.*<s>(.*)</s>.*<d>(.*)</d>.*<t>(.*)</t>.*<bt(.*)</bt>.*<ppcp>(.*)</ppcp>.*<hmid>(.*)</hmid>.*<part p.*=(.*)>.*<icon>(.*)</icon>.*<t>(.*)</t>.*<wind>.*<s>(.*)</s>.*<gust>(.*)</gust>.*<d>(.*)</d>.*<t>(.*)</t>.*<bt>(.*)</bt>.*<ppcp>(.*)</ppcp>.*<hmid>(.*)</hmid>.*<day d="1" t="(.*)" dt.*<hi>(.*)</hi>.*<low>(.*)</low>.*<part p="d">.*<icon>(.*)</icon>.*<t>(.*)</t>.*<wind>.*<s>(.*)</s>.*<t>(.*)</t>.*<ppcp>(.*)</ppcp>.*</day>.*<day d="2" t="(.*)" dt.*<hi>(.*)</hi>.*<low>(.*)</low>.*<part p="d">.*<icon>(.*)</icon>.*<t>(.*)</t>.*<s>(.*)</s>.*<t>(.*)</t>.*<ppcp>(.*)</ppcp>.*</day>"
 StringIndex=4
 FinishAction=[!ShowMeterGroup Now] [!EnableMeasure mLuaScript] 
 UpdateRate=#UpdateWeather#
 
 [mLuaScript]
Measure=Script
ScriptFile=Weather.lua
Disabled=1
 
;===  [  current measures  ] 
[mTempUnits]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[mGoGetWeather]
Substitute="C":"°C","F":"°F"
StringIndex=1
UpdateRate=#UpdateWeather#

[mWindSpeedUnits]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[mGoGetWeather]
StringIndex=2
UpdateRate=#UpdateWeather#

[mTempNow]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[mGoGetWeather]
StringIndex=6
UpdateRate=#UpdateWeather#

[mFeelsLike]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[mGoGetWeather]
StringIndex=7
UpdateRate=#UpdateWeather#

[mDescriptionNow]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[mGoGetWeather]
StringIndex=8
UpdateRate=#UpdateWeather#

[mIconCurrent]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[mGoGetWeather]
StringIndex=9
UpdateRate=#UpdateWeather#

[mPressureNow]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[mGoGetWeather]
StringIndex=10
UpdateRate=#UpdateWeather#

[mPressureChange]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[mGoGetWeather]
StringIndex=11
Substitute="N/A":"steady"
UpdateRate=#UpdateWeather#

[mWindSpeed]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[mGoGetWeather]
StringIndex=12
Substitute="N/A":"0","calm":"0"
UpdateRate=#UpdateWeather#

[mWindAngleNow] 
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[mGoGetWeather]
StringIndex=13
UpdateRate=#UpdateWeather#

[mWindDirection]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[mGoGetWeather]
StringIndex=14
Substitute=#WindDirections#
UpdateRate=#UpdateWeather#

[mHumidityNow]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[mGoGetWeather]
StringIndex=15
UpdateRate=#UpdateWeather#

[mCurrentUV]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[mGoGetWeather]
StringIndex=16
Substitute="N/A":"not"
UpdateRate=#UpdateWeather#

[mUVlevel]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[mGoGetWeather]
StringIndex=17
Substitute="N/A":"available"
UpdateRate=#UpdateWeather#

;===  [ Today / Tonight Forecast ]  
[mDayNightSwitcher]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[mGoGetWeather]
StringIndex=18
Substitute="N/A":"999"
UpdateRate=#UpdateWeather#
  
;===  [ Today Forecast ]  
[mHighToday]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[mGoGetWeather]
StringIndex=18
Substitute="N/A":""
UpdateRate=#UpdateWeather#

[mTodayIcon]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Path=#Icon#
Url=[mGoGetWeather]
StringIndex=21
UpdateRate=#UpdateWeather#

[mTodayDescription]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[mGoGetWeather]
StringIndex=22
Substitute="N/A":" "
UpdateRate=#UpdateWeather#

[mTodayRain]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[mGoGetWeather]
StringIndex=27
UpdateRate=#UpdateWeather#

[mDayWindDirection]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[mGoGetWeather]
StringIndex=25
Substitute=#WindDirections#
UpdateRate=#UpdateWeather#

[mTodayWindSpeed]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[mGoGetWeather]
StringIndex=23
Substitute="N/A":"0"
UpdateRate=#UpdateWeather#

;===  [ Tonight Forecast ]  
[mLowTonight]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[mGoGetWeather]
StringIndex=19
UpdateRate=#UpdateWeather#

[mTonightIcon]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[mGoGetWeather]
StringIndex=30
UpdateRate=#UpdateWeather#

[mTonightDescription]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[mGoGetWeather]
StringIndex=31
UpdateRate=#UpdateWeather#

[mTonightWindDirection]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[mGoGetWeather]
StringIndex=35
Substitute=#WindDirections#
UpdateRate=#UpdateWeather#

[mTonightRain]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[mGoGetWeather]
StringIndex=37
UpdateRate=#UpdateWeather#

[mTonightWindSpeed]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[mGoGetWeather]
StringIndex=32
Substitute="N/A":"0"
UpdateRate=#UpdateWeather#

;===  [ Tomorrow ]  

[mDayTomorrow]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[mGoGetWeather]
StringIndex=39
UpdateRate=#UpdateWeather#

[mHighTomorrow]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[mGoGetWeather]
StringIndex=40
UpdateRate=#UpdateWeather#

[mLowTomorrow]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[mGoGetWeather]
StringIndex=41
UpdateRate=#UpdateWeather#

[mTomorrowIcon]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[mGoGetWeather]
StringIndex=42
UpdateRate=#UpdateWeather#

[mDescriptionTomorrow]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[mGoGetWeather]
StringIndex=43
UpdateRate=#UpdateWeather#

[mWindSpeedTomorrow]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[mGoGetWeather]
StringIndex=44
UpdateRate=#UpdateWeather#

[mWindDirectionTomorrow] 
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[mGoGetWeather]
StringIndex=45
Substitute=#WindDirections#
UpdateRate=#UpdateWeather#

[mRainTomorrow]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[mGoGetWeather]
StringIndex=46
UpdateRate=#UpdateWeather#

;=== [ Day After Tomorrow ]

[mDayAfterTomorrow]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[mGoGetWeather]
StringIndex=47
UpdateRate=#UpdateWeather#

[mHighAfter]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[mGoGetWeather]
StringIndex=48
UpdateRate=#UpdateWeather#

[mLowAfter]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[mGoGetWeather]
StringIndex=49
UpdateRate=#UpdateWeather#

[mIconAfter]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[mGoGetWeather]
StringIndex=50
UpdateRate=#UpdateWeather#

[mAfterDescription]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[mGoGetWeather]
StringIndex=51
UpdateRate=#UpdateWeather#

[mAfterWindSpeed]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[mGoGetWeather]
StringIndex=52
UpdateRate=#UpdateWeather#

[mAfterWindDirection]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[mGoGetWeather]
StringIndex=53
Substitute=#WindDirections#
UpdateRate=#UpdateWeather#

[mAfterRain]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[mGoGetWeather]
StringIndex=54
UpdateRate=#UpdateWeather#

;=== [ meters ]	================================================
[MtBackground1]
Meter=IMAGE
ImageName=#@#images\weather\wb10.png
X=(#RPX#-10)
Y=(#RPY#-10)
UpdateDivider=-1

;=== [ Current Weather ]
[MtCurrentIcon]
Meter=IMAGE
Path=#WeatherIcons#
MeasureName=mIconCurrent
X=(#RPX#+66)
Y=(#RPY#+72)
H=(#IconSize#+4)
W=(#IconSize#+4)
ToolTipIcon=#@#Images\Weather\Wicons\TWC-L.ico
ToolTipType=1
ToolTipTitle=[mGoGetWeather]
ToolTipText="[mDescriptionNow]#CRLF#Temperature:  [mTempNow][mTempUnits] (feels like [mFeelsLike][mTempUnits])#CRLF#Humidity:   [mHumidityNow]%#CRLF#Wind: [mWindDirection] at [mWindSpeed] [mWindSpeedUnits]#CRLF#UV level: [mCurrentUV] [mUVlevel]"
LeftMouseUpAction=http://www.weather.com/weather/right-now/#WeatherCode#  
AntiAlias=1
DynamicVariables=1
Group=Now

[MtForecastIcon]
Meter=IMAGE
Path=#WeatherIcons#
MeasureName=mIconCurrent
ImageTint=ffffffaa
MouseOverAction=[!SetOption "#CURRENTSECTION#" ImageTint ffffff] [!UpdateMeter #CURRENTSECTION#] [!Redraw]
MouseLeaveAction=[!SetOption "#CURRENTSECTION#" ImageTint ffffffaa] [!UpdateMeter #CURRENTSECTION#] [!Redraw]
LeftMouseUpAction=[!ToggleMeterGroup #GroupToShow# ] [!ToggleMeterGroup Forecast] 
ToolTipType=1
ToolTipTitle="Forecast [mTodayDescription]"
ToolTipText = "Click for details..."
X=(#RPX#+251)
Y=(#RPY#+115)
H=44
W=44
DynamicVariables=1
Group=Now
Hidden=1

[cSetPressureNow]
Measure=CALC
Formula=mPressureNow
MinValue=942
MaxValue=1056

[MtBarometer]
Meter=ROTATOR
MeasureName=cSetPressureNow
ImageName=#@#images\weather\ptb.png
ToolTipIcon=#@#Icons\Barometer.ico
ToolTipType=1
ToolTipTitle=Barometer
ToolTipText="Pressure in mb"
X=(#RPX#+163)
Y=(#RPY#+172)
W=80
H=80
OffsetX=40
OffsetY=40
StartAngle=2.0943951
RotationAngle=5.23598776
Antialias=1
DynamicVariables=1
Group=Now
Hidden=1

[cSetDirectionNow]
Measure=CALC
Formula=mWindAngleNow
MinValue=0
MaxValue=360

[MtWindIndicator]
Meter=ROTATOR
MeasureName=cSetDirectionNow
ImageName=#@#images\weather\ptw.png
ToolTipIcon=#@#icons\wind.ico
ToolTipType=1
ToolTipTitle=Wind
ToolTipText="Huffing and puffing"
X=(#RPX#+163)
Y=(#RPY#+46)
W=80
H=80
OffsetX=40
OffsetY=40
DynamicVariables=1
Group=Now
Hidden=1

[MtTempNow]
Meter=STRING
MeasureName=mTempNow
MeasureName2=mTempUnits
StringAlign=CENTER
StringStyle=BOLD
FontFace=Calibri
FontSize=8
StringEffect=SHADOW
FontEffectColor=95939388
FontColor=2f1e0a
AntiAlias=1
W=30
H=18
X=(#RPX#+82)
Y=(#RPY#+228)
Text=%1%2
DynamicVariables=1
Group=Now
Hidden=1

[cDummy1]
Measure=CALC
Formula=0
UpdateDivider=-1

[MtFeelsPointer]
Meter=Rotator
MeasureName=cDummy1
X=(#RPX#+46)
Y=(#RPY#+177)
W=70
H=70
ImageName=#@#images\weather\ptf.png
OffsetX=35
OffsetY=35
StartAngle=4.08
RotationAngle=4.437
Antialias=1
DynamicVariables=1

[cDummy2]
Measure=CALC
Formula=1
UpdateDivider=-1

[MtTempPointer]
Meter=Rotator
MeasureName=cDummy2
X=(#RPX#+46)
Y=(#RPY#+177)
W=70
H=70
ImageName=#@#images\weather\ptt.png
OffsetX=35
OffsetY=35
StartAngle=4.08
RotationAngle=4.437
Antialias=1
DynamicVariables=1

[MtTempToolTip]
Meter=IMAGE
X=(#RPX#+58 )
Y=(#RPY#+188)
W=60
H=70
ToolTipIcon=#@#Icons\Thermometer.ico
ToolTipType=1
ToolTipTitle=Temperature
ToolTipText = "[mTempNow][mTempUnits] that feels like [mFeelsLike][mTempUnits]"
DynamicVariables=1
Group=Now
Hidden=1

;===  [ Forecasts ]  ============================================
[MtBackground2]
Meter=IMAGE
ImageName=#@#images\weather\wbf.png
UpdateDivider=-1
Group=Forecast
Hidden=1

[MtClick4Forecast]
Meter=IMAGE
X=10
Y=50
W=260
H=300
LeftMouseUpAction=#5dayForecast#
ToolTipText="Click for a five-day Forecast#CRLF#from the Weather Channel"
UpdateDivider=-1
Group=Forecast
Hidden=1

[MtTitle]
Meter=STRING
MeterStyle= sText
FontSize=10
FontColor=#TxtColor#
X=(#FIconX#+6)
Y=18
Text=3-Day Forecast
UpdateDivider=-1
Group=Forecast
Hidden=1

;===  [ Today / Tonight Forecasts ]  ==================================
[DayIcon]
Meter=IMAGE
Path=#WeatherIcons#
MeasureName=mTodayIcon
X=(#FIconX#+9)
Y=(#F1Y#+47)
H=#IconSize#
W=#IconSize#
AntiAlias=1
Group=Today
Hidden=1

[DayDescription]
Meter=STRING
MeasureName=mTodayDescription
MeterStyle= sText
FontSize=10
FontColor=#TxtColor2#
X=(#FIconX#-10)
Y=(#F1Y#+22)
W=192
H=18
ClipString=1
Text="Today - %1"
Group=Today
Hidden=1

[DayTempText]
Meter=STRING
MeasureName=mHighToday
MeasureName2=mTempUnits
MeterStyle= sText
X=#FX1#
Y=(#F1Y#+45)
Text="High: %1%2"
Group=Today
Hidden=1

[DayRain]
MeasureName=mTodayRain
Meter=STRING
MeterStyle= sText
X=(#FX1#+2)
Y=#Yspace#r
Text="Rain:  %1%"
Group=Today
Hidden=1

[DayWindDirection]
Meter=STRING
MeasureName=mDayWindDirection
MeterStyle= sText
X=(#FX1#+4)
Y=#Yspace#r
Text="Wind:  %1"
Group=Today
Hidden=1

[DayWindSpeed]
Meter=STRING
MeterStyle= sText
X=(#FX1#+6)
Y=#Yspace#r
Text="......."
Group=Today
Hidden=1

;=== [ Forecast Tonight ]  ========================================
[NightIcon]
Path=#WeatherIcons#
MeasureName=mTonightIcon
Meter=IMAGE
X=(#FIconX#+9)
Y=(#F1Y#+47)
H=#IconSize#
W=#IconSize#
AntiAlias=1
Group=Tonight
Hidden=1

[TonightDescription]
Meter=STRING
MeasureName=mTonightDescription
MeterStyle= sText
FontSize=10
FontColor=#TxtColor2#
X=(#FIconX#-10)
Y=(#F1Y#+22)
W=192
H=18
ClipString=1
Text="Tonight - %1"
Group=Tonight
Hidden=1

[NightTempText]
Meter=STRING
MeasureName=mLowTonight
MeasureName2=mTempUnits
MeterStyle= sText
X=#FX1#
Y=(#F1Y#+45)
Text="Low: %1%2"
Group=Tonight
Hidden=1

[NightRain]
MeasureName=mTonightRain
Meter=STRING
MeterStyle= sText
X=(#FX1#+2)
Y=#Yspace#r
Text="Rain:  %1%"
Group=Tonight
Hidden=1

[NightWindDirection]
Meter=STRING
MeasureName = mTonightWindDirection
MeterStyle= sText
X=(#FX1#+4)
Y=#Yspace#r
Text="Wind:  %1"
Group=Tonight
Hidden=1

[NightWindSpeed]
Meter=STRING
MeterStyle= sText
X=(#FX1#+6)
Y=#Yspace#r
Text="Puffle Puff"
Group=Tonight
Hidden=1

;=== [ Tomorrow ] ===============================================
[TomorrowIcon]
Path=#WeatherIcons#
MeasureName=mTomorrowIcon
Meter=IMAGE
X=(#FIconX#+7)
Y=(#F2Y#+49)
H=#IconSize#
W=#IconSize#
AntiAlias=1
Group=Forecast
Hidden=1

[TomorrowDescription]
Meter=STRING
MeasureName=mDayTomorrow
MeasureName2=mDescriptionTomorrow
MeterStyle= sText
FontSize=10
FontColor=#TxtColor2#
X=(#FIconX#-18)
Y=(#F2Y#+22)
W=209
H=18
ClipString=1
Text="%1 - %2"
Group=Forecast
Hidden=1

[TomorrowTemp]
Meter=STRING
MeasureName=mHighTomorrow
MeasureName2=mLowTomorrow
MeasureName3=mTempUnits
MeterStyle= sText
X=(#FX1#+8)
Y=(#F2Y#+45)
Text="Temp: %2-%1%3"
Group=Forecast
Hidden=1

[TomorrowRain]
MeasureName=mRainTomorrow
Meter=STRING
MeterStyle= sText
X=(#FX1#+10)
Y=#Yspace#r
Text="Rain:  %1%"
Group=Forecast
Hidden=1

[TomorrowWindDirection]
Meter=STRING
MeasureName=mWindDirectionTomorrow
MeterStyle= sText
X=(#FX1#+12)
Y=#Yspace#r
Text="Wind:  %1"
Group=Forecast
Hidden=1

[TomorrowWindSpeed]
Meter=STRING
MeterStyle= sText
X=(#FX1#+14)
Y=#Yspace#r
Text="I'll huff and I'll puff"
Group=Forecast
Hidden=1

;=== [ Day After Tomorrow ]
[AfterIcon]
Meter=IMAGE
Path=#WeatherIcons#
MeasureName=mIconAfter
X=(#FIconX#+5)
Y=(#F3Y#+47)
H=#IconSize#
W=#IconSize#
AntiAlias=1
Group=Forecast
Hidden=1

[AfterDescription]
Meter=STRING
MeasureName=mDayAfterTomorrow
MeasureName2=mAfterDescription
MeterStyle= sText
FontSize=10
FontColor=#TxtColor2#
W=221
H=18
ClipString=1
X=(#FIconX#-27)
Y=(#F3Y#+22)
Text="%1 - %2"
Group=Forecast
Hidden=1

[AfterTempText]
Meter=STRING
MeterStyle= sText
MeasureName=mHighAfter
MeasureName2=mLowAfter
MeasureName3=mTempUnits
X=(#FX1#+14)
Y=(#F3Y#+45)
Text="Temp: %2-%1%3"
Group=Forecast
Hidden=1

[AfterRain]
MeasureName=mAfterRain
Meter=STRING
MeterStyle= sText
X=(#FX1#+16)
Y=#Yspace#r
Text="Rain:  %1%"
Group=Forecast
Hidden=1

[AfterWindDirection]
Meter=STRING
MeasureName=mAfterWindDirection
MeterStyle= sText
X=(#FX1#+18)
Y=#Yspace#r
Text="Wind:  %1"
Group=Forecast
Hidden=1

[AfterWindSpeed]
Meter=STRING
MeterStyle= sText
X=(#FX1#+20)
Y=#Yspace#r
Text="Unknown speed"
Group=Forecast
Hidden=1
;------------
[MtCloseForecast]
Meter=IMAGE
X=(#PanelWidth#-70)
Y=(#F1Y#)
W=18
H=18
AntiAlias=1
LeftMouseUpAction=[!HideMeterGroup Today ] [!HideMeterGroup Tonight ] [!HideMeterGroup Forecast][!Redraw]
ToolTipText="Close  Forecast"
Group=Forecast
Hidden=1
UpdateDivider=-1

[Metadata]
Author=Mordasius
Name=Weather
Version= 17012013
License=Creative Commons BY-NC-SA 3.0
“Whales are just obese sea dragons!”
User avatar
balala
Rainmeter Sage
Posts: 14744
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: 5day weather not working...

Post by balala »

daenal wrote:Balala, Considering that 3 is still in the code as I didn't change it to 5 at all, it is working just as it was in the original code, but thanks for calling me a liar. Appreciate it. It appears that part of the code is intentional as it has a 3 day forecast function that when you click it allows you to see a 3 day forecast, but since the weather service doesn't have a three day forecast, it has to grab the 5day and only shows three. When I do change it to 5 as you suggest, the 3day forecast breaks, but again, thanks for basically calling me a liar.
I don't see where or when I called you liar. I didn't intend to call you so (sorry if my English is far away from being perfect), instead I wanted to say that maybe you changed the Url by mistake. Sometimes it happens, I think to all of us.
And I said that I doubt that Url would work, because I tried it and my skin didn't work. Then I pasted it into my browser and all I got, was a practically empty json file.
User avatar
balala
Rainmeter Sage
Posts: 14744
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: 5day weather not working...

Post by balala »

daenal wrote:Ah, now putting it that way, it sounds like confusion and not an accusation, so if that is the case. I apologize. Yes, there is that error when I put it in as well, but somehow with the alice-reworked code, it seems to work. Though, I am not sure why it doesn't work overnight. Here is the entire code if you wish to see it as i know the rudimentary aspects enough to follow it's basics, but not enough to know why things are REALLY working.
Your code uses a lot of unknown files (by us), like DefaultVariables.inc, CommonStyles.inc, UserVariables.inc or Weather.lua. Maybe it would be simpler to pack the whole config (folder within the Skins folder) and post it, to can check.
User avatar
daenal
Posts: 7
Joined: October 23rd, 2016, 2:10 pm

Re: 5day weather not working...

Post by daenal »

Balala, No worries at all. Like I said, I apologize for that confusion there. I take my integrity very serious and sometimes I can get defensive. Sorry about that.

Moving past that confusion. As I said, I am not a coder, so I just follow instructions well and I can see the basics and manipulate it. Here is the original file and it is currently working, but my son says that it stops working overnight and we don't know why.

I think the file is too large to add. Every time I try to upload it here it gives me an error saying "Failed to move uploaded file." So here is the link to the original .rmskin to grab everything directly.

http://mordasius.deviantart.com/art/Alice-Reworked-351421592

Hope this helps.
“Whales are just obese sea dragons!”
User avatar
balala
Rainmeter Sage
Posts: 14744
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: 5day weather not working...

Post by balala »

For me mordasius's skin is working, but I installed it just now, so I'll have to test it for a while to see if I'll have the same issue. Will come back later.
User avatar
balala
Rainmeter Sage
Posts: 14744
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: 5day weather not working...

Post by balala »

Now there's almost one day since I installed the Alice-Reworked suite. I replaced the Url option of the [MeasureAll] measure with Url=http://wxdata.weather.com/wxdata/weather/local/#WeatherCode#?cc=*&unit=#Units#&dayf=4. Since then , the skin is working continuously.
I also add the following measures and meters:

Code: Select all

[MeasureTime]
Measure=Time
Format=locale-time
UpdateDivider=-1
Group=Time

[MeasureDate]
Measure=Time
Format=locale-date
UpdateDivider=-1
Group=Time

[MeterUpdate]
MeasureName=MeasureTime
MeasureName2=MeasureDate
Meter=STRING
X=3
Y=3
Padding=15,5,15,5
FontColor=220,220,220
SolidColor=0,0,0,150
StringEffect=Shadow
FontSize=8
FontFace=Segoe UI
StringStyle=BOLD
StringAlign=LEFT
AntiAlias=1
Text=%1#CRLF#%2
and the [!UpdateMeasureGroup "Time"] bang to the FinishAction option of the [MeasureAll] measure.
These newly added sections let me see when the skin was updated. It was many times, so, for me it's working well. I have no idea why sometimes it's not updated for you. I can't say more. Sorry...