Author Topic: wxstatus.php Graphic  (Read 4548 times)

0 Members and 1 Guest are viewing this topic.

blackjack52

  • Guest
wxstatus.php Graphic
« on: October 04, 2009, 11:06:23 AM »
I am using this great script. Thanks Kevin and TNET. Also, thanks to Relay Wx for the mod.

I would like to take it one step further, using an image map to show red/grn status at the location on the imagemap, where the equipment is located.
http://www.knology.net/~blackjack52/wxstatus.php
I think it would look cool to have a red/grn status where I have the purple circles, or 'UP' 'DN' to the left of the Equipment List.

Anyone have code for this?

Offline Axelvold

  • Forecaster
  • *****
  • Posts: 1704
    • Axelvold's weather and photo
Re: wxstatus.php Graphic
« Reply #1 on: October 10, 2009, 02:41:52 PM »
I also use this script and wondering how to get it to display minutes or hours instead of seconds?
Lars Magnusson
Axelvold / Sweden
55° 57' 41" N / 13° 6' 1" E
WX Station: Davis Vantage Pro2 Plus

Offline mackbig

  • Forecaster
  • *****
  • Posts: 4128
    • Mackie's Main Street, Unionville, ON Canada Weather
Re: wxstatus.php Graphic
« Reply #2 on: October 11, 2009, 12:06:41 AM »
I cant find the script on tnet's page.  Looks like its been redesigned since I was last there.

Andrew

Andrew - Davis VP2+ 6163, serial weatherlink, wireless anemometer, running Weather Display.  Boltek PCI Stormtracker, Astrogenic Nexstorm, Strikestar - UNI, CWOP CW8618, GrLevel3, (Station 2 OS WMR968, VWS 13.01p09), Windows 7-64

blackjack52

  • Guest
Re: wxstatus.php Graphic
« Reply #3 on: October 11, 2009, 07:53:07 PM »
I'm back up after that squall the other day. 44.9 then 88.5mph from a micro.

PM e-mail and I'll forward what RelayWx sent me.

The minutes portion is used mid-way in the script.

« Last Edit: October 11, 2009, 07:54:57 PM by MadALwx »

Offline Axelvold

  • Forecaster
  • *****
  • Posts: 1704
    • Axelvold's weather and photo
Re: wxstatus.php Graphic
« Reply #4 on: October 12, 2009, 03:45:17 PM »
I cant find where to change to minutes or hour, anyone that could explain to me?
Lars Magnusson
Axelvold / Sweden
55° 57' 41" N / 13° 6' 1" E
WX Station: Davis Vantage Pro2 Plus

blackjack52

  • Guest
Re: wxstatus.php Graphic
« Reply #5 on: October 12, 2009, 06:04:47 PM »
For tenths of an hr and displays in hrs and minutes when last updated.

Code: [Select]
      <td><a href="forecast.txt">Forecast Model</a></td>
  <?php list($stat,$age,$data) = explode("\t",check_file('forecast.txt',60*1440+30)); ?>
      <td align="center"><?php echo $stat?></td>      <td align="right"><?php echo round($age 60  602); ?></td>
<td><?php echo $data?></td>


Offline Axelvold

  • Forecaster
  • *****
  • Posts: 1704
    • Axelvold's weather and photo
Re: wxstatus.php Graphic
« Reply #6 on: October 15, 2009, 08:09:22 AM »
For tenths of an hr and displays in hrs and minutes when last updated.

Code: [Select]
      <td><a href="forecast.txt">Forecast Model</a></td>
  <?php list($stat,$age,$data) = explode("\t",check_file('forecast.txt',60*1440+30)); ?>
      <td align="center"><?php echo $stat?></td>      <td align="right"><?php echo round($age 60  602); ?></td>
<td><?php echo $data?></td>


Thank's Lee

That did fix it  \:D/
Lars Magnusson
Axelvold / Sweden
55° 57' 41" N / 13° 6' 1" E
WX Station: Davis Vantage Pro2 Plus

blackjack52

  • Guest
Re: wxstatus.php Graphic
« Reply #7 on: October 15, 2009, 07:39:07 PM »
Cool. You're welcome.

blackjack52

  • Guest
Re: wxstatus.php Graphic
« Reply #8 on: December 19, 2009, 12:41:22 AM »
Finally figured out how to have a colored status word update on a graphic. Just have to work the rest.
Here's the code:

Code: [Select]
<div style="position: relative; background: url(http://www.knology.net/~blackjack52/opscapc.jpg); width: 604px; height: 514px;">

<p style="position: absolute; bottom: 13.8em; left: 4.7em; width: 20px; padding: 0px; background-color: #000; font-weight: bold; font-size: 11px;">
<?php list($stat,$age,$data) = explode("\t",check_file('wwpic.jpg',60*2+50)); ?><?php echo $stat?></p>

<p style="position: absolute; bottom: 12.4em; left: 4.7em; width: 20px; padding: 0px; background-color: #000; font-weight: bold; font-size: 11px;">
<?php list($stat,$age,$data) = explode("\t",check_file('nowcast.txt',60*2+30)); ?><?php echo $stat?></p>

<p style="position: absolute; bottom: 11em; left: 4.7em; width: 20px; padding: 0px; background-color: none; font-weight: bold; font-size: 11px;">
<?php print $vpreception2?></p>

<p style="position: absolute; bottom: 9.6em; left: 4.7em; width: 20px; padding: 0px; background-color: #000; font-weight: bold; font-size: 11px;">
</p>

<p style="position: absolute; bottom: 8.2em; left: 4.7em; width: 20px; padding: 0px; background-color: none; font-weight: bold; font-size: 11px;">
<?php print $vpissstatus?></p>


</div>

See it: http://www.knology.net/~blackjack52/wxstatus.php
« Last Edit: December 19, 2009, 12:43:28 AM by MadALwx »

 

anything