Author Topic: updated cell scripts for saratoga  (Read 11758 times)

0 Members and 1 Guest are viewing this topic.

Offline BKS97

  • Senior Contributor
  • ****
  • Posts: 207
    • Sartell East Weather
Re: updated cell scripts for saratoga
« Reply #50 on: October 11, 2024, 06:56:21 PM »
Thank you tman1991

Offline tman1991

  • Senior Member
  • **
  • Posts: 57
    • http://frogville.us
Re: updated cell scripts for saratoga
« Reply #51 on: October 16, 2024, 06:22:01 PM »
Syncing file again with Ken's.  Make sure you have the latest nws-alerts.php also.
« Last Edit: June 30, 2025, 03:20:19 AM by tman1991 »

Offline tedroche

  • Semi-retired, novice weather station operator
  • Member
  • *
  • Posts: 48
  • Weather Observer, CoCoRaHS, Storm Spotter
    • Contoocook Village North
Re: updated cell scripts for saratoga
« Reply #52 on: October 17, 2024, 05:50:06 PM »
I have refreshed all of my cell scripts and added more functionality.  I'm sure I forgot to include something so let me know what I forgot.  Readme is included.

Nice! Are the scripts available for download somewhere?
Ecowitt GW1100 HP3501 WH32 WN32 WH31 WN34S WH41 WH40 WS68 RaspPi
Website, CWOP: GW0103, CoCoRaHS: NH-MR-68, WU:KNHHOPKI9




Offline tman1991

  • Senior Member
  • **
  • Posts: 57
    • http://frogville.us
Re: updated cell scripts for saratoga
« Reply #53 on: October 17, 2024, 06:03:01 PM »
post #29 has the zip plus the file above for the nws-alerts-cell.php

Offline tman1991

  • Senior Member
  • **
  • Posts: 57
    • http://frogville.us
Re: updated cell scripts for saratoga
« Reply #54 on: March 01, 2025, 05:49:17 PM »
did you fix whatever the issue was? seems the reply was deleted?

Offline tatumweather

  • Member
  • *
  • Posts: 31
    • Tatum NM Weather
Re: updated cell scripts for saratoga
« Reply #55 on: March 01, 2025, 05:52:16 PM »
Yes sir, sorry, it was my error!
I figured it out shortly after I posted.
Thank you sir!
James
http://tatumweather.com
Weather Display / Vantage Pro 2
NWS Co-Op Observer
TATN5

Offline Saunookweather

  • Member
  • *
  • Posts: 40
  • N4ZHM
    • Saunookweather
Re: updated cell scripts for saratoga
« Reply #56 on: June 23, 2025, 06:43:15 PM »
Any one know how to fix this? Alert map is too wide
and I cannot figure out how
to resize it so it fits within cell-nws-alerts-details-inc.php.
I believe it has to do with:

<?php
echo $leafletScript; 
echo $gmjs;
echo $zCoord;
echo $polyLegend;
?>

But I can't figure how to resize it so the map fits within the cell page.
« Last Edit: June 23, 2025, 06:44:53 PM by Saunookweather »

Offline Saunookweather

  • Member
  • *
  • Posts: 40
  • N4ZHM
    • Saunookweather
Re: updated cell scripts for saratoga
« Reply #57 on: June 25, 2025, 12:59:14 PM »
Got the map and legend fixed. Changed width from 630 to 360
in the cell-nws-alerts-details-inc.php script.

Hopefully this helps someone else.

From:   $polyLegend = ' <div style="width: 630px; text-align:center; background-color:#FFF">'; //   create the polygon legend

To:       $polyLegend = ' <div style="width: 360px; text-align:center; background-color:#FFF">'; //   create the polygon legend


From:  <div id="map" style="width: 630px; height: 260px; border:1px solid black"></div>

To:      <div id="map" style="width: 360px; height: 260px; border:1px solid black"></div>

« Last Edit: June 25, 2025, 01:09:55 PM by Saunookweather »

Offline tedroche

  • Semi-retired, novice weather station operator
  • Member
  • *
  • Posts: 48
  • Weather Observer, CoCoRaHS, Storm Spotter
    • Contoocook Village North
Re: updated cell scripts for saratoga
« Reply #58 on: June 27, 2025, 11:06:33 AM »
tman1991:

Thanks for the cell scripts! I dropped them in to my existing WEEWX backend / Saratoga front end and tweaked a few things (using ajaxWeeWx.js, retaining current images) and got it 99% functional in just a few minutes. Excellent work. And the readme makes it easy.

The only obvious glitch I can see is that the Moon section in the Almanac doesn't show moonphase images. It's looking for images in "./ajax-images/moon/w/NH-moon03.gif" and I have no moon subdirectory in ajax-images. Does any have an idea what scripts or image sources could supply those images?

Pages start at https://contoocook.org/cell.php
Ecowitt GW1100 HP3501 WH32 WN32 WH31 WN34S WH41 WH40 WS68 RaspPi
Website, CWOP: GW0103, CoCoRaHS: NH-MR-68, WU:KNHHOPKI9




Offline Forever

  • Senior Contributor
  • ****
  • Posts: 244
Re: updated cell scripts for saratoga
« Reply #59 on: June 27, 2025, 02:59:37 PM »
I zipped up the contents of my moon folder. See if this gets it working.

Offline tman1991

  • Senior Member
  • **
  • Posts: 57
    • http://frogville.us
Re: updated cell scripts for saratoga
« Reply #60 on: June 27, 2025, 04:44:26 PM »
sorry for the late replies was out of town..  hopefully everyone got it working.

Offline tman1991

  • Senior Member
  • **
  • Posts: 57
    • http://frogville.us
Re: updated cell scripts for saratoga
« Reply #61 on: June 29, 2025, 03:00:12 AM »
updated nws-alerts-cell.php to be in sync with Ken's latest nws-alerts.php.

No user changes required, just replace.


Offline tedroche

  • Semi-retired, novice weather station operator
  • Member
  • *
  • Posts: 48
  • Weather Observer, CoCoRaHS, Storm Spotter
    • Contoocook Village North
Re: updated cell scripts for saratoga
« Reply #62 on: June 29, 2025, 11:57:57 AM »
I zipped up the contents of my moon folder. See if this gets it working.

That worked great! Thank you!
Ecowitt GW1100 HP3501 WH32 WN32 WH31 WN34S WH41 WH40 WS68 RaspPi
Website, CWOP: GW0103, CoCoRaHS: NH-MR-68, WU:KNHHOPKI9




 

anything