cloudy cloudy

Author Topic: WeatherMap Live v2.04 released  (Read 11523 times)

0 Members and 1 Guest are viewing this topic.

Offline administrator

  • Administrator
  • Posts: 10,874
  • Get answers to your questions - use Forum SEARCH!
  • Blackpool, UK
  • OS/Browser:
  • Win 7/Srvr 2008R2
  • MS IE 7.0
    • Weather-Watch.com
WeatherMap Live v2.04 released
« on: June 10, 2012, 03:13:17 PM »
WML v2.04 has been released to fix a number of bugs identified in the last couple of days. You can download the new verison here...

http://www.weather-display.com/files.php

If you're upgrading from v2.02 or v2.03 to v2.04 you just need to...

1) Upload the wmlv2_04.swf file to your web site.
2) Modify your HTML to set versionOfWml to the new SWF file name, e.g.

var versionOfWml = "wmlv2_04.swf";
Chris
Weather Forum Administrator

Offline ed2kayak

  • CoCoRaHS PA-CD-6, Weather Underground KPAMECHA7, CWOP DW5425
  • Posts: 458
  • Mechanicsburg PA
  • OS/Browser:
  • Win 7/Srvr 2008R2
  • Firefox 12.0
    • Cumberland Valley Weather
Re: WeatherMap Live v2.04 released
« Reply #1 on: June 10, 2012, 06:36:54 PM »
Thanks Chris working here:
http://cvweather.org/wxmesomap.php
Ed
CoCoRaHS PA-CD-6,  Weather Underground KPAMECHA7, CWOP DW5425

Offline Devil

  • Posts: 1,511
  • Cyprus 3325'E 3455'N 300 m up
  • OS/Browser:
  • Win XP
  • Firefox 14.0
    • Mosfiloti weather services
Re: WeatherMap Live v2.04 released
« Reply #2 on: June 11, 2012, 12:41:28 PM »
Chris

I must be dumb! (Comment not required)

I've done what I thought was necessary but it stays obstinately on v. 1_04 at
http://weather.cypenv.eu/map/maps.html

Right, this what I did:
I uploaded wmlv2_04.swf
I opened index.html and changed var versionOfWml = "wmlv1_04.swf"; to var versionOfWml = "wmlv2_04.swf";

It stayed on 1_04. so I added the new .js file: no difference
To confirm, I changed the 1_04 extension and it did not load, proving it is on 1_04
Changed it back.

Tried a few other desperate measures including renaming index.html and uploading the unzipped one: did not load.

I was hoping not to have to update the zipped index.html as mine is quite large and to have to work out what to transfer and where would be quite time-consuming, which is why I chose to modify just the line var versionOfWml = "wmlv1_04.swf";

Have you any idea of my boo-boo?
« Last Edit: June 11, 2012, 01:26:23 PM by Devil »
Devil

Offline broadstairs

  • Stuart
  • Posts: 7,034
  • Broadstairs, Kent, UK
  • OS/Browser:
  • (Linux Mint)
  • Firefox 13.0
    • Broadstairs
Re: WeatherMap Live v2.04 released
« Reply #3 on: June 11, 2012, 02:20:03 PM »
Devil a couple of questions. Do you have WML and WDL in the same directory? You talk about the index page but your maps display at a maps page which BTW gives me a please update your Flash Player message!

If you are using the same directory that may be the problem as the V2 WML uses a different swfobject.js from WDL they do not and will not co-exist. I have now separated mine into different directories. Once you refer to the latest swfobject.js for WML and the 2_04 swf file it should work with your current config file.

Stuart

BTW I get the same Flash message if I try index.html! This is a symptom of not using the latest swfobject.js if I remember correctly.
« Last Edit: June 11, 2012, 02:23:29 PM by broadstairs »

Offline Devil

  • Posts: 1,511
  • Cyprus 3325'E 3455'N 300 m up
  • OS/Browser:
  • Win XP
  • Firefox 14.0
    • Mosfiloti weather services
Re: WeatherMap Live v2.04 released
« Reply #4 on: June 11, 2012, 04:58:47 PM »
Thanks, Stuart.

The two features have always been in separate directories.

You are quite right; maps.html is a customised version of index.html. I had forgotten that. I corrected the var versionOfWml = "wmlv1_04.swf"; line in it to 2_04 but it still played the 1_04. I'll have another play with it tomorrow.
Devil

Offline JaxWeather

  • Bob
  • Global Moderator
  • Posts: 12,020
  • VP 2 w/FARS - WML Station: WD00007
  • Jacksonville, Fl. USA
  • OS/Browser:
  • Win 7/Srvr 2008R2
  • Firefox 14.0
    • JaxWeather.net
Re: WeatherMap Live v2.04 released
« Reply #5 on: June 11, 2012, 05:02:54 PM »
Devil,

How about changing the index file name from the New WML download to something like index1.html and then uploading that (after changing the domain to your own) and see if that works as is?

-Bob

Offline broadstairs

  • Stuart
  • Posts: 7,034
  • Broadstairs, Kent, UK
  • OS/Browser:
  • (Linux Mint)
  • Firefox 13.0
    • Broadstairs
Re: WeatherMap Live v2.04 released
« Reply #6 on: June 11, 2012, 05:49:08 PM »
Thanks, Stuart.

The two features have always been in separate directories.

You are quite right; maps.html is a customised version of index.html. I had forgotten that. I corrected the var versionOfWml = "wmlv1_04.swf"; line in it to 2_04 but it still played the 1_04. I'll have another play with it tomorrow.

I am pretty sure that the symptom I get about installing the latest Flash code is where you have the WDL version of swfobject.js instead of the WML version. As Bob suggests try the package version of the index.html file (call it anything you like, and edit the references to loading the config file) and then upload it and overwrite the current swfobject.js  in the directory with a new copy from the package and see what happens.

Stuart

Offline niko

  • syzygy
  • Global Moderator
  • Posts: 27,986
  • Crystal Ball broken! Please post the URL.
  • Northern California, U.S.A.
  • OS/Browser:
  • Win 7/Srvr 2008R2
  • MS IE 9.0
Re: WeatherMap Live v2.04 released
« Reply #7 on: June 11, 2012, 06:44:02 PM »
http://weather.cypenv.eu/map/maps.html and http://weather.cypenv.eu/map/

Don't work for me either (need to install etc.)


The version of swfobject in /map is the correct one though:

/*   SWFObject v2.2 <http://code.google.com/p/swfobject/>

and wmlv2_04.swf appears to be functional.

I also suggest uploading the standard .html code as a first step to resolve this  :?

Offline administrator

  • Administrator
  • Posts: 10,874
  • Get answers to your questions - use Forum SEARCH!
  • Blackpool, UK
  • OS/Browser:
  • Win 7/Srvr 2008R2
  • MS IE 7.0
    • Weather-Watch.com
Re: WeatherMap Live v2.04 released
« Reply #8 on: June 11, 2012, 06:47:18 PM »
One other thing to watch is caching. I've had problems with that on occasions when I've updated the SWF and the old version still loads. Try clearing your browser cache to see if that helps.

However, the fact that others see the same thing suggests that there's another problem.
Chris
Weather Forum Administrator

Offline niko

  • syzygy
  • Global Moderator
  • Posts: 27,986
  • Crystal Ball broken! Please post the URL.
  • Northern California, U.S.A.
  • OS/Browser:
  • Win 7/Srvr 2008R2
  • MS IE 9.0
Re: WeatherMap Live v2.04 released
« Reply #9 on: June 11, 2012, 06:52:03 PM »
I suspect caching is the only reason it works for devil and with the old swf  :wink:

Offline administrator

  • Administrator
  • Posts: 10,874
  • Get answers to your questions - use Forum SEARCH!
  • Blackpool, UK
  • OS/Browser:
  • Win 7/Srvr 2008R2
  • MS IE 7.0
    • Weather-Watch.com
Re: WeatherMap Live v2.04 released
« Reply #10 on: June 11, 2012, 07:00:09 PM »
If you're using the new swfobject.js file then you can't use the old format of HTML/JS. If you compare the code you'll see there are significant differences in the way that 'swfobject' is used.

I thought I'd tried WML2 with the old format of HTML and that it worked, but I'm not sure now!
Chris
Weather Forum Administrator

Offline administrator

  • Administrator
  • Posts: 10,874
  • Get answers to your questions - use Forum SEARCH!
  • Blackpool, UK
  • OS/Browser:
  • Win 7/Srvr 2008R2
  • MS IE 7.0
    • Weather-Watch.com
Re: WeatherMap Live v2.04 released
« Reply #11 on: June 11, 2012, 07:17:10 PM »
Having dug into this a little more, there have been three different ways that WML/MML have been embedded into web pages.

1) Using the latest swfobject.js (WML v2)
2) Using an older version of swfobject.js
3) Using HTML/Embedded Object without swfobject.js

(1) obviously works and the other version I tested was (3). I don't have any examples that used the old swfobject so I haven't confirmed that (2) works, but the suggestion is that it doesn't.
Chris
Weather Forum Administrator

Offline administrator

  • Administrator
  • Posts: 10,874
  • Get answers to your questions - use Forum SEARCH!
  • Blackpool, UK
  • OS/Browser:
  • Win 7/Srvr 2008R2
  • MS IE 7.0
    • Weather-Watch.com
Re: WeatherMap Live v2.04 released
« Reply #12 on: June 11, 2012, 07:34:12 PM »
OK...I think I have a solution...

1) The main <script> block is directly replaceable so copy from the index.html and paste it over the equivalent script in your page.

2) Change the id for the 'Flash Player needed' <div> from 'flashcontent' to 'wmlswf'

3) Use the new swfobject.js

I think that's all the changes you should need to do.
Chris
Weather Forum Administrator

Offline Devil

  • Posts: 1,511
  • Cyprus 3325'E 3455'N 300 m up
  • OS/Browser:
  • Win XP
  • Firefox 14.0
    • Mosfiloti weather services
Re: WeatherMap Live v2.04 released
« Reply #13 on: June 12, 2012, 03:04:09 PM »
Chris

Polish your halo, you're a genius.

Thanks, it's working now, but it didn't like 100% for the width and height so had to stay with your default 800 and 600. However, it doesn't fill the space available, with white bands left and right. I've tried fiddling the pixels, but that doesn't work as I would have expected.

The user variables have now moved from the body to the head.

My code is now a bit higgledy-piggledy with loads of lines which are blanked out/commented. I'll tidy it up as soon as I have a moment.

Thanks again!
Devil

Offline broadstairs

  • Stuart
  • Posts: 7,034
  • Broadstairs, Kent, UK
  • OS/Browser:
  • (Linux Mint)
  • Firefox 13.0
    • Broadstairs
Re: WeatherMap Live v2.04 released
« Reply #14 on: June 12, 2012, 03:34:45 PM »
Devil try 99% as there is a problem with some browsers using 100%. Mine works with 99% width and 600 height. As to the white bars set the var backgroundColourOfWml = "#ffffff"; to the same hex value as the page background, that's what I do with mine to get a constant background colour.

Stuart

 

cumulus