Author Topic: Alternative Dashboard version 6.95 Released  (Read 68268 times)

0 Members and 1 Guest are viewing this topic.

Offline BurnsvilleWeather

  • Burnsville, MN USA
  • Forecaster
  • *****
  • Posts: 856
  • Retired from Weather!
Alternative Dashboard version 6.95 Released
« on: October 26, 2013, 02:24:24 PM »
UPDATED 10-JAN-2016 - Alternative Dashboard Version 6.95 is now Released!

Version 6.95 Major Update:
  • Updated for Weather Display Version 10.37R Build 307 or later.  Use version 6.94 for Build 81 or lower
  • Don't forget to edit the PayPal code if you use that and do an update.

Version 6.94 Minor Update:
  • Added fix for new format forecast Icons (thanks to Ken True for the code)
  • Minor corrections for format issues in the previously unreleased version 6.93
  • Works with new version of my Mobile Dashboard Version 1.90 also released now
  • Don't forget to edit the PayPal code if you use that and do an update.

Version 6.92 Minor Update:
  • Added button to load Mobile version
  • Many minor changes from user input here
  • Works with new version of my Mobile Dashboard Version 1.90 also released now
  • PLEASE EDIT FOOTNOTE ABOUT NOT AFFILIATED WITH NWS, I MADE ADDITIONS THERE THAT WILL NOT FIT YOUR SITE!
Version 6.91 Minor Update:
  • Added support for lightning last strike date and time to update with ajax and display in desired date format
  • Removed negative signs from readings that already show a red down arrow in front of them.
Version 6.90 Update:
  • Added uniform date format option with language support (See instructions and config)
  • Added customizable rain graph in rain section.  You pick image in config file
  • Added more customizable options for Storm Prediction image and links on page
  • Multiple bug fixes and minor enhancements
  • Reformatted code to make it easier to follow
  • Additional display items in Dew Point and Humidity

Version 6.8x and 6.9x versions take note:
NOTE: REQUIRES SPECIAL ajaxWDwx.js VERSION & Change to Setting-weather.php
  • New special version of ajaxWDwx.js to avoid confusion with Ken's stock version
  • To use, you must modify settings-weather.php - change ajax filename (See Read-ME in archive)

I've included an extensive instruction manual with the archive that include images and examples as well as links to other images and code you can add to the alternative dashboard to enhance it more or customize it more.

TIP:  Make sure you have FULLY implemented Ken's VERSION 3 scripts or the ajax script will not use the correct version.  The Top, Header, Menu and Footer scripts specifically need to be on Version 3 of Ken's scripts!!

Thanks for everyone's patience in waiting for this update. Special thanks to my international beta testers that had to try so many versions of this code before I could finally make it work for all the many different languages and ways the dates are formatted.   I tried to get in as much as I could but may have missed some suggestions.  If so please email me again.

NOTE:  One known issue is with the last lightning strike date and time.  because of how its stored and updated through ajax, I was unable to make the date ajax update but unless you are right at midnight, that should make little difference.  Hopefully in the future I'll get that to work too but it will take a lot more work!

Scott
Burnsville Weather Live Scripts
Formally Webster Weather Live Scripts

You can download the latest versions of my scripts by going to my website and clicking on the Weather Scripts menu option or click here:
http://burnsvilleweatherlive.com/wxScripts.php
« Last Edit: January 10, 2016, 08:04:44 PM by BurnsvilleWeather »
www.BurnsvilleWeatherLIVE.com (Formally Webster Weather LIVE)
Home of the Alternative Dashboard and Mobile Dashboard Scripts. Weather Display Scripts and Graphics


Davis VP2 with, UV, Solar, Leaf, Web Cam.

Offline jonnyj771

  • Senior Contributor
  • ****
  • Posts: 219
    • Lightning Weather
Re: Alternative Dashboard version 6.90 Released
« Reply #1 on: October 26, 2013, 08:25:08 PM »
I am already working on my upgrade.
Have you thought about just calling it V7 instead of 6.90 since you are dropping support on all previous versions?
Facebook:
Lightning Weather
   www.facebook.com/lightningweather
                             /groups/lightningweather
Lightning Weather Quad Cities
                             /lightningwxqc
                             /groups/lightningWXQC
Weather Station Hardware: Davis Vantage Pro2 6152
Weather Station Software: WD - 10.37S Build XXX (Beta)
Page Template: MeteoTemplate v1x. (Current Active)

Offline BurnsvilleWeather

  • Burnsville, MN USA
  • Forecaster
  • *****
  • Posts: 856
  • Retired from Weather!
Re: Alternative Dashboard version 6.90 Released
« Reply #2 on: October 26, 2013, 09:58:56 PM »
I am already working on my upgrade.
Have you thought about just calling it V7 instead of 6.90 since you are dropping support on all previous versions?

LOL, well, I have some totally new plans for a totally different version 7 so that's why I left it at 6.90!  :shock:

Scott
www.BurnsvilleWeatherLIVE.com (Formally Webster Weather LIVE)
Home of the Alternative Dashboard and Mobile Dashboard Scripts. Weather Display Scripts and Graphics


Davis VP2 with, UV, Solar, Leaf, Web Cam.

Offline cospringswx

  • Forecaster
  • *****
  • Posts: 4062
    • Colorado Springs Weather
Re: Alternative Dashboard version 6.90 Released
« Reply #3 on: October 26, 2013, 10:17:40 PM »
Any date that we can have a sneak peak?




Ryan 

Colorado Springs, CO
www.cospringsweather.com
Davis Vantage Vue
Weather Display Software
Hikvision HD IP Camera

Offline BurnsvilleWeather

  • Burnsville, MN USA
  • Forecaster
  • *****
  • Posts: 856
  • Retired from Weather!
Re: Alternative Dashboard version 6.90 Released
« Reply #4 on: October 26, 2013, 10:35:30 PM »
Any date that we can have a sneak peak?

LOL, all there is are thoughts in my brain and you really don't want to get inside there!!  I'm thinking something wider, more images, graphs, etc, and ideally modular, so you put what ever module in you want rather then having to have all the code there even if you don't use it all.  Easier for people to write modules rather then a whole dashboard.

It will be my winter project if I stay healthy!

Scott
www.BurnsvilleWeatherLIVE.com (Formally Webster Weather LIVE)
Home of the Alternative Dashboard and Mobile Dashboard Scripts. Weather Display Scripts and Graphics


Davis VP2 with, UV, Solar, Leaf, Web Cam.

Offline cospringswx

  • Forecaster
  • *****
  • Posts: 4062
    • Colorado Springs Weather
Re: Alternative Dashboard version 6.90 Released
« Reply #5 on: October 26, 2013, 10:45:50 PM »
Any date that we can have a sneak peak?

LOL, all there is are thoughts in my brain and you really don't want to get inside there!!  I'm thinking something wider, more images, graphs, etc, and ideally modular, so you put what ever module in you want rather then having to have all the code there even if you don't use it all.  Easier for people to write modules rather then a whole dashboard.

It will be my winter project if I stay healthy!

Scott


Sounds nice Scott. I'm still using the version from 2009. LOL!! 




Ryan 

Colorado Springs, CO
www.cospringsweather.com
Davis Vantage Vue
Weather Display Software
Hikvision HD IP Camera

Offline jgillett

  • Forecaster
  • *****
  • Posts: 1155
  • unnamed weather station, Boltek, Win7 Pro, ToA
    • TiggrWeather Phoenix
Re: Alternative Dashboard version 6.90 Released
« Reply #6 on: October 27, 2013, 12:00:44 AM »
Upgraded with no problems and some messin' around of my own. Well done, Scott!
John
W7JKG
BUY FROM AMAZON  HERE... Thank You! :-)

Offline ed2kayak

  • Ed
  • Forecaster
  • *****
  • Posts: 574
  • Davis Vantage Pro2 w/12 hr FARS, solar/uv
    • Cumberland Valley Weather
Re: Alternative Dashboard version 6.90 Released
« Reply #7 on: October 27, 2013, 08:19:24 AM »
Scott,

Thanks for your continuing development, maintenance & support of the Alt Dash.

 =D>
Ed
CoCoRaHS PA-CD-6,  Weather Underground KPAMECHA7, CWOP DW5425

Offline BurnsvilleWeather

  • Burnsville, MN USA
  • Forecaster
  • *****
  • Posts: 856
  • Retired from Weather!
Re: Alternative Dashboard version 6.90 Released
« Reply #8 on: October 27, 2013, 11:47:16 AM »
There has been a slight change to the config file since it was released.  If you use a language other then english and what to be able to use the language translation to translate the footnotes, download the 6.90 archive again and replace the config file.  It has been updated to allow for those translations!

Thanks to Piet K for catching that and giving the suggestion! 

Scott
www.BurnsvilleWeatherLIVE.com (Formally Webster Weather LIVE)
Home of the Alternative Dashboard and Mobile Dashboard Scripts. Weather Display Scripts and Graphics


Davis VP2 with, UV, Solar, Leaf, Web Cam.

Offline i_fiorentino

  • Forecaster
  • *****
  • Posts: 556
  • Davis Vantage Vue, Boltek Stormtr., Mobotix M22-IT
    • Meteopistoia.it
Re: Alternative Dashboard version 6.90 Released
« Reply #9 on: October 27, 2013, 03:06:07 PM »
Thanks again Scott, very very nice job!  =D> =D>

One thing.
If i set this date function like this:
Code: [Select]
//  NEW in version 6.90  Set date format for Record Dates
$RecDateF      = '8';          // Set to desired date format for Record High/Low Dates
                               //   1 =  Dec-25-2013
                               //   2 =  25-Dec-2013
                               //   3 =  25/12/2013
                               //   4 =  12/25/2013
                               //   7 =  12-25-2013
                               //   8 =  25-12-2013

The date has the same us format "month-day-year" on dashboard:
http://www.meteocarmignano.it/ajax-dashboard6.php

Probably this function goes in conflict with another date funcion on dashboard settings:
Code: [Select]
$WDdateMDY = false;     // true=dates by WD are 'month/day/year'
//                     // false=dates by WD are 'day/month/year'

Any ideas?
Regards,


Alessandro
« Last Edit: October 27, 2013, 03:40:18 PM by i_fiorentino »

Offline BurnsvilleWeather

  • Burnsville, MN USA
  • Forecaster
  • *****
  • Posts: 856
  • Retired from Weather!
Re: Alternative Dashboard version 6.90 Released
« Reply #10 on: October 27, 2013, 03:24:24 PM »
Alessandro

That one puzzles me because the only place I care about that WD date format is when reading the value in testtags.php.  That tells me what format to expect the value to be in so I can pull out the right value for month day and year.  If the testtags.php is storing the date in the format expressed by that, it should translate into the correct date with dashes!  Can you send me your testtags.php and tell me which dates specifically are showing up wrong and I'll check to see if I can find out why.  You don't make any modifications to the main script do you?


Scott
www.BurnsvilleWeatherLIVE.com (Formally Webster Weather LIVE)
Home of the Alternative Dashboard and Mobile Dashboard Scripts. Weather Display Scripts and Graphics


Davis VP2 with, UV, Solar, Leaf, Web Cam.

Offline i_fiorentino

  • Forecaster
  • *****
  • Posts: 556
  • Davis Vantage Vue, Boltek Stormtr., Mobotix M22-IT
    • Meteopistoia.it
Re: Alternative Dashboard version 6.90 Released
« Reply #11 on: October 27, 2013, 03:46:48 PM »
Alessandro

That one puzzles me because the only place I care about that WD date format is when reading the value in testtags.php.  That tells me what format to expect the value to be in so I can pull out the right value for month day and year.  If the testtags.php is storing the date in the format expressed by that, it should translate into the correct date with dashes!  Can you send me your testtags.php and tell me which dates specifically are showing up wrong and I'll check to see if I can find out why.  You don't make any modifications to the main script do you?


Scott


Hi Scott,
no, i haven't done any modification on your script at the moment.
I've attached my testtags.txt file.

All dates on my dashboard shows this format: month/day/year but it should be: day/month/year.
Thanks in advance,

Alessandro
« Last Edit: October 27, 2013, 04:35:10 PM by i_fiorentino »

Offline BurnsvilleWeather

  • Burnsville, MN USA
  • Forecaster
  • *****
  • Posts: 856
  • Retired from Weather!
Re: Alternative Dashboard version 6.90 Released
« Reply #12 on: October 27, 2013, 04:15:58 PM »
Alessandro

I see what happened, I must have forgot to save my changes when I added that section.  Change the code on line # 2382 to read:

Code: [Select]
        case 7: // 12-25-2013
            $Fdate = ($Rmonth . "-" .  $Rday . "-" . $Ryear);
            break;
        case 8: // 25-12-2013
            $Fdate = ($Rday . "-" .  $Rmonth . "-" . $Ryear);
            break;

Or just re-download the archive, It is fixed in the archive now.  The script date will read 27-OCT-2013 if you have the latest change.
www.BurnsvilleWeatherLIVE.com (Formally Webster Weather LIVE)
Home of the Alternative Dashboard and Mobile Dashboard Scripts. Weather Display Scripts and Graphics


Davis VP2 with, UV, Solar, Leaf, Web Cam.

Offline i_fiorentino

  • Forecaster
  • *****
  • Posts: 556
  • Davis Vantage Vue, Boltek Stormtr., Mobotix M22-IT
    • Meteopistoia.it
Re: Alternative Dashboard version 6.90 Released
« Reply #13 on: October 27, 2013, 04:34:18 PM »
Alessandro

I see what happened, I must have forgot to save my changes when I added that section.  Change the code on line # 2382 to read:

Code: [Select]
       case 7: // 12-25-2013
            $Fdate = ($Rmonth . "-" .  $Rday . "-" . $Ryear);
            break;
        case 8: // 25-12-2013
            $Fdate = ($Rday . "-" .  $Rmonth . "-" . $Ryear);
            break;

Or just re-download the archive, It is fixed in the archive now.  The script date will read 27-OCT-2013 if you have the latest change.

Great Scott!
Fixed it: http://www.meteocarmignano.it/ajax-dashboard6.php  \:D/ \:D/ =D> =D>

Thanks for your time.
Regards,


Alessandro

Offline i_fiorentino

  • Forecaster
  • *****
  • Posts: 556
  • Davis Vantage Vue, Boltek Stormtr., Mobotix M22-IT
    • Meteopistoia.it
Re: Alternative Dashboard version 6.90 Released
« Reply #14 on: October 28, 2013, 02:51:11 AM »
Hi Scott,
what about this code:
Code: [Select]
$useRainGraph = true;          // Set to true to show WD's Rain Graph (Must have File #7 on customize internet and file creation setup screen to upload)
$RainGraphImage = './ajax-images/raintoday.gif';          // set to image name to display (Will set it to width of 178px automatically) default is 'raintoday.gif'

I've set it to true but i've seen that File #7 on WD customize internet and file creation is a wind value?
What about graph?
I've attached a metric version of raintoday.gif.
Is this file animates automatically or is it only an image static file?
Thanks in advance,


Alessandro

Offline jgillett

  • Forecaster
  • *****
  • Posts: 1155
  • unnamed weather station, Boltek, Win7 Pro, ToA
    • TiggrWeather Phoenix
Re: Alternative Dashboard version 6.90 Released
« Reply #15 on: October 28, 2013, 11:16:14 AM »
Code: [Select]
$useRainGraph = true;          // Set to true to show WD's Rain Graph (Must have File #7 on customize internet and file creation setup screen to upload)
$RainGraphImage = './ajax-images/raintoday.gif';          // set to image name to display (Will set it to width of 178px automatically) default is 'raintoday.gif'

Alessandro,

On my system the raintoday.gif is loaded into the root directory by WD. Noticed you have yours set to ./ajax-images/raintoday.gif. Is that correct for over there? #7 is updated as frequently as you tell it to in your WD settings.

Hope this helps...
John
W7JKG
BUY FROM AMAZON  HERE... Thank You! :-)

Offline Breezy

  • Indian Trail Weather
  • Forecaster
  • *****
  • Posts: 307
    • Indian Trail Weather
Re: Alternative Dashboard version 6.90 Released
« Reply #16 on: October 28, 2013, 11:55:25 AM »
Scott,

Very nice work on your 6.90 script  =D> Keep up your great work. Good health to you.

Jeff
http://indiantrailweather.com
Jeff

W7-64, Intel Z170A 16 GB RAM
Davis VP2 Plus, Davis Soil Moisture/Temp Sensors, Laser Snow Depth Sensor LR4/Fluke 414D

Offline jonnyj771

  • Senior Contributor
  • ****
  • Posts: 219
    • Lightning Weather
Re: Re: Re: Alternative Dashboard version 6.90 Released
« Reply #17 on: October 28, 2013, 12:09:15 PM »
Hi Scott,
what about this code:
Code: [Select]
$useRainGraph = true;          // Set to true to show WD's Rain Graph (Must have File #7 on customize internet and file creation setup screen to upload)
$RainGraphImage = './ajax-images/raintoday.gif';          // set to image name to display (Will set it to width of 178px automatically) default is 'raintoday.gif'

I've set it to true but i've seen that File #7 on WD customize internet and file creation is a wind value?
What about graph?
I've attached a metric version of raintoday.gif.
Is this file animates automatically or is it only an image static file?
Thanks in advance,


Alessandro

Alessandro,

I thought the same thing when I set mine up. On the setting it shows the wind image. When I got the scripts uploaded, it showed the graphic you have posted.
Facebook:
Lightning Weather
   www.facebook.com/lightningweather
                             /groups/lightningweather
Lightning Weather Quad Cities
                             /lightningwxqc
                             /groups/lightningWXQC
Weather Station Hardware: Davis Vantage Pro2 6152
Weather Station Software: WD - 10.37S Build XXX (Beta)
Page Template: MeteoTemplate v1x. (Current Active)

Offline i_fiorentino

  • Forecaster
  • *****
  • Posts: 556
  • Davis Vantage Vue, Boltek Stormtr., Mobotix M22-IT
    • Meteopistoia.it
Re: Alternative Dashboard version 6.90 Released
« Reply #18 on: October 28, 2013, 03:44:32 PM »
Code: [Select]
$useRainGraph = true;          // Set to true to show WD's Rain Graph (Must have File #7 on customize internet and file creation setup screen to upload)
$RainGraphImage = './ajax-images/raintoday.gif';          // set to image name to display (Will set it to width of 178px automatically) default is 'raintoday.gif'

Alessandro,

On my system the raintoday.gif is loaded into the root directory by WD. Noticed you have yours set to ./ajax-images/raintoday.gif. Is that correct for over there? #7 is updated as frequently as you tell it to in your WD settings.

Hope this helps...

Thanks jgillet,
but i don't understand what that setting shows  :?:
My raindetail.gif image (uploads from WD) is like this: http://www.meteocarmignano.it/raindetail.gif

But what about raindetail.gif on my dashboard: http://www.meteocarmignano.it  :?: :?:
Is this dinamic or static  image when it's raining?
It's a linkable image or what?

Thanks in advance to explain me better this part of dashboard.
Regards,


Alessandro
« Last Edit: October 28, 2013, 03:46:05 PM by i_fiorentino »

Offline gwwilk

  • Southeast Lincoln Weather
  • Forecaster
  • *****
  • Posts: 2013
    • SouthEast Lincoln, NE Weather
Re: Alternative Dashboard version 6.90 Released
« Reply #19 on: October 28, 2013, 04:54:03 PM »
Code: [Select]
$useRainGraph = true;          // Set to true to show WD's Rain Graph (Must have File #7 on customize internet and file creation setup screen to upload)
$RainGraphImage = './ajax-images/raintoday.gif';          // set to image name to display (Will set it to width of 178px automatically) default is 'raintoday.gif'

Alessandro,

On my system the raintoday.gif is loaded into the root directory by WD. Noticed you have yours set to ./ajax-images/raintoday.gif. Is that correct for over there? #7 is updated as frequently as you tell it to in your WD settings.

Hope this helps...

Thanks jgillet,
but i don't understand what that setting shows  :?:
My raindetail.gif image (uploads from WD) is like this: http://www.meteocarmignano.it/raindetail.gif

But what about raindetail.gif on my dashboard: http://www.meteocarmignano.it  :?: :?:
Is this dinamic or static  image when it's raining?
It's a linkable image or what?

Thanks in advance to explain me better this part of dashboard.
Regards,


Alessandro
The raintoday.gif on ajax-dashboard690 is updated only as often as WD updates the image to your web site.  It's therefore 'static' in the sense that there's no ajax involvement in its updates, and it won't update unless the entire dashboard is refreshed.  It won't update when you click the dashboard's 'REFRESH' after a time out.  You control the update frequency on WD's Control Panel where you set up raindetail.gif to be created and updated.

All of the Weather Display files that it uploads will usually go into your 'webfiles' directory, which in my case is '/WeatherDisplay'.  If your 'webfiles' directory is your site's root directory, then that's where it will go.  In addition to the raintoday.gif in your ajax-images directory, which is static and will NEVER change (unless you use that directory as your webfiles directory, which I doubt), you have a raintoday.gif in your root directory, Alessandro.  Just point to that file in AltAjaxDashboardConfig6.php and it should show updated images during rain events.
« Last Edit: October 28, 2013, 05:03:21 PM by gwwilk »
Regards, Jerry Wilkins
gwwilk@inebraska.com

Offline i_fiorentino

  • Forecaster
  • *****
  • Posts: 556
  • Davis Vantage Vue, Boltek Stormtr., Mobotix M22-IT
    • Meteopistoia.it
Re: Alternative Dashboard version 6.90 Released
« Reply #20 on: October 28, 2013, 05:34:03 PM »
Code: [Select]
$useRainGraph = true;          // Set to true to show WD's Rain Graph (Must have File #7 on customize internet and file creation setup screen to upload)
$RainGraphImage = './ajax-images/raintoday.gif';          // set to image name to display (Will set it to width of 178px automatically) default is 'raintoday.gif'

Alessandro,

On my system the raintoday.gif is loaded into the root directory by WD. Noticed you have yours set to ./ajax-images/raintoday.gif. Is that correct for over there? #7 is updated as frequently as you tell it to in your WD settings.

Hope this helps...

Thanks jgillet,
but i don't understand what that setting shows  :?:
My raindetail.gif image (uploads from WD) is like this: http://www.meteocarmignano.it/raindetail.gif

But what about raindetail.gif on my dashboard: http://www.meteocarmignano.it  :?: :?:
Is this dinamic or static  image when it's raining?
It's a linkable image or what?

Thanks in advance to explain me better this part of dashboard.
Regards,


Alessandro
The raintoday.gif on ajax-dashboard690 is updated only as often as WD updates the image to your web site.  It's therefore 'static' in the sense that there's no ajax involvement in its updates, and it won't update unless the entire dashboard is refreshed.  It won't update when you click the dashboard's 'REFRESH' after a time out.  You control the update frequency on WD's Control Panel where you set up raindetail.gif to be created and updated.

All of the Weather Display files that it uploads will usually go into your 'webfiles' directory, which in my case is '/WeatherDisplay'.  If your 'webfiles' directory is your site's root directory, then that's where it will go.  In addition to the raintoday.gif in your ajax-images directory, which is static and will NEVER change (unless you use that directory as your webfiles directory, which I doubt), you have a raintoday.gif in your root directory, Alessandro.  Just point to that file in AltAjaxDashboardConfig6.php and it should show updated images during rain events.

Thanks jgillet,
i think I have understood now.
Please, look at here: http://www.meteocarmignano.it

I've set the correct path on AltAjaxDashboardConfig6 to point the root and upload raintoday.gif every 5 minutes.
Now, when it's raining, the image on dashboard uploads (every 5 minutes) at the correct corrispondent rainfall value...is it correct?
Thanks again,


Alessandro

Offline gwwilk

  • Southeast Lincoln Weather
  • Forecaster
  • *****
  • Posts: 2013
    • SouthEast Lincoln, NE Weather
Re: Alternative Dashboard version 6.90 Released
« Reply #21 on: October 28, 2013, 05:44:43 PM »
The raintoday.gif on your dashboard is now the one in your root directory, Alessandro.  Just check it's file time to be sure it's updating regularly, and you should be good to go.
Regards, Jerry Wilkins
gwwilk@inebraska.com

Offline i_fiorentino

  • Forecaster
  • *****
  • Posts: 556
  • Davis Vantage Vue, Boltek Stormtr., Mobotix M22-IT
    • Meteopistoia.it
Re: Alternative Dashboard version 6.90 Released
« Reply #22 on: October 28, 2013, 07:01:12 PM »
Just a note for anyone who wants to convert dashboard time from 12 to 24h format.

Edit ajaxWDwx3.js around line 1855.
Change the code from:

Code: [Select]
set_ajax_obs("ajaxntime"   , WDdt.date("g:i a"));    // 2:37 pm
      set_ajax_obs("ajaxntimess" , WDdt.date("g:i:s a"));  // 2:37:07 pm
      set_ajax_obs("ajaxntimess2" , WDdt.date("g:i:s a"));  // 2:37:07 pm

to:

Code: [Select]
set_ajax_obs("ajaxntime"   , WDdt.date("H:i"));    // 14:37
      set_ajax_obs("ajaxntimess" , WDdt.date("H:i:s"));  // 14:37:07
      set_ajax_obs("ajaxntimess2" , WDdt.date("H:i:s"));  // 14:37:07

Now dashboard time is on 24h format.
Regards,


Alessandro

Offline BurnsvilleWeather

  • Burnsville, MN USA
  • Forecaster
  • *****
  • Posts: 856
  • Retired from Weather!
Re: Alternative Dashboard version 6.90 Released
« Reply #23 on: October 28, 2013, 07:02:26 PM »
Scott,

Very nice work on your 6.90 script  =D> Keep up your great work. Good health to you.

Jeff
http://indiantrailweather.com


Thanks, your site looks great!  Like your layout a lot!

Scott
www.BurnsvilleWeatherLIVE.com (Formally Webster Weather LIVE)
Home of the Alternative Dashboard and Mobile Dashboard Scripts. Weather Display Scripts and Graphics


Davis VP2 with, UV, Solar, Leaf, Web Cam.

Offline BurnsvilleWeather

  • Burnsville, MN USA
  • Forecaster
  • *****
  • Posts: 856
  • Retired from Weather!
Re: Alternative Dashboard version 6.90 Released
« Reply #24 on: October 28, 2013, 07:04:10 PM »
Just a note for anyone who wants to convert dashboard time from 12 to 24h format.

Edit ajaxWDwx3.js around line 1855.
Change the code from:

Code: [Select]
set_ajax_obs("ajaxntime"   , WDdt.date("g:i a"));    // 2:37 pm
      set_ajax_obs("ajaxntimess" , WDdt.date("g:i:s a"));  // 2:37:07 pm
      set_ajax_obs("ajaxntimess2" , WDdt.date("g:i:s a"));  // 2:37:07 pm

to:

Code: [Select]
set_ajax_obs("ajaxntime"   , WDdt.date("H:i"));    // 14:37
      set_ajax_obs("ajaxntimess" , WDdt.date("H:i:s"));  // 14:37:07
      set_ajax_obs("ajaxntimess2" , WDdt.date("H:i:s"));  // 14:37:07

Now dashboard time is on 24h format.
Regards,


Alessandro


I'll add a note in the documents for that too.  Thanks for the tip!

Scott
www.BurnsvilleWeatherLIVE.com (Formally Webster Weather LIVE)
Home of the Alternative Dashboard and Mobile Dashboard Scripts. Weather Display Scripts and Graphics


Davis VP2 with, UV, Solar, Leaf, Web Cam.