It is currently May 6th, 2024, 2:37 pm

Before Dawn Bar: Weather code help

Get help with creating, editing & fixing problems with skins
BashRain
Posts: 2
Joined: February 6th, 2012, 5:43 pm

Before Dawn Bar: Weather code help

Post by BashRain »

Hello all

I've tried my best to solve this problem, which I suspect is pretty straightforward, myself but without any luck hence my post.

I am running the Before Dawn Bar after reading this lifehacker article.

I am trying to get the correct weather for my location to display along with relevant graphics/images for the type of weather - windy, snowy etc - pretty much as pictured in the above article but can't seem to figure out how to.

Below is the relevant weather code from my bar.ini file as well a picture of my current Before Dawn Bar.

Can anyone advise what edits I need to make to get the weather to display correctly?

Thank you in advance for your help.

Code: Select all

==Weather=====

[Variables]

WeatherCode=UKXX0135
City=Slough
Font=Helvetica LT UltraCompressed
Colour=0,0,0

;----------MEASURES----------

[MeasureWeatherRSS]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=http://weather.yahooapis.com/forecastrss?p=UKXX0135
RegExp=(?siU)<link.*>(.*)</link>.*city=\"(.*)\".*sunrise=\"(.*)\".*sunset=\"(.*)\".*<image>.*<url>(.*)</url>.*<title>.*:.*m .*(.*)</title>.*lat>(.*)<.*long>(.*)<.*yweather:condition.*text=\"(.*)\".*code=\"(.*)\".*temp=\"(.*)\".*yweather:forecast.*day=\"(.*)\".*high=\"(.*)\".*code=\"(.*)\".*yweather:forecast.*day=\"(.*)\".*high=\"(.*)\".*code=\"(.*)\".*
StringIndex=1

[MeasureTempFar]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureWeatherRSS]
StringIndex=11

[MeasureTemp]
Measure=Calc
Formula=(MeasureTempFar - 32) / 1.8

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

[MeterWeatherDesc]
MeasureName=MeasureWeatherDesc
Meter=String
x=1020
Y=30
FontColor=255,255,255
FontSize=16
FontFace=#Font#
AntiAlias=1

[MeterText]
Meter=String
Text="Systems : "
x=1020
Y=45r
FontColor=255,255,255
FontSize=15
FontFace=#Font#
AntiAlias=1

[MeterWeatherTemp]
MeasureName=MeasureTemp
Meter=String
x=135r
y=22
Postfix="°"
FontColor=255,255, 255
FontSize=48
FontFace=#Font#
AntiAlias=1
BashRain
Posts: 2
Joined: February 6th, 2012, 5:43 pm

Re: Before Dawn Bar: Weather code help

Post by BashRain »

Bump.

Anyone???
User avatar
jsmorley
Developer
Posts: 22631
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Before Dawn Bar: Weather code help

Post by jsmorley »

I'm not quite sure that the Lifehacker article (or the source explanation they used) is correct. That Before Dawn skin only includes the current temperature and text description, and does not have that "current + 2" day display with the icons and descriptions as far as I can tell. The .ini file has no image meters at all, nor are there any included image files for the weather conditions. I suspect that in fact that "desktop" is using some other skin for the weather, maybe in addition to the one that comes with Before Dawn, or maybe in place of it. You might want to contact the person who posted the original desktop with the Google+ link at the bottom of the article and see if you can find out what was used.