Page 1 of 1

Your "own" weather forecast with graphics

Posted: Sun 28 Aug 2011 12:50 am
by smurfen
Hi!
I am new on this forum, because i baught my first real weatherstation a week ago.

I have already made my own webpages to display the data from the weatherstation (Ambient).
I think Cumulus is a functional software for this (Running 1.9.1), but i think the web pages with graphics could be a bit nicer ;)
I wanted to display the forecast with graphics, and not only text.
After i twisted my brain for some minutes, i came up with a idea that was pretty easy to test.
And i works as a charm :D

Pretty easy, here is what i did:

The file strings.ini, contains the different forecasts with a corresponding number.
The number for the forecasts has a own tag thats called <#forecastnumber>.
Then i found i nice icon-set/graphics on the net, that covers the most conditions.
And i compared the text in the different forecastnumbers, and found a icon that match the text and renamed the file to the corresponding forecastnumber.
Eg. 1.png, 2.png and so on up to 26, then i copied the images to the webdirectory\images\forecast <-(created this folder).
In the web-page i created i pointed the image src to \images\forecast\<#forecastnumber>.png :D

Pretty easy, and no modification on the original files/scripts in cumulus is needed!

Re: Your "own" weather forecast with graphics

Posted: Sun 28 Aug 2011 12:04 pm
by beteljuice
Nicely thought out ...

... but there are two options you've missed (exceptionally fine [-1] and exceptionally bad [-26])

See: https://cumulus.hosiene.co.uk/viewtopic.p ... t=forecast