JavaScript WDL version 1.0.0 alpha.

Hey, it’s still the same HTML file that has been available since the 29th of June, all the changes were on the server-side. :slight_smile:

Thanks for this. I have FreshWDL running. I also use the Saratoga template and have a page that has the WDL display. When I access the FreshWDL page directly is looks great http://weather.5-scotts.com/FreshWDLmaster.html. When I access the FreshWDL page through the saratoga template it does not ‘autoscale’. It looks like this:http://weather.5-scotts.com/FreshWDLSaratoga.png.

What do I need to do to have it ‘autoscale’ to the Saratoga template? Thanks for your help.


Hi,

Maybe you should try it with an iframe in a new page.

Piet

Something to try :slight_smile:

Use a simple webserver such as Mongoose to have JavaScript WDL on the local network. I have quickly tested this and it works for me. If your PC’s are behind a NAT router without port forwarding it should be relatively safe but try at your own risk, I have not spent more than a few minutes on this.

Copy the JavaScript WDL files into the same folder as the clientraw files.

Download the Mongoose Free Windows version executable into the same folder (you may have to move it there after download).

Click the Mongoose.exe to start it, you’ll get a windows popup, let it have access.

A browser window will open, direct it to localhost:8080/FreshWDLmaster.html - you should see JavaScript WDL working

On other PC’s on the network you should see JavaScript WDL at http://xxx.xxx.xxx.xxx:8080/FreshWDLmaster.html where xxx.xxx.xxx.xxx is the IP of the server PC. (Obviously that PC should be assigned a fixed IP for this to be a workable system.)

niko, Thanks for the suggestion but I’m on a Mac sooooo It’s doing fine going to the FTP server so no problems here.

I think OSX includes Apache web server…

I do not know how to do that? The HTML page is loaded with an ‘Include’ and I cannot put a iframe in that call. The FreshWDL.html is all script calls so I don’t know how to do iframe there?

I did this

Error: Embedded data could not be displayed.

And I am in no way a programmer.

Thanks that helped. I am able to scale it down. In the Saratoga templates there is a user selectable option for ‘wide’ or ‘narrow’ display. I was able to auto adjust for that like this:

<div id="main-copy">
  
	<h1><?php langtrans('Fresh Weather Display Live'); ?></h1>
<?php
	if($_SESSION['CSSwidescreen'] == 1) { ?>
		<object data="FreshWDLmaster.html" width="1200" height="600" background="white"> <embed src="FreshWDLmaster.html" background="white"> </embed> Error: Embedded data could not be displayed. </object>
<?php
	;} else { ?>
		<object data="FreshWDLmaster.html" width="650" height="375" background="white"> <embed src="FreshWDLmaster.html" background="white"> </embed> Error: Embedded data could not be displayed. </object>
<?php
	;} ?>
    
</div><!-- end main-copy -->

Thank you for the help.

Nice that it succeeded

Piet

That’s a nice implementation into the Saratoga template.

I put in my site. I’ve noticed that the text and numbers are not crisp on the left side of the page. Or perhaps it’s my eyes.

http://www.m82a1.us/wxWDL.php

All fixed. I fattened up the Saratoga Narrow page and the JavaScript WDL page.

Actually came up faster on Duckduckgo on my android phone 7.1.1 than it did with the latest version of firefox on Win10 on my laptop

I’ve placed it in an iframe in my Saratoga template: SE Lincoln, NE USA Weather Website - FreshWDL

A link to the full-browser version is included and the source is attached.


FreshWDL.txt (3.83 KB)

Thanks Jerry =D>

Working well!

Cheers

:smiley:

MikeyM

Hi Yerren

Not sure if its me or not, but today is the first day where we are getting nice warm temps and with the windchill and heat index gauge in auto mode, the heat index is not showing any different from the main temperature gauge. There is wind here which I would have thought that the heat index would show a diff temp to the main temp gauge ???

Cheers

what is your current temperature?
the more information you can provide the better

20.4 at the moment

http://www.fairfieldweather.info/wdl.html

heat index only comes into play above 26.7C
there are other things like humidex or apparent temperature which come into play at a lower temperature

Problem solved then.

Thank you.