Posted by member 302889 on 2006-02-19 14:08:05
Hi all,
in the Obsidian theme it has a nice weather function which takes an RSS feed from the yahoo weather site and shows info at the bottom of the taskbar for you to view.
the temp is in °F though and i want to show it in °C.
In the skinbase.rc file my RSS output is as follows...
RSSOutputString "{%1} - Temp is Currently {%3}°F --->> Forecast shows {%4}/{%5}°F with {%6}
...and the three temp values are shown by the pieces of code which are {%3} {%4} and {%5} which is info direct from the RSS feed.
i have written another line which looks like this...
DegreesC3 "${%3}-32*1.8$"
...but i'm not sure if that will work and when i try to replace the {%3} from the RSSOutputString with {DegreesC3} the output in my taskbar just shows the following...
Edinburgh, UK at 6:00pm GMT - Temp is Currently {DegreesC3}°F --->> Forecast shows blah blah
...instead of...
Edinburgh, UK at 6:00pm GMT - Temp is Currently 5°F --->> Forecast shows blah blah
Can anyone tell me how to go about writing some code which will convert the temp from fahrenheit to celsius?
i thought that the line of cod i wrote which does the conversion would store the value in a variable called 'DegreesC3' and i'd be able to insert that variable in the RSS output as a value but i'm not too clued up on litestep to be able to do this properly.
cheers
in the Obsidian theme it has a nice weather function which takes an RSS feed from the yahoo weather site and shows info at the bottom of the taskbar for you to view.
the temp is in °F though and i want to show it in °C.
In the skinbase.rc file my RSS output is as follows...
RSSOutputString "{%1} - Temp is Currently {%3}°F --->> Forecast shows {%4}/{%5}°F with {%6}
...and the three temp values are shown by the pieces of code which are {%3} {%4} and {%5} which is info direct from the RSS feed.
i have written another line which looks like this...
DegreesC3 "${%3}-32*1.8$"
...but i'm not sure if that will work and when i try to replace the {%3} from the RSSOutputString with {DegreesC3} the output in my taskbar just shows the following...
Edinburgh, UK at 6:00pm GMT - Temp is Currently {DegreesC3}°F --->> Forecast shows blah blah
...instead of...
Edinburgh, UK at 6:00pm GMT - Temp is Currently 5°F --->> Forecast shows blah blah
Can anyone tell me how to go about writing some code which will convert the temp from fahrenheit to celsius?
i thought that the line of cod i wrote which does the conversion would store the value in a variable called 'DegreesC3' and i'd be able to insert that variable in the RSS output as a value but i'm not too clued up on litestep to be able to do this properly.
cheers