cloudy cloudy

Author Topic: JavaScript WDL version 1.0.0 alpha.  (Read 20666 times)

0 Members and 1 Guest are viewing this topic.

Offline scottma61

  • Posts: 29
  • OS/Browser:
  • Win NT 10.0
  • Chrome 67.0.3396.99
Re: JavaScript WDL version 1.0.0 alpha.
« Reply #450 on: July 15, 2018, 02:36:08 AM »
I did this

<object data=your web site width="1200" height="600" background="white"> <embed src=your web site background="white"> </embed> Error: Embedded data could not be displayed. </object>


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:
Code: [Select]
<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.
WD 10.37S-(b72)
Davis Vantage Pro2 Plus (console firmware 3.15)
Davis WeatherLinkIP Datalogger (firmware 1.11)
Windows 10 Pro x64
http://weather.5-scotts.com

Offline giantocr

  • Posts: 80
  • OS/Browser:
  • Win NT 10.0
  • Chrome 67.0.3396.99
    • Weatherstation - MeteoSauwerd
Re: JavaScript WDL version 1.0.0 alpha.
« Reply #451 on: July 15, 2018, 07:38:48 AM »
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:
Code: [Select]
<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

Offline mldenison

  • Posts: 249
  • OS/Browser:
  • Win 7/Srvr 2008R2
  • Chrome 67.0.3396.99
    • York, Pennsylvania USA Weather
Re: JavaScript WDL version 1.0.0 alpha.
« Reply #452 on: July 15, 2018, 04:34:33 PM »
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

Offline mldenison

  • Posts: 249
  • OS/Browser:
  • Win 7/Srvr 2008R2
  • Chrome 67.0.3396.99
    • York, Pennsylvania USA Weather
Re: JavaScript WDL version 1.0.0 alpha.
« Reply #453 on: July 15, 2018, 09:38:17 PM »
All fixed. I fattened up the Saratoga Narrow page and the JavaScript WDL page.

Offline dsscheibe

  • Posts: 25
  • Phoenix, AZ
  • OS/Browser:
  • Win NT 10.0
  • Firefox 61.0
    • Scotts Weather Station, Cactus Wren, Phoenix, Arizona
Re: JavaScript WDL version 1.0.0 alpha.
« Reply #454 on: July 22, 2018, 10:27:01 PM »
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
Scott
Davis Pro2 Plus daytime aspirated, wired
Weather Display


Offline gwwilk

  • Posts: 652
  • Lincoln, NE
  • OS/Browser:
  • Win NT 10.0
  • Chrome 68.0.3440.106
    • Southeast Lincoln Weather
Re: JavaScript WDL version 1.0.0 alpha.
« Reply #455 on: August 28, 2018, 09:18:25 PM »
Hi,

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

Piet
I've placed it in an iframe in my Saratoga template: https://www.gwwilkins.org/FreshWDL.php

A link to the full-browser version is included and the source is attached.
Regards, Jerry Wilkins
gwwilk@inebraska.com

Offline mikeym

  • Posts: 1,259
  • Thornhurst, Pa USA
  • OS/Browser:
  • Win 7/Srvr 2008R2
  • Firefox 61.0
    • MikeyMs Thornhurst,PA Weather
Re: JavaScript WDL version 1.0.0 alpha.
« Reply #456 on: August 30, 2018, 03:37:58 AM »
Thanks Jerry  =D&gt;

Working well!

Cheers

 :D

MikeyM
http://mikeymsweather.com/

Another VERY Happy WD user
Shuttle XS36v4 8 GB RAM
Davis Vantage Pro 2 wireless w/ Davis solar sensor
Laser Snow Depth Sensor LR4/Fluke 414D working in WD thanks to Brian

Offline huggy

  • Posts: 157
  • Dunedin New Zealand
  • OS/Browser:
  • Win NT 10.0
  • Chrome 68.0.3440.106
    • Fairfield Dunedin Weather Report
Re: JavaScript WDL version 1.0.0 alpha.
« Reply #457 on: September 12, 2018, 11:22:37 PM »
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

Online Weather Display

  • Posts: 84,923
  • Davis VP2
  • New Zealand
  • OS/Browser:
  • Win NT 10.0
  • Chrome 68.0.3440.106
    • Weather Display
Re: JavaScript WDL version 1.0.0 alpha.
« Reply #458 on: September 12, 2018, 11:23:53 PM »
what is your current temperature?
the more information you can provide the better

Offline huggy

  • Posts: 157
  • Dunedin New Zealand
  • OS/Browser:
  • Win NT 10.0
  • Chrome 68.0.3440.106
    • Fairfield Dunedin Weather Report
Re: JavaScript WDL version 1.0.0 alpha.
« Reply #459 on: September 12, 2018, 11:40:00 PM »

Online Weather Display

  • Posts: 84,923
  • Davis VP2
  • New Zealand
  • OS/Browser:
  • Win NT 10.0
  • Chrome 68.0.3440.106
    • Weather Display
Re: JavaScript WDL version 1.0.0 alpha.
« Reply #460 on: September 13, 2018, 12:44:19 AM »
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

Offline huggy

  • Posts: 157
  • Dunedin New Zealand
  • OS/Browser:
  • Win NT 10.0
  • Chrome 68.0.3440.106
    • Fairfield Dunedin Weather Report
Re: JavaScript WDL version 1.0.0 alpha.
« Reply #461 on: September 13, 2018, 12:50:04 AM »
Problem solved then.

Thank you.