Author Topic: Forecast Image and Time Stamp  (Read 4990 times)

Offline avoorpool

  • Sr. Member
  • ****
  • Posts: 372
    • http://pickeringweather.ca
Forecast Image and Time Stamp
« on: July 22, 2012, 02:30:12 AM »
HI Jacques,

When I started my "web-experience" I was quickly impressed with your templates. I downloaded what I saw and it happened to be "Sunny Weather". It looked different than what I saw on the Meteo site, so a second look opened my eyes to Weather Blues, and as you know I very much like to work with that!!
In Sunny Weather there was a nice header image, showing Day & Night......
I always find it a bit odd in Weather Blues when I look at the Forecast image and it shows a bright SUN while it is pitch dark outside (see attachment).
Question:
Is there a way to link the Forecast Image with the actual Time Stamp (although I know it's a 12 hour forecast, but days are already shortening...)
I the Meteo Directory I could only find 1 "Moon" image, and that's only with rain....
It would be nice to see at 11:00pm a clear moon image, while it changes to a Sunny image when daylight appears, so the shown image could be linked to the actual situation (which we know on a daily basis for Sunrise & Sunset. Since the Cumulus forecast is updated hourly (at least that's what I selected) it might be an idea.
Is there anything I can set and/or link?
Are there more forecast images available??

Just a thought,

Cheers,

Arthur
« Last Edit: December 31, 1969, 06:00:00 PM by Guest »

Offline Mr.Meteo

  • Administrator
  • Hero Member
  • *****
  • Posts: 1120
    • http://www.meteostours.ca
Re: Forecast Image and Time Stamp
« Reply #1 on: July 22, 2012, 07:59:05 AM »
Hi Arthur,

I don't plan to do something for that in a short delay, since the forecast is controlled
by Cumulus. forecast (Zambretti, see:http://www.meteormetrics.com/zambretti.htm)
formula is for calculation of current time + 12h (next 12h possibly not the right sentence
to express that).

But, problem is that Cumulus take in account current variation of pressure too!
We know that when pressure drop fastly, bad weather is coming, then Cumulus
react fastly to drastic pressure changes. This cause the problem we never know
if Cumulus forecast is on a short delay or apply the next 12h.

But nothing couldn't be done in php, "IsDayLight" webtag give us night/day
hours, then it's just to add 17 new icons to replace all icons where sun appear
to replace it by moon and and merge "forecastnumber" with letter "n" for example
to form "12n.jpg" image call.

See that link to view forecast and number correspondance:
http://meteoduquebec.com/icones_grzanka.html
Presently only forecast 8 refer to night :"Fairly fine, showery later"

Regards,
Jacques
« Last Edit: December 31, 1969, 06:00:00 PM by Guest »
Please, consider supporting this site 

Offline avoorpool

  • Sr. Member
  • ****
  • Posts: 372
    • http://pickeringweather.ca
Re: Forecast Image and Time Stamp
« Reply #2 on: July 22, 2012, 12:18:27 PM »
Hi Jacques,

I'll keep it as is, until mid winter when day hours < night hours.. :D

Thanks,

Arthur
« Last Edit: December 31, 1969, 06:00:00 PM by Guest »

Offline krmidas

  • Full Member
  • ***
  • Posts: 91
    • The Tom Keramidas Climatological Experience
Re: Forecast Image and Time Stamp
« Reply #3 on: July 25, 2012, 12:12:00 PM »
[attachment=0:3asxw4fp]Capture.JPG[/attachment:3asxw4fp]

I'm a little confused about the relationship between the Davis forecast codes (I believe there are 200 of them) and how the determination is made about what image is shown in the "forecast" box. My assumption is that the text that is generated by the webtag <#forecast> is the written out forecast.  But the Davis forecast codes don't relate in any way that I can see to the 26 forecast icons you're using.

My station is not configured to have Cumulus provide the forecast (box is unchecked), so where is the data coming from to determine what forecast icons to show?

Here's what I'm getting at: I'd like to change the icons but first I need to see what data relates to what png file.

-Tom
« Last Edit: December 31, 1969, 06:00:00 PM by Guest »
Tom Keramidas, Lake Zurich, IL, USA

Offline Mr.Meteo

  • Administrator
  • Hero Member
  • *****
  • Posts: 1120
    • http://www.meteostours.ca
Re: Forecast Image and Time Stamp
« Reply #4 on: July 25, 2012, 01:10:40 PM »
Hi Tom,

Oh! This is really a problem, as Cumulus has the webtag <#forecast> and <#wsforecast>
for Cumulus or station forecast, but for forecast number, you have no webtag for
station specific nunbers. Are these number existing... on your station? I don't think
so as Steve at Cumulus have a Davis station.

There is a lot of Davis specific webtags for forecast, batteries, packet lost, and so on,
but I see nothing for that number (or could be a letter too). Then, you could check
with Steve on Cumulus forum.

The one I could think of, need to know ALL phrases and associate it with a number
to form an array, like this: 'icon number' => 'forecast text'

forecast = Array(
'1' => 'Fine',
'1' => 'just a bit les fine'
'2' => 'less fine'
...
and son on

Then it could be done, but 200 it's long!!

Jacques
« Last Edit: December 31, 1969, 06:00:00 PM by Guest »
Please, consider supporting this site 

Offline Mr.Meteo

  • Administrator
  • Hero Member
  • *****
  • Posts: 1120
    • http://www.meteostours.ca
Re: Forecast Image and Time Stamp
« Reply #5 on: August 09, 2012, 12:44:12 PM »
Hi,

I participated as tester on Betlejuice newest utility: PHP5+ light / dark forecast icon switcher
This utility will allow to define a delay to show your forecast icon upon surise/sunset.

This utility designed for new night and day icons set is configurable to show the right icon
some hours before sunrise and sunset depend on your taste.

You could see this utility on that Cumulus thread: http://sandaysoft.com/forum/viewtopic.php?f=14&t=8086

Your firendly weathermaster,
Jacques
Please, consider supporting this site