cloudy

Author Topic: Alternate dashboard help  (Read 10983 times)

0 Members and 1 Guest are viewing this topic.

Offline HometownZone

  • Scott
  • Posts: 1,240
  • Webster Weather LIVE Scripts
  • Webster, MN, USA
    • Webster Weather LIVE
Re: Alternate dashboard help
« Reply #90 on: July 06, 2009, 03:14:19 AM »
Scott I have updated as you suggested and all seems to work good.

Many thanks  :)

Glad it worked for you!  There are so many possible setting, sometimes its hard to make it work for everyone but in time usually it gets figured out!  Have a great week!

Scott
Scott

www.WebsterWeatherLIVE.com

Windows XP Pro(SP3), 4G Ram, QuickCam Pro 9000, Davis Vantage Pro II w/Solar/UV & Heated Rain Catcher, WXSim, 1-Wire: Lightning, Leaf, soil moist/tmp

Offline jmar

  • Posts: 1,405
  • Halifax, Canada
    • HRM Weather
Re: Alternate dashboard help
« Reply #91 on: July 24, 2009, 08:24:57 PM »
Hi Guys, I am using Chuck and Tony's "Last Tip" for the rain and it's raining here today, but I notice that the tip time is not updated when the testtags.php file changes or when the rain total changes... I have to refresh the page.. Is there any way to do this in Ajax? (refresh the tip time)

Thanks
Jim
« Last Edit: July 24, 2009, 08:30:30 PM by jmar »
iMac, 2 x Mac Mini, Mac OS X 10.6.7, Indigo integration, Web - WDL, Saratoga templates, Lightbox

Offline MadALwx

  • Posts: 1,317
  • Retired USAF B-52 Gunner
  • Madison, AL
    • MadALwx
Re: Alternate dashboard help
« Reply #92 on: July 24, 2009, 09:05:37 PM »
WD Summary icon and the conditions verbiage match METAR, however, only the icon on my website is correct. The conditions verbiage under the icon always defaults to ''Overcast and gloomy'' after auto-updates. I've checked both php and ajax but didn't find any references to the default. What has to be done to correct? Thanks.
Lee,     Fox4ALS.com


VP2 w/ Solar Rad, LD-250-Lightning2000, MadCam

Offline jmar

  • Posts: 1,405
  • Halifax, Canada
    • HRM Weather
Re: Alternate dashboard help
« Reply #93 on: July 24, 2009, 09:41:26 PM »
Lee, Looking at your clientraw.txt file on your site it appears that ajax is updating correctly as "Overcast and Gloomy" is the condition that WeatherDisplay is sending to the clientraw file. Ajax is updating from the clientraw file a few seconds after loading from the testtags.php file first, so it is a setting in WD that you need to change. (I think Control Panel>Summary Images>Set Icon From Metar>"Include Extra Weather Conditions from Metar" should be checked if you are drawing your data from the Metar.  Also check Control Panel>FTP Setup>Metar and see that "Use this Metar for local sky/icon conditions...." is checked. You can confirm the correct current conditions text by clicking on the summary icon at the main screen.
Hope this helps.
Jim
« Last Edit: July 24, 2009, 10:11:21 PM by jmar »
iMac, 2 x Mac Mini, Mac OS X 10.6.7, Indigo integration, Web - WDL, Saratoga templates, Lightbox

Offline MadALwx

  • Posts: 1,317
  • Retired USAF B-52 Gunner
  • Madison, AL
    • MadALwx
Re: Alternate dashboard help
« Reply #94 on: July 24, 2009, 10:05:35 PM »
Jim,
Thanks. My Summary image on the Main Display show the correct icon ''mostly clear'' w/ the corresponding verbiage. When my dashbrd 1st loads, it states ''mostly clear'', then changes to ''overcast and gloomy, dry'' at the first update.

I checked the >"Include Extra Weather Conditions from Metar", but didn't see a change after 5:55p.

WD seems configd, but ajax is doing something, it seems.
Lee,     Fox4ALS.com


VP2 w/ Solar Rad, LD-250-Lightning2000, MadCam

Offline jmar

  • Posts: 1,405
  • Halifax, Canada
    • HRM Weather
Re: Alternate dashboard help
« Reply #95 on: July 24, 2009, 10:15:02 PM »
Your ajax is working well, it is just that the clientraw file is not getting the same current conditions as the testtag.php file. Edit: the way you described above is the correct sequence - first the data is loaded from testtags.php (which has the correct data in it) and then a few seconds later Ajax loads the live data from the clientraw.txt file (which has the wrong data at present) and then every few seconds it is reloaded. The thing is that the clientraw is looked at from now on by Ajax and not the testtags.php file. (Until the page is reopened again etc)
Try this: If you are using the Metar exclusively for all your weather, you may want to check Control Panel> Web Page/RealTime>Real Time FTP>"Use the Current Weather from A Metar, and make sure the button is on/green as well.

You can also confirm what is being picked up by ajax by opening your clientraw.txt file in your webfiles folder. I see it here and it is being updated correctly, but with that wrong info as you mention, that is what ajax is loading on the page. (http://www.knology.net/~blackjack52/clientraw.txt)

Ah HAH! I see you got it changed!

Hope this was helpful,
Jim

« Last Edit: July 24, 2009, 10:23:41 PM by jmar »
iMac, 2 x Mac Mini, Mac OS X 10.6.7, Indigo integration, Web - WDL, Saratoga templates, Lightbox

Offline MadALwx

  • Posts: 1,317
  • Retired USAF B-52 Gunner
  • Madison, AL
    • MadALwx
Re: Alternate dashboard help
« Reply #96 on: July 24, 2009, 10:23:09 PM »
>"Use the Current Weather from A Metar'' was not checked. It is now...I can see clearly now.
Thank you.

So many variables for configurations, bound to miss one.
Lee,     Fox4ALS.com


VP2 w/ Solar Rad, LD-250-Lightning2000, MadCam

Offline jmar

  • Posts: 1,405
  • Halifax, Canada
    • HRM Weather
Re: Alternate dashboard help
« Reply #97 on: July 24, 2009, 10:24:16 PM »
Good to see you all fixed up Lee.
Jim

Wondering if Ken, Scott, Tony or Chuck might be able to have a look at my post above regarding getting Ajax to update that Rain Tip time?:
Hi Guys, I am using Chuck and Tony's "Last Tip" for the rain and it's raining here today, but I notice that the tip time is not updated when the testtags.php file changes or when the rain total changes... I have to refresh the page.. Is there any way to do this in Ajax? (refresh the tip time)
Many Thanks,
Jim
« Last Edit: July 24, 2009, 10:27:18 PM by jmar »
iMac, 2 x Mac Mini, Mac OS X 10.6.7, Indigo integration, Web - WDL, Saratoga templates, Lightbox

Offline andro700

  • Chuck
  • Posts: 3,209
  • Watford City, North Dakota
    • Chuck's Weather Page
Re: Alternate dashboard help
« Reply #98 on: July 25, 2009, 01:57:55 AM »
Here is how I have mine in my ajax-dashboard.php

Make sure you have the $timeoflastrain in your testtags.txt file

Code: [Select]
<tr>
                <td class="data1" nowrap="nowrap">Last Tip: </td>
                <td style="text-align: right;" class="data1">
                  <?php echo $timeoflastrain?> &nbsp;
</td>
              </tr>

Chuck

Offline HometownZone

  • Scott
  • Posts: 1,240
  • Webster Weather LIVE Scripts
  • Webster, MN, USA
    • Webster Weather LIVE
Re: Alternate dashboard help
« Reply #99 on: July 25, 2009, 02:09:35 AM »
I think what you want if for it to update with AJAX and I don't think that value is available in the clientraw file that ajax uses for the continues updates.

Scott
Scott

www.WebsterWeatherLIVE.com

Windows XP Pro(SP3), 4G Ram, QuickCam Pro 9000, Davis Vantage Pro II w/Solar/UV & Heated Rain Catcher, WXSim, 1-Wire: Lightning, Leaf, soil moist/tmp

Offline jmar

  • Posts: 1,405
  • Halifax, Canada
    • HRM Weather
Re: Alternate dashboard help
« Reply #100 on: July 25, 2009, 12:42:40 PM »
Yeah, you're right Scott, that value isn't in any of the clientraw files, so I guess it can't be done with Ajax.
Also I see my testtags.php file is not getting the tag data at least half of the time from WD Mac, another intermittent issue with tags on the mac version. I will try this for a while anyway.

Thanks for the help as always.
Jim
iMac, 2 x Mac Mini, Mac OS X 10.6.7, Indigo integration, Web - WDL, Saratoga templates, Lightbox

Offline jmar

  • Posts: 1,405
  • Halifax, Canada
    • HRM Weather
Re: Alternate dashboard help
« Reply #101 on: September 02, 2009, 06:43:47 PM »
Here is how I have mine in my ajax-dashboard.php

Make sure you have the $timeoflastrain in your testtags.txt file

Code: [Select]
<tr>
                <td class="data1" nowrap="nowrap">Last Tip: </td>
                <td style="text-align: right;" class="data1">
                  <?php echo $timeoflastrain?> &nbsp;
</td>
              </tr>

Chuck


Hey guys, First Thanks Chuck for this. I expanded on it a bit and wanted to share the result with you. Again the code just replaces the "Storm Rain" field that wasn't being utilized on my site.

This code takes the following 3 tags into the picture so they need to be in testtags.txt:
$timeoflastrainalways = "%timeoflastrainalways%";  //Time that the last rain tip was recorded (not reset).
$dateoflastrainalways =" %dateoflastrainalways%";  //Date that the last rain tip was recorded (not rest).
$timeoflastrain = "%timeoflastrain%";              //Time that the last rain tip was recorded.


Then I put 2 little if statements in the page in the Rain column that in the case of rain today, It shows the last tip. but as midnight comes,that last tip info is reset to "-" so on a dry day it didn't look good.

Then I used the other 2 tags and moved the last tip to the bottom of the column by using the if statement, and it shows up as date and time of last rain at the bottom of the column, deleting the Last tip field as it is blank after midnight and on dry days, and not needed until rain starts again, then the reverse happens.

Here is my code for the modified rain column:
NOTE - I copied the previous <tr> tag to assist in locating the lines to change and also note the changes go right to the close tag </table>
Code: [Select]
             <tr>
                <td class="data1" nowrap="nowrap"><?php  echo $date_year ?> to Date:</td>
                <td style="text-align: right;" class="data1" nowrap="nowrap">
 <span class="ajax" id="ajaxrainyr">
                    <?php echo strip_units($yearrn) . $uomRain?>
                  </span>
</td>
              </tr>
              <tr>
              <?php if ($timeoflastrain != "-"){ ?>
                <td class="data2" colspan="2" style="text-align: center;">
               <?php } else{ ?>
               <td class="data1" colspan="2" style="text-align: center;">
               <?php ?>
 <?php 
 if ($dayswithrain <= and strip_units($dayrn) <= 0) {
   print "$dayswithnorain days since last rain."
  } else { 
   print "$dayswithrain rain day";
   $t = ($dayswithrain 1)? 's':'';
   print "$t in " $monthname;
  } ?>

                </td>
              </tr>
              <?php if ($timeoflastrain == "-"){ ?>
            <tr title= "Last date and time rain sensor 'bucket' was activated">
                <td style="font-size: 10px; text-align: center;" class="data2" colspan="2" >Last Rain Event Recorded on
                <?php echo $dateoflastrainalways " at" $timeoflastrainalways?>
</td>
              </tr>
             <?php ?>
            </table>

Hope you like it, and credit to Tony and Chuck for this idea.
All the best,
Jim
« Last Edit: September 02, 2009, 06:55:24 PM by jmar »
iMac, 2 x Mac Mini, Mac OS X 10.6.7, Indigo integration, Web - WDL, Saratoga templates, Lightbox

Offline andro700

  • Chuck
  • Posts: 3,209
  • Watford City, North Dakota
    • Chuck's Weather Page
Re: Alternate dashboard help
« Reply #102 on: September 03, 2009, 02:47:12 AM »
Nice little add there Jim. Changed mine to that and it looks good.

Thanks,

Chuck