Author Topic: BOMaps  (Read 661 times)

0 Members and 1 Guest are viewing this topic.

Offline PaulMy

  • Forecaster
  • *****
  • Posts: 3790
    • KomokaWeather
BOMaps
« on: March 02, 2017, 10:59:27 PM »
I have this code in my www.komokaweather.ca index.php
Code: [Select]
    <!-- Blitzortung Animated Lightning Map -->
    <div align="center">
    <img style="width: 620px; height: 465px;" src="../BOmaps/cache/BONorthAmerica-ani.gif" alt="Blitzortung Lightning Strikes Map"/>
    <?php include_once("BOmaps/cache/BONorthAmerica-map.html"); ?>
    <br />
    For Blitzortung Network Station Details Click on Station Location on the following:<br />
    <a target="frame1" href="../BOmaps/index.php"><b>NORTH AMERICA MAP</b></a><br />
    <a target="frame1" href="../BOmaps/indexON.php"><b>Canada - ONTARIO MAP</b></a><br />
    <a target="frame1" href="../BOmaps/indexSON.php"><b>GREAT LAKES REGION MAP</b></a><br />
   
    <u>Blitzortung North America Network Showing Recent Lightning Strokes and Reporting Stations</u><br />
    </div>
From the www.komokaweather.ca home page the North America maps displays but with 2015-05-22 data.
From www.komokaweather.com/BOmaps/index.php that same North America map also shows with that 2015-05-22 data.

From www.komokaweather.ca home page and clicking on the Canada - ONTARIO MAP link below the BO map the map doesn't change.
However from www.komokaweather.ca/BOmaps/indexON.php displays the current date map for Ontario.

From www.komokaweather.ca home page and clicking on the GREAT LAKES REGION MAP link below the BO map the map doesn't change.
However from www.komokaweather.ca/BOmaps/indexSON.php displays the current date map for the Great Lakes / Souther Ontario region.

Any thoughts what may be causing the 2015-05-22 data in the default map, and why clicking on the other two links the map doesn't change, but does show by direct URL?

Paul

Offline PaulMy

  • Forecaster
  • *****
  • Posts: 3790
    • KomokaWeather
Re: BOMaps
« Reply #1 on: March 03, 2017, 12:11:21 AM »
Now the Canada - ONTARIO and GREAT LAKES REGION map links are working on the www.komokaweather.ca home page.  Maybe a cache issue after I re-uploaded all the BOmaps files.

And after closes watch, the North America map cycles with the first 10 frames with the 2015-05-22 date and 2 frames with the correct current date/time.

Paul

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 6392
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: BOMaps
« Reply #2 on: March 03, 2017, 12:15:35 PM »
When you start the collection after clearing the cache, the script copies the first image generated to the rest of the saved images so the GIF cycle can work .. give it 10 cycles, and it will clear out the duplicate images automatically.
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Boltek-PCI/NexStorm, microSferics ToA, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge/hub
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

Offline PaulMy

  • Forecaster
  • *****
  • Posts: 3790
    • KomokaWeather
Re: BOMaps
« Reply #3 on: March 03, 2017, 12:56:06 PM »

Thanks Ken,
It looks like I must still have something wrong in my reinstall.  The date and time on top of the maps are outdated and only up to last night.  Should I delete cache somewhere?


Regards,
Paul

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 6392
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: BOMaps
« Reply #4 on: March 03, 2017, 02:16:34 PM »
Check the log file produced by the BOmapgen script .. it should show the status of the last cron run of the script.

On your site BOmaps/cache/gen-BO-maps-log.txt shows the last run was  Thu, 02 Mar 2017 22:21:05

Methinks your cron is not working correctly.  Try logging on your site via SSH and run the cronjob script for BOmaps manually to see what errors may exist.  A likely culprit is the hoster changing the PHP CLI executable directory path.. it's happened to me :)

Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Boltek-PCI/NexStorm, microSferics ToA, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge/hub
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

Offline PaulMy

  • Forecaster
  • *****
  • Posts: 3790
    • KomokaWeather
Re: BOMaps
« Reply #5 on: March 03, 2017, 04:57:20 PM »
Thanks again Ken,
I presume then that this from the gen-BO-maps-log.txt does not indicate a current 2017 03 03 update?
Code: [Select]
fetching new strikes file at http://user:pass-omitted@data.blitzortung.org/Data_3/Protected/Strikes/2017/03/03/03/00.json timed calls took 0.002 for 5 executions in 1.029 seconds. 5 lines read. 5 lines written to cache/strikes.txt. fetching new strikes file at http://user:pass-omitted@data.blitzortung.org/Data_3/Protected/Strikes/2017/03/03/03/10.json timed calls took 0.003 for 11 executions in 1.030 seconds. 11 lines read. 11 lines written to cache/strikes.txt. fetching new strikes file at http://user:pass-omitted@data.blitzortung.org/Data_3/Protected/Strikes/2017/03/03/03/20.json timed calls took 0.001 for 3 executions in 0.882 seconds.
I hadn't been able to find anything on whether the cron jobs were actually running and unfortunately I am not familiar with SSH :oops:  I will call GoDaddy.

Paul


Paul


Offline miraculon

  • Sunrise Side Weather
  • Forecaster
  • *****
  • Posts: 2962
  • KE8DAF
    • Sunrise Side Weather in Rogers City MI USA
Re: BOMaps
« Reply #6 on: March 04, 2017, 08:39:41 AM »
My web hoster (hosting24.com) uses cPanel, which has a GUI way of accessing the cron. cPanel has a pretty easy tool to enter cron jobs, although most of mine run on my own Linux box.

I found this about cPanel and GoDaddy: https://www.godaddy.com/help/logging-in-to-cpanel-shared-hosting-8884

It should be under "Advanced" > "Cron Jobs"

Greg H.




Blitzortung Stations 668, 706 - CWOP CW4114 -  CoCoRaHS MI-PI-1

Offline PaulMy

  • Forecaster
  • *****
  • Posts: 3790
    • KomokaWeather
Re: BOMaps
« Reply #7 on: March 04, 2017, 10:30:10 AM »
Thanks Greg,
I think it is because I have not upgraded that I don't have the newer so called cPanel interface.  I can access my Hosting Details and from there to CronJobs but there is nothing available in the settings other than create/edit the cron jobs and edit the email address for receiving errors (which I have not received any).

The good news is that the crons must be working and updating every 5 minutes as the BOmaps are displaying correctly. now.

Regards,
Paul


Offline mkutche

  • Forecaster
  • *****
  • Posts: 777
    • GosportWx.com
Re: BOMaps
« Reply #8 on: November 12, 2017, 05:22:42 PM »
Where can I get this script from?
Mike K.
WS2080 - Cumulus MX v3.0.0
Gosport, Indiana
Gosportwx.com Gosportwx.com/PWS/ Gosportwx.com/j-template/ twitter.com/GosportINWX facebook.com/GosportWxcom
-----------------------------------------------------------

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 6392
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: BOMaps
« Reply #9 on: November 12, 2017, 05:59:09 PM »
If you have a running Blitzortung RED or BLUE detector, I can send you the scripts -- they do require a Blitzortung userid:password (which is only issued to stations with detectors).
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Boltek-PCI/NexStorm, microSferics ToA, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge/hub
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

Offline mkutche

  • Forecaster
  • *****
  • Posts: 777
    • GosportWx.com
Re: BOMaps
« Reply #10 on: November 12, 2017, 07:05:39 PM »
If you have a running Blitzortung RED or BLUE detector, I can send you the scripts -- they do require a Blitzortung userid:password (which is only issued to stations with detectors).

Bummer don't have one. np it's a cool script tho.
Mike K.
WS2080 - Cumulus MX v3.0.0
Gosport, Indiana
Gosportwx.com Gosportwx.com/PWS/ Gosportwx.com/j-template/ twitter.com/GosportINWX facebook.com/GosportWxcom
-----------------------------------------------------------

 

anything