Author Topic: CoCoRaHS page not displaying previous dates  (Read 2594 times)

0 Members and 1 Guest are viewing this topic.

Offline rlee171

  • Contributor
  • ***
  • Posts: 124
CoCoRaHS page not displaying previous dates
« on: March 20, 2021, 07:51:13 PM »
Greetings,

I am a new contributor to CoCoRaHS (2 weeks). I installed the wxcocorahs.php script and it only has 6 settings, easiest script to install by far.
Today I went to the page https://www.hsnpar.com/wxcocorahs.php and selected a date previous from today, but within the time frame since I have been reporting. When I click the 'view map' to the right of the date it returns back to today. During the install there is a directory created called 'dp', in that directory there is a file 'calendar.js' and it is completely empty, shows file size 0.

In the main script there is a: require_once('./dp/classes/tc_calendar.php');    I am unable to determine if that is possibly what populates the 'calendar.js" file with data.

Am I on the right track here, or am I wandering in the weeds looking in the wrong place?

Any suggestions would be appreciated.

Ralph
Davis VP2 
Blitzortung Stations: 1387  1445  2315
Cumulus
GRLevel3

Offline PaulMy

  • Forecaster
  • *****
  • Posts: 5509
    • KomokaWeather
Re: CoCoRaHS page not displaying previous dates
« Reply #1 on: March 20, 2021, 08:36:21 PM »
I am not familiar with that script.  Do you have a link for it?


Entering your AR-GL-29 in CoCoRaHS View Data and all your data shows for the last 18 days, so presume a script issue.


Enjoy,
Paul


 

Offline rlee171

  • Contributor
  • ***
  • Posts: 124
Re: CoCoRaHS page not displaying previous dates
« Reply #2 on: March 20, 2021, 09:42:21 PM »
Hey Paul,

Thanks for the reply.

Here is the link:  https://saratoga-weather.org/wxtemplates/plugins.php

Scroll down the page a bit.

Ralph
Davis VP2 
Blitzortung Stations: 1387  1445  2315
Cumulus
GRLevel3

Offline PaulMy

  • Forecaster
  • *****
  • Posts: 5509
    • KomokaWeather
Re: CoCoRaHS page not displaying previous dates
« Reply #3 on: March 20, 2021, 10:07:17 PM »
Hi,
Thanks for the link.  I didn't know it was available but should have known, Ken has covered pretty well most of the bases...
But for this script, looks like only in the USA... pity!


Enjoy,
Paul

Offline rlee171

  • Contributor
  • ***
  • Posts: 124
Re: CoCoRaHS page not displaying previous dates
« Reply #4 on: March 20, 2021, 10:18:04 PM »
Just noticed your location...   took a closer look, a tad chilly up there..   nice job on your MX site! 
Getting ready to do the update too, I'm past due.
Davis VP2 
Blitzortung Stations: 1387  1445  2315
Cumulus
GRLevel3

Offline Cutty Sark Sailor

  • WxElement panel
  • Forecaster
  • *****
  • Posts: 3393
    • Frankfort Weather - TwinHollies WeatherCenter
Re: CoCoRaHS page not displaying previous dates
« Reply #5 on: March 20, 2021, 11:23:32 PM »
This is what I use here... last two weeks what's important for me.  When nights finally stay above freezing, the ETo gauge goes active, and water balance becomes valid, ... if those chart inserts don't load, refresh the page... they've got to call the CCR page divs for three stations, and may load before CSU & Frankfort WX servers finish communicating completely with your browser...  :oops:
https://frankfortweather.us/wxgraphs2.php
 


Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9257
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: CoCoRaHS page not displaying previous dates
« Reply #6 on: March 20, 2021, 11:41:08 PM »
Greetings,

I am a new contributor to CoCoRaHS (2 weeks). I installed the wxcocorahs.php script and it only has 6 settings, easiest script to install by far.
Today I went to the page https://www.hsnpar.com/wxcocorahs.php and selected a date previous from today, but within the time frame since I have been reporting. When I click the 'view map' to the right of the date it returns back to today. During the install there is a directory created called 'dp', in that directory there is a file 'calendar.js' and it is completely empty, shows file size 0.

In the main script there is a: require_once('./dp/classes/tc_calendar.php');    I am unable to determine if that is possibly what populates the 'calendar.js" file with data.

Am I on the right track here, or am I wandering in the weeds looking in the wrong place?

Any suggestions would be appreciated.

Ralph
You have to upload the ./dp/ directory, its files and the two subdirectories and their files under that.
./dp/
./dp/classes/
./dp/images/

They all have to be present for the script to work correctly.
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

Offline rlee171

  • Contributor
  • ***
  • Posts: 124
Re: CoCoRaHS page not displaying previous dates
« Reply #7 on: March 20, 2021, 11:45:40 PM »
Hey Ken,

They are there..  this is a snip from the server side of Filezilla

 [ You are not allowed to view attachments ]
Davis VP2 
Blitzortung Stations: 1387  1445  2315
Cumulus
GRLevel3

Offline rlee171

  • Contributor
  • ***
  • Posts: 124
Re: CoCoRaHS page not displaying previous dates
« Reply #8 on: March 21, 2021, 12:00:23 AM »
Here is what is in them....   please note the 0 file size in the calendar js which resides in the dp directory...
All of these are from the server side of Filezilla...   Please excuse the size of the attachments.

dp directory contents:
 [ You are not allowed to view attachments ]

classes directory contents:
 [ You are not allowed to view attachments ]

Tried to edit it for clarification and only made it worse, sorry...   
« Last Edit: March 21, 2021, 12:09:33 AM by rlee171 »
Davis VP2 
Blitzortung Stations: 1387  1445  2315
Cumulus
GRLevel3

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9257
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: CoCoRaHS page not displaying previous dates
« Reply #9 on: March 21, 2021, 12:14:47 AM »
Like I said, the ./dp/calendar.js file is empty.. it should have code in it from the .zip distribution (16.8Kb unzipped).  Extract it from the .zip, and re-upload it.  It is not changed by the scripts, it just executes to provide the date selection functions.
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

Offline rlee171

  • Contributor
  • ***
  • Posts: 124
Re: CoCoRaHS page not displaying previous dates
« Reply #10 on: March 21, 2021, 11:33:00 AM »
Ken,

I reinstalled everything in the zip and now the calendar.js file size is 16,837. Have no idea why it was zero, followed the same install directions.

It is still not displaying previous maps. Studying the script it appears that the previous days data is retrieved from the CoCoRaHS site and not from a file populated by the script, or am I not seeing something?

Thanks

Davis VP2 
Blitzortung Stations: 1387  1445  2315
Cumulus
GRLevel3

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9257
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: CoCoRaHS page not displaying previous dates
« Reply #11 on: March 21, 2021, 11:43:54 AM »
Your website appears to be using Securi caching .. the headers on the access of ./dp/calendar.js shows
Quote
    HTTP/2 200 OK
    server: nginx
    date: Sun, 21 Mar 2021 15:35:35 GMT
    content-type: application/javascript
    content-length: 0
    x-sucuri-id: 11033
    x-xss-protection: 1; mode=block
    x-frame-options: SAMEORIGIN
    x-content-type-options: nosniff
    content-security-policy: upgrade-insecure-requests;
    last-modified: Thu, 25 Feb 2021 20:26:06 GMT
    etag: "6c8158c-0-5bc2ef6126e04"
    vary: User-Agent
    expires: Thu, 31 Dec 2037 23:55:55 GMT
    cache-control: max-age=315360000
    x-sucuri-cache: HIT
    accept-ranges: bytes
    X-Firefox-Spdy: h2
so your webserver is returning the empty file from the cache.  Turn off caching in your cPanel, and the file will be loaded in the browser.,
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

Offline rlee171

  • Contributor
  • ***
  • Posts: 124
Re: CoCoRaHS page not displaying previous dates
« Reply #12 on: March 21, 2021, 11:49:35 AM »
Thank you very much!   Never would have found that.
Davis VP2 
Blitzortung Stations: 1387  1445  2315
Cumulus
GRLevel3

Offline rlee171

  • Contributor
  • ***
  • Posts: 124
Re: CoCoRaHS page not displaying previous dates
« Reply #13 on: March 21, 2021, 12:33:55 PM »
Ken,

That took care of it.

May I ask what you entered to retrieve that information, or is that in your 'secret toolkit'?    8-)

Thanks again,

Ralph
Davis VP2 
Blitzortung Stations: 1387  1445  2315
Cumulus
GRLevel3

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9257
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: CoCoRaHS page not displaying previous dates
« Reply #14 on: March 21, 2021, 12:44:54 PM »
No secret, just the Developer Tools in my Firefox browser.  It's also in Chrome, Edge and other browsers.  I view the Developer Tools console for requests, and can see the headers returned from each HTTP/HTTPS access to your site.  Looking at the response headers shows the caching and the zero bytes returned for the file.

In Firefox, CTRL-SHIFT-K opens the tools.
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

Offline rlee171

  • Contributor
  • ***
  • Posts: 124
Re: CoCoRaHS page not displaying previous dates
« Reply #15 on: March 21, 2021, 01:00:24 PM »
Hi,
Thanks for the link.  I didn't know it was available but should have known, Ken has covered pretty well most of the bases...
But for this script, looks like only in the USA... pity!


Enjoy,
Paul

Paul,

I noticed there are quite a few stations reporting from Ontario. If you are interested in becoming a contributor here is a link that will give you more particulars.

https://www.cocorahs.org/

Ralph
Davis VP2 
Blitzortung Stations: 1387  1445  2315
Cumulus
GRLevel3

Offline PaulMy

  • Forecaster
  • *****
  • Posts: 5509
    • KomokaWeather
Re: CoCoRaHS page not displaying previous dates
« Reply #16 on: March 21, 2021, 01:14:45 PM »
Hi Ralph,
Been reporting since Feb 2014, and haven't missed a day, but a few multi-days reports for when we were away for a day or two - but not since Covid-19 ;) [size=78%].[/size]
Was CAN-ON-31 until Jun 2019 when we moved a few blocks and had to change station number so now CAN-ON-784 and both are listed on the CoCoRaHS site and map.
I presume you don't get the pleasure of going out in the winter sub zero temperature to measure and collect the new snow, and once-a-week total snow on the ground, and then get the SWE for uploading.  Makes interesting chart http://komokaweather.com/weather/snowindex.html


I have been trying to get the local school to become  contributor, but no luck so far.


Enjoy,
Paul




 

anything