cloudy cloudy

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

0 Members and 1 Guest are viewing this topic.

Offline Dale Reid

  • Posts: 155
  • Eau Claire, Wisconsin
  • OS/Browser:
  • Win 7/Srvr 2008R2
  • Firefox 52.0
Re: JavaScript WDL version 1.0.0 alpha.
« Reply #210 on: January 12, 2018, 03:08:53 PM »
I'm a late comer to this thread, which Don kindly indicated in another forum.

First, amazing to have this older style, but still very nicely designed, program emulated with much more secure and stable work.

I have read some of the comments and the intricacies to make this work are beyond my grasp, but hats off to Yerren for his work in getting this up to speed.

While I realize this is still in the very early stages, alpha I believe, perhaps I can comment on a couple things. I think Don has already mentioned that the 'heartbeat' pulse in the upper left has colors from grey to light green that are far from adequate contrast for us older folks.  Perhaps the green can be a really dark green, approaching the saturation seen with the Wind Speed green and purple. 

Secondly, I have used the config.js file to select US units for my display.  However, while the tick marks along the side of the daily rainfall are correct, the monthly and yearly marks are set at and stay in mm.  In addition, when one cycles the various options for temperature from C to F and back, the inscriptions along side the thermometer change nicely.  However the rain module only changes the area under each tube, and doesn't affect the inscriptions or scaling along the side of all three.

Perhaps these are areas already identified, and I apologize for bringing them up again.

But it is all in my enthusiasm to see my old friend "WDL" gaining a new lease on life through the efforts of Yerren to bring it to this level. 

Thank you.  Dale

Offline edje1205

  • edje
  • Posts: 1,953
  • Amsterdam Holland, the Netherlands
  • OS/Browser:
  • Win 7/Srvr 2008R2
  • Mozilla compatible
    • http://www.weersverwachtingen.eu
Re: JavaScript WDL version 1.0.0 alpha.
« Reply #211 on: January 12, 2018, 03:32:53 PM »
Yes, for the buttons you can do that in the InnerContent.js file.
I have already translated some labels and you can do that in the WidgetHandlers.min.js file. Not a nice way, but if you have a lot of time it is to do. In this file you have to look carefully where you can translate. The files can be downloaded from the Github of Yerren or look at the source code of my test page. You have to load the files on your own internet provider.

Goed werk PeeGee ! bedankt !! chapeau !

Got them from your test page works fine (out of the box for WDL html as well) thank you ! =D>
Ed
Woodenshoes,mills,hightech;but random weather
www.weersverwachtingen.eu
P4 2,2Ghz-2GB RAM-Win7-Broadb.connect


Offline mikeym

  • Posts: 1,244
  • Thornhurst, Pa USA
  • OS/Browser:
  • Win 7/Srvr 2008R2
  • Firefox 57.0
    • MikeyMs Thornhurst,PA Weather
Re: JavaScript WDL version 1.0.0 alpha.
« Reply #212 on: January 12, 2018, 03:35:59 PM »
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 niko

  • syzygy
  • Global Moderator
  • Posts: 27,145
  • Crystal Ball broken! Please post the URL.
  • Northern California, U.S.A.
  • OS/Browser:
  • Win 7/Srvr 2008R2
  • Chrome 63.0.3239.132
Re: JavaScript WDL version 1.0.0 alpha.
« Reply #213 on: January 12, 2018, 03:44:39 PM »
May not be the issue but I see a typo in "mph" in the config.js

        wind: "mnph",            //Options: "kmh" "mph" "kts" "ms" "mm" "inch"

Offline Gus

  • Posts: 621
  • Halethorpe, Maryland USA
  • OS/Browser:
  • Win NT 10.0
  • Chrome 63.0.3239.132
    • Halethorpe Weather-Watch
Re: JavaScript WDL version 1.0.0 alpha.
« Reply #214 on: January 12, 2018, 03:46:16 PM »
Open config.js and correct wind units...

   wind: "mnph",            //Options: "kmh" "mph" "kts" "ms" "mm" "inch"
to "mph"
It's show stopper.
Gus
Davis VP2+ & LabJack w/lightning counter, soil/grass temp
AMD AthlonIIx2 220, 4GB, Windows7 CW1550 KMDBALTI12

Offline mikeym

  • Posts: 1,244
  • Thornhurst, Pa USA
  • OS/Browser:
  • Win 7/Srvr 2008R2
  • Firefox 57.0
    • MikeyMs Thornhurst,PA Weather
Re: JavaScript WDL version 1.0.0 alpha.
« Reply #215 on: January 12, 2018, 03:55:31 PM »
THANKS!  =D>   \:D/  You guys are my heroes. That's what happens when you do stuff at 1 am in the morning and I even checked and double checked it.

Thanks again.

 :D

Cheers

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 Dale Reid

  • Posts: 155
  • Eau Claire, Wisconsin
  • OS/Browser:
  • Win 7/Srvr 2008R2
  • Firefox 52.0
Re: JavaScript WDL version 1.0.0 alpha.
« Reply #216 on: January 12, 2018, 04:16:29 PM »
Can someone who understands the way this stuff works let me know if having this running on my web server which I rent from GoDaddy, is consuming their computer time, or does it somehow get loaded onto the computer of the person viewing FreshWDL, and only receive the packets with the updated values to then display on the viewer's local computer?

If several folks are looking at the same time, are there as many instances of this code running at GoDaddy, and it's computer is painting a new visual at very pulse, heartbeat, or refresh (whatever the correct term is now)?

Just curious as to where the horsepower is coming from, and while most of the time even I won't be looking at the page, there may be times when I leave it up running constantly or if there is interesting weather going on several local folks may be viewing.  I just don't want to get a note from GoDaddy that I'm eating up more of their computer time than I get as part of my monthly fee.

Just curious.  Thanks.  Dale

Offline saratogaWX

  • Global Moderator
  • Posts: 5,752
  • Ken True
  • Saratoga, CA, USA 37:16:28N, 122:01:23W - Elev: 374ft.
  • OS/Browser:
  • Win NT 10.0
  • Firefox 57.0
    • Saratoga Weather
Re: JavaScript WDL version 1.0.0 alpha.
« Reply #217 on: January 12, 2018, 04:37:24 PM »
This is an all JavaScript app .. your webserver hosts the files containing the JavaScript (and the clientraw*.txt) files.

When the page is first loaded, the browser loads all the needed scripts from your website (and others), and after loaded, continues to supply the clientraw*.txt files as requested by the scripts.

The 'heavy lifting' CPU load is on the browser's system, not on your webserver.   The webserver will continue to respond to the clientraw*.txt file requests, but they have a negligible load on the webserver since they are plain-text files with no additional processing needed on the webserver (other than Apache offering the files to an http request).

Hope this helps...
Ken True
Saratoga Weather
CWOP: CW1792
WeatherUnderground: KCASARAT1
Free weather website PHP scripts and WD website AJAX templates

Offline mikeym

  • Posts: 1,244
  • Thornhurst, Pa USA
  • OS/Browser:
  • Win 7/Srvr 2008R2
  • Firefox 57.0
    • MikeyMs Thornhurst,PA Weather
Re: JavaScript WDL version 1.0.0 alpha.
« Reply #218 on: January 12, 2018, 06:19:12 PM »
Great program - thanks Yerren!   =D>

Any chance of getting "Snow Depth" and "Snowfall" ? Ya I know along with the other 10,000 requests you have. Hee Hee

Item 479, 480, 481 and 697 in the clientrawextra.txt file

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 Yerren

  • Posts: 111
  • I'm working on an JavaScript option for WDL!
  • New Zealand
  • OS/Browser:
  • Win NT 10.0
  • Firefox 57.0
    • The current JavaScript WDL build
Re: JavaScript WDL version 1.0.0 alpha.
« Reply #219 on: January 12, 2018, 10:53:07 PM »
I'm a late comer to this thread, which Don kindly indicated in another forum.

First, amazing to have this older style, but still very nicely designed, program emulated with much more secure and stable work.

I have read some of the comments and the intricacies to make this work are beyond my grasp, but hats off to Yerren for his work in getting this up to speed.

While I realize this is still in the very early stages, alpha I believe, perhaps I can comment on a couple things. I think Don has already mentioned that the 'heartbeat' pulse in the upper left has colors from grey to light green that are far from adequate contrast for us older folks.  Perhaps the green can be a really dark green, approaching the saturation seen with the Wind Speed green and purple. 

Secondly, I have used the config.js file to select US units for my display.  However, while the tick marks along the side of the daily rainfall are correct, the monthly and yearly marks are set at and stay in mm.  In addition, when one cycles the various options for temperature from C to F and back, the inscriptions along side the thermometer change nicely.  However the rain module only changes the area under each tube, and doesn't affect the inscriptions or scaling along the side of all three.

Perhaps these are areas already identified, and I apologize for bringing them up again.

But it is all in my enthusiasm to see my old friend "WDL" gaining a new lease on life through the efforts of Yerren to bring it to this level. 

Thank you.  Dale

Thank you for the kind words!

The issues you have brought up should mostly have been cleared up the next update which, if all goes according to plan, should be out sometime in the next few days. :)

Offline Yerren

  • Posts: 111
  • I'm working on an JavaScript option for WDL!
  • New Zealand
  • OS/Browser:
  • Win NT 10.0
  • Firefox 57.0
    • The current JavaScript WDL build
Re: JavaScript WDL version 1.0.0 alpha.
« Reply #220 on: January 12, 2018, 10:56:54 PM »
Great program - thanks Yerren!   =D>

Any chance of getting "Snow Depth" and "Snowfall" ? Ya I know along with the other 10,000 requests you have. Hee Hee

Item 479, 480, 481 and 697 in the clientrawextra.txt file

Cheers

 :D

MikeyM

Thank you, and glad to see you got the unit issue sorted out! (Thanks Niko and Gus :))

You're not the first person to request snow data, actually. It'll come, eventually... :wink:

Offline Yerren

  • Posts: 111
  • I'm working on an JavaScript option for WDL!
  • New Zealand
  • OS/Browser:
  • Win NT 10.0
  • Firefox 57.0
    • The current JavaScript WDL build
Re: JavaScript WDL version 1.0.0 alpha.
« Reply #221 on: January 12, 2018, 11:01:46 PM »
Can someone who understands the way this stuff works let me know if having this running on my web server which I rent from GoDaddy, is consuming their computer time, or does it somehow get loaded onto the computer of the person viewing FreshWDL, and only receive the packets with the updated values to then display on the viewer's local computer?

If several folks are looking at the same time, are there as many instances of this code running at GoDaddy, and it's computer is painting a new visual at very pulse, heartbeat, or refresh (whatever the correct term is now)?

Just curious as to where the horsepower is coming from, and while most of the time even I won't be looking at the page, there may be times when I leave it up running constantly or if there is interesting weather going on several local folks may be viewing.  I just don't want to get a note from GoDaddy that I'm eating up more of their computer time than I get as part of my monthly fee.

Just curious.  Thanks.  Dale

I think SaratogaWX explained it well, but just to summarise, the 'horsepower' comes from the user's computer. The load on GoDaddy is very minimal! :)

Offline Dale Reid

  • Posts: 155
  • Eau Claire, Wisconsin
  • OS/Browser:
  • Win 7/Srvr 2008R2
  • Firefox 52.0
Re: JavaScript WDL version 1.0.0 alpha.
« Reply #222 on: January 13, 2018, 02:40:38 PM »
Ken,
Thanks for the detailed reply how these function in the world of servers and programs like javasript.
Obviously from your templates you have an in-depth understanding.

What you say as you lead me through the process makes sense.  However I know from the past that assuming something works in a certain way can be far from the truth, so I appreciate the clarification.

Similarly there are other details that in the early stages of internet access may have made a difference, like packet size with header info and all, so even requesting 5 bytes of info caused a 1 kbyte packet to go out.

This sounds very efficient.  And it makes me realize how rapidly things move on. I used to scour my expensive little IBM PC hard drive for errant files that took up room.  Now when I run an antivirus scan I see that hundreds of thousands of files are scanned, making it impossible for us old farts to know what they are doing, and if they are vital.

I used to be in deep as possible with knowing all the tools, suites of programming tools and all, but that was another life and decades ago, so I leave it to you guys to bring us these marvelous tools to display weather (thanks to you, Yerren, Brian and Jachym) who bring me the ones I use the most. 

Again, thanks, and I await the next generations as they come by. 

Offline windgust

  • Posts: 316
  • Hooksett NH
  • OS/Browser:
  • Win 7/Srvr 2008R2
  • Chrome 63.0.3239.84
    • http://www.windgust.com/live1
Re: JavaScript WDL version 1.0.0 alpha.
« Reply #223 on: January 13, 2018, 03:16:53 PM »
One item I know see is the rain appears to be rounding up. In WDL or weather display I have .37 inches of rain in JavaWDL it is readin .4 inches. I am not sure but it might be rounding up. I am using inches .
and the latest weatherdisplay with windows 7

Windgust   (K1DED)

Offline W3DRM

  • Posts: 81
  • Minden, Nevada
  • OS/Browser:
  • Win NT 10.0
  • Chrome 63.0.3239.132
    • Minden, NV - Carson Valley Weather
Re: JavaScript WDL version 1.0.0 alpha.
« Reply #224 on: January 13, 2018, 09:57:39 PM »


Quote from: windgust on Today at 07:16:53 AM<blockquote>One item I know see is the rain appears to be rounding up. In WDL or weather display I have .37 inches of rain in JavaWDL it is readin .4 inches. I am not sure but it might be rounding up. I am using inches .
and the latest weatherdisplay with windows 7

Windgust   (K1DED)</blockquote>


It's rounding because because the rain data element is set for only one decimal point. Yerren is already aware of the issue so it's on his "TO DO" list of items.
Don - W3DRM - Minden, Nevada --- Davis Wireless VP2, WD 10.37s70, Win10 Pro
--- Logitech QuickCam Fusion webcam

 

cumulus