Author Topic: Graph Display in Weather Blues  (Read 15815 times)

Offline avoorpool

  • Sr. Member
  • ****
  • Posts: 372
    • http://pickeringweather.ca
Graph Display in Weather Blues
« on: July 22, 2012, 12:27:54 PM »
Hi Jacques,

SInce a few days I have an annoying problem with the display of graphs in Weather Blues.
It started with a delayed display in Cumulus, which caused me to look into the trends.htm file. Messed up the original with a wrond extension (trends.html) so the entire page did not display.
Steve gave me the correct hint, and the page displays normal again.
However, there now is an issue with the update of the graph images in Wather Blues (see attachments).
Before I start complaining with iPage (web server) I would like to know your expertise and technical knowledge WHAT issue could caus the problem. Inshort:
[trends.htm] upload to server: OK (every 10 mins)
[.png images] upload to server: OK (every 10 mins)
[Graphs] page display on server: OK (time stamp correct according 10 min upload)
Cumulus/View/Graphs display: OK (correct time stamp)
Graphs display in altonaweather.ca: NOT OK (time display is often 2 hours behind).

After numerous times F5 (refresh) the graphs finally display with a correct time stamp.

Any idea??
Incase it might have to do with the server (iPage) what could be the technical explanation I can use to explain to them??

Thanks,

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: Graph Display in Weather Blues
« Reply #1 on: July 22, 2012, 02:41:23 PM »
Hi Arthur,

Your problem seems to be a local cache problem.
In internet explorer, keys are:

F5 : Refresh display (screen refresh!)
CTRL-F5 : Refresh from server, even if timestamps are the same.

An other thing you can do, is pressing F12, to call devloppement tools,
there is a menu "cache" to desactivate it, to be more then sure!  ;)

Hope this help,

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: Graph Display in Weather Blues
« Reply #2 on: July 22, 2012, 03:17:22 PM »
Hi Jacques,

Thanks!!
I thought so, since all .png graph images are correctly uploaded to the server a wellas the [trends.htm] file.
Since I also had a Cumulus Graph problem (on the 12-hour x-axis, the graph started halfway) I asked Steve about this, and he mentioned that the 'standard' cumulus has the following line included:
<script type="text/javascript">function changeImage(im) { document.images["graphs"].src = im + "?" + new Date().getTime();}</script>

Is this something to add to the html file??

Also, I will give iPage a call, since I never had this problem with 000webhost.com....!!!

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: Graph Display in Weather Blues
« Reply #3 on: July 22, 2012, 03:29:43 PM »
Hi Arthur,

Quote from: "avoorpool"
<script type="text/javascript">function changeImage(im) { document.images["graphs"].src = im + "?" + new Date().getTime();}</script>

Is this something to add to the html file??
No! Since that apply to "Standard Cumulus" template, Weather Blues use instead
ad-gallery (jQuery) library to display it.

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: Graph Display in Weather Blues
« Reply #4 on: July 22, 2012, 04:21:26 PM »
Hi Jacques,

I followed your advice and used F12 which solved the problem (graphs displayed with correct time stamp.
However, not for long..........

Is this somethingI have to do, or can this be set automatically at the server side.
(I don't want visitors to see a graph from 9:00am displayed in the updated [graphs] page at 13:00pm....
(Haven't talked to iPage yet)

Thanks,

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: Graph Display in Weather Blues
« Reply #5 on: July 22, 2012, 04:50:32 PM »
Hi Arthur,

The problem??? You're allways on his back!! No time to refresh!! :lol:

But seriously, you've pointing an error, all page with "dynamic" data should have
mechanism to force refresh (a must in html!). Just add those meta:

<meta http-equiv="expires" content="Fri, 30 Dec 2011 12:00:00 GMT" />
By this, you let a date in the past, then it is always to refresh for browser

<meta http-equiv="Pragma" content="no-cache" />
Also that one talk to the cache directly

Regards,
Jacques

Ps. You're a good "tester", after more than 400 downloads no one has found that one!!  :D
« 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: Graph Display in Weather Blues
« Reply #6 on: July 22, 2012, 05:11:42 PM »
Hi Jacques,

Thanks for your reply:

<meta http-equiv="expires" content="Fri, 30 Dec 2011 12:00:00 GMT" />
By this, you let a date in the past, then it is always to refresh for browser

<meta http-equiv="Pragma" content="no-cache" />

Not to mess up  my page, which of the 2 "meta" do I install and where do I enter this??
Do I change the date till today??

I'm just off the phone with iPage, and their statement is that when you upload an image, the browser keeps that for future display even when there is a dynamic upload every 10 mins.....
I never have seen this problem with the previous (free) webhost (000webhost.com)
Hopefully this will solve the problem???

Thanks,

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: Graph Display in Weather Blues
« Reply #7 on: July 22, 2012, 05:32:50 PM »
Yes Arthur,

You install both lines, in the head section, where others are. You could place them
just after the meta charset=

I plan in the future to play with expire, as every and each part of a page have
en expire, but it's for low band users... I planned too to raise WAI level for blinds,
Now I'm at normal minimum compilance.

But, too much poeple are waiting for v2... I don't plan to complicate things...
and report launch!

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: Graph Display in Weather Blues
« Reply #8 on: July 23, 2012, 01:19:57 AM »
Hi Jacques,

Oops....
The "testers-test".........failed..!! :shock:
Installed both lines, and after 1 1/2 hours, the graphs were still at the same time stamp as before (even after I cleaned cache).
Did some google-ing and found the problem with same suggestion as yours. (slightly different <meta>)
http://www.v7n.com/forums/web-design-lo ... cally.html

tried both solutions, but problem not solved....
So questions remain:
- I don't see this in other Weather Blues sites, could this be an iPage issue (different structure), since I've never had this problem with 000webhost.com
- Do I have to enter either <meta> string in EACH html file (page), or just in the [trends]
- Is there another solution (maybe within html file) to solve this problem??

Thanks,

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