Welcome to the Cumulus Support forum.

Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024

Cumulus MX V4 beta test release 4.0.0 (build 4018) - 28 March 2024

Legacy Cumulus 1 release v1.9.4 (build 1099) - 28 November 2014 (a patch is available for 1.9.4 build 1099 that extends the date range of drop-down menus to 2030)

Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki

Yet Another Dayfile Reader (PHP)

Other discussion about creating web sites for Cumulus that doesn't have a specific subforum

Moderator: daj

User avatar
PaulMy
Posts: 3777
Joined: Sun 28 Sep 2008 11:54 pm
Weather Station: Davis VP2 Plus 24-Hour FARS
Operating System: Windows8 and Windows10
Location: Komoka, ON Canada
Contact:

Re: Yet Another Dayfile Reader (PHP)

Post by PaulMy »

Doesn't appear to be just right yet. The default temp view for July 28 is different than your PWS upload and when you select any of the items on the reader's pull down menu nothing shows. I also couldn't see your /dayfile.txt file.

Paul
Davis Vantage Pro2+
C1 www.komokaweather.com/komokaweather-ca
MX www.komokaweather.com/cumulusmx/index.htm /index.html /index.php
MX www.komokaweather.com/cumulusmxwll/index.htm /index.html /index.php
MX www. komokaweather.com/cumulusmx4/index.htm

Image
User avatar
aznetcowboy
Posts: 357
Joined: Fri 04 Jan 2013 6:03 pm
Weather Station: Davis 6153 Vantage Pro2
Operating System: Windows 10 Home 64-bit
Location: West Bend, WI USA
Contact:

Re: Yet Another Dayfile Reader (PHP)

Post by aznetcowboy »

PaulMy wrote:Doesn't appear to be just right yet. The default temp view for July 28 is different than your PWS upload and when you select any of the items on the reader's pull down menu nothing shows. I also couldn't see your /dayfile.txt file.

Paul
My dayfile.txt file is at http://www.elgheko.us/data/dayfile.txt.

UPDATE: You made me do some research and I found the dayfile.txt wasn't going to the data folder like it should. I had made some changes earlier to my Cumulus Toolbox and ended up sending it to the root. Until I find out if any harm will be done, I will allow it to do updates to each location.
:groan:

Now to get the highlighing problem resolved. :?
Tom Wills
Ridge Run Weather Station: http://www.ridgerun.us
Image
User avatar
aznetcowboy
Posts: 357
Joined: Fri 04 Jan 2013 6:03 pm
Weather Station: Davis 6153 Vantage Pro2
Operating System: Windows 10 Home 64-bit
Location: West Bend, WI USA
Contact:

Re: Yet Another Dayfile Reader (PHP)

Post by aznetcowboy »

aznetcowboy wrote:
PaulMy wrote:Doesn't appear to be just right yet. The default temp view for July 28 is different than your PWS upload and when you select any of the items on the reader's pull down menu nothing shows. I also couldn't see your /dayfile.txt file.

Paul
My dayfile.txt file is at http://www.elgheko.us/data/dayfile.txt.

UPDATE: You made me do some research and I found the dayfile.txt wasn't going to the data folder like it should. I had made some changes earlier to my Cumulus Toolbox and ended up sending it to the root. Until I find out if any harm will be done, I will allow it to do updates to each location.
:groan:

Now to get the highlighting problem resolved. :?
Things look okay again. One problem I will need to keep an eye on is the /data/dayfile.txt got set to a length of zero. Then back to the highlighting issue.

UPDATE: I have also addressed the dayfile.txt issue at https://cumulus.hosiene.co.uk/viewtopic.p ... 197#p97197. Hopefully this will be resolved soon.
Tom Wills
Ridge Run Weather Station: http://www.ridgerun.us
Image
User avatar
beteljuice
Posts: 3292
Joined: Tue 09 Dec 2008 1:37 pm
Weather Station: None !
Operating System: W10 - Threadripper 16core, etc
Location: Dudley, West Midlands, UK

Re: Yet Another Dayfile Reader (PHP)

Post by beteljuice »

Then back to the highlighting issue.
The version I am seeing ATM has no data content, plus it still has a call to non-existant css file.

I suggest you start from scratch carefully following the "How To ..." example for saratoga templates.
If the the css is incomplete, maybe that there are other (JavaScript) issues.

It maybe omissions, duplicates, incorrect sequence, etc. etc.
Image
......................Imagine, what you will KNOW tomorrow !
User avatar
aznetcowboy
Posts: 357
Joined: Fri 04 Jan 2013 6:03 pm
Weather Station: Davis 6153 Vantage Pro2
Operating System: Windows 10 Home 64-bit
Location: West Bend, WI USA
Contact:

Re: Yet Another Dayfile Reader (PHP)

Post by aznetcowboy »

beteljuice wrote:
Then back to the highlighting issue.
The version I am seeing ATM has no data content, plus it still has a call to non-existant css file.

I suggest you start from scratch carefully following the "How To ..." example for saratoga templates.
If the the css is incomplete, maybe that there are other (JavaScript) issues.

It maybe omissions, duplicates, incorrect sequence, etc. etc.
Beteljuice,

What non-existant css file? Maybe I can narrow it down if I know I am looking for. Wait a minute, I think I found it. It wasa duplicate entry of the betel_datasummary.css file. I removed it as it was pointing to the wrong place. :oops:

Tom
Tom Wills
Ridge Run Weather Station: http://www.ridgerun.us
Image
User avatar
beteljuice
Posts: 3292
Joined: Tue 09 Dec 2008 1:37 pm
Weather Station: None !
Operating System: W10 - Threadripper 16core, etc
Location: Dudley, West Midlands, UK

Re: Yet Another Dayfile Reader (PHP)

Post by beteljuice »

I see that a local copy of jquery.min is being loaded AFTER the full remote version.

The min copy will supercede the full version and if this is an 'old' version ( < 1.8.2) then that may be why your mouseover highlights are not fully working.
Image
......................Imagine, what you will KNOW tomorrow !
User avatar
aznetcowboy
Posts: 357
Joined: Fri 04 Jan 2013 6:03 pm
Weather Station: Davis 6153 Vantage Pro2
Operating System: Windows 10 Home 64-bit
Location: West Bend, WI USA
Contact:

Re: Yet Another Dayfile Reader (PHP)

Post by aznetcowboy »

beteljuice wrote:I see that a local copy of jquery.min is being loaded AFTER the full remote version.

The min copy will supercede the full version and if this is an 'old' version ( < 1.8.2) then that may be why your mouseover highlights are not fully working.
How can I tell what version the copy I have is? BTW, moving the jquery.min made a difference on the highlighting! Thanks Beteljuice! :D
Tom Wills
Ridge Run Weather Station: http://www.ridgerun.us
Image
water01
Posts: 3215
Joined: Sat 13 Aug 2011 9:33 am
Weather Station: Ecowitt HP2551
Operating System: Windows 10 64bit
Location: Burnham-on-Sea
Contact:

Re: Yet Another Dayfile Reader (PHP)

Post by water01 »

If you are using IE9,10,11 then hitting F12 on a page brings up the developer tools. If you click on Network, the 4th icon down on the left, and then Start Capture and refresh the page it will show you all the code, images etc. that the page loads and from where and the time it takes to load them. Very useful when testing a page and you want to check all the elements are loading OK.

I believe that Chrome, Firebird etc. have similar tools but I am not familiar with them.
David
Image
User avatar
aznetcowboy
Posts: 357
Joined: Fri 04 Jan 2013 6:03 pm
Weather Station: Davis 6153 Vantage Pro2
Operating System: Windows 10 Home 64-bit
Location: West Bend, WI USA
Contact:

Re: Yet Another Dayfile Reader (PHP)

Post by aznetcowboy »

water01 wrote:If you are using IE9,10,11 then hitting F12 on a page brings up the developer tools. If you click on Network, the 4th icon down on the left, and then Start Capture and refresh the page it will show you all the code, images etc. that the page loads and from where and the time it takes to load them. Very useful when testing a page and you want to check all the elements are loading OK.

I believe that Chrome, Firebird etc. have similar tools but I am not familiar with them.
So far I have found nothing that means anything to me using these methods. However, one thing I have done is is been going through my usage logs to see if anything shows up. So far nothing that means anything to me. The following are the last 10 data lines from log when the data file got reset to zero. I don't right off hand see anything, so I'm sending them up here to see if anyone sees anything, anything at all. My IP Address is the 24.251.141.62.
24.251.141.62 - - [02/Aug/2014:13:54:15 -0700] "GET /betel_readDayfile.php?year=2013&data=mintemp&disp=t1r1w0b1&pane=0&lang=en HTTP/1.1" 200 6744 "http://www.elgheko.us/wxbetel.php" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:26.0) Gecko/20100101 Firefox/26.0 IceDragon/26.0.0.2"
24.251.141.62 - - [02/Aug/2014:13:54:25 -0700] "GET /betel_readDayfile.php?year=2014&data=mintemp&disp=t1r1w0b1&pane=0&lang=en HTTP/1.1" 200 5739 "http://www.elgheko.us/wxbetel.php" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:26.0) Gecko/20100101 Firefox/26.0 IceDragon/26.0.0.2"
24.251.141.62 - - [02/Aug/2014:13:54:28 -0700] "GET /betel_readDayfile.php?year=2013&data=mintemp&disp=t1r1w0b1&pane=0&lang=en HTTP/1.1" 200 6744 "http://www.elgheko.us/wxbetel.php" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:26.0) Gecko/20100101 Firefox/26.0 IceDragon/26.0.0.2"
66.249.79.32 - - [02/Aug/2014:13:54:21 -0700] "GET /WU-History.php?ID=KAZTUCSO210&month=1&day=30&year=2014&units=E&mode=3 HTTP/1.1" 200 12600 "-" "Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)"
24.251.141.62 - - [02/Aug/2014:13:54:37 -0700] "GET /betel_readDayfile.php?year=2013&data=baromax&disp=t1r1w0b1&pane=0&lang=en HTTP/1.1" 200 4296 "http://www.elgheko.us/wxbetel.php" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:26.0) Gecko/20100101 Firefox/26.0 IceDragon/26.0.0.2"
24.251.141.62 - - [02/Aug/2014:13:54:41 -0700] "GET /betel_readDayfile.php?year=2013&data=rainfall&disp=t1r1w0b1&pane=0&lang=en HTTP/1.1" 200 4164 "http://www.elgheko.us/wxbetel.php" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:26.0) Gecko/20100101 Firefox/26.0 IceDragon/26.0.0.2"
24.251.141.62 - - [02/Aug/2014:13:54:43 -0700] "GET /betel_readDayfile.php?year=2013&data=rhmin&disp=t1r1w0b1&pane=0&lang=en HTTP/1.1" 200 5278 "http://www.elgheko.us/wxbetel.php" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:26.0) Gecko/20100101 Firefox/26.0 IceDragon/26.0.0.2"
24.251.141.62 - - [02/Aug/2014:13:54:52 -0700] "GET /betel_readDayfile.php?year=2014&data=rhmin&disp=t1r1w0b1&pane=0&lang=en HTTP/1.1" 200 4721 "http://www.elgheko.us/wxbetel.php" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:26.0) Gecko/20100101 Firefox/26.0 IceDragon/26.0.0.2"
24.251.141.62 - - [02/Aug/2014:13:55:05 -0700] "GET /betel_readDayfile.php?year=2014&data=dpmax&disp=t1r1w0b1&pane=0&lang=en HTTP/1.1" 200 3035 "http://www.elgheko.us/wxbetel.php" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:26.0) Gecko/20100101 Firefox/26.0 IceDragon/26.0.0.2"
184.168.152.192 - - [02/Aug/2014:13:55:07 -0700] "GET /realtime.txt HTTP/1.1" 200 472 "-" "Mesomap Loader"
Tom Wills
Ridge Run Weather Station: http://www.ridgerun.us
Image
User avatar
beteljuice
Posts: 3292
Joined: Tue 09 Dec 2008 1:37 pm
Weather Station: None !
Operating System: W10 - Threadripper 16core, etc
Location: Dudley, West Midlands, UK

Re: Yet Another Dayfile Reader (PHP)

Post by beteljuice »

You are using FF v26 (why not 31 ?)

Goto developer tools > network

Then refresh the page .. you will see all the 'calls' and network response and time to load.
Clicking on one of them shows the 'header response' and content sent from the server.

There are other tools there to inspect / modify the css / html / JS etc. etc.

The beteljuice uses the firebug plug-in rather than the 'native' dev tools but all very similar.
Image
......................Imagine, what you will KNOW tomorrow !
User avatar
aznetcowboy
Posts: 357
Joined: Fri 04 Jan 2013 6:03 pm
Weather Station: Davis 6153 Vantage Pro2
Operating System: Windows 10 Home 64-bit
Location: West Bend, WI USA
Contact:

Re: Yet Another Dayfile Reader (PHP)

Post by aznetcowboy »

A suggestion by my ISP is "Sounds like there is some sort of locking issue with the file, where the php script tries to update it when it’s being accessed by the web process and it gets cleared but not re-written. You’ll probably have to reach out to the developers on that one." Now to try and figure this out. :bash:
Tom Wills
Ridge Run Weather Station: http://www.ridgerun.us
Image
User avatar
aznetcowboy
Posts: 357
Joined: Fri 04 Jan 2013 6:03 pm
Weather Station: Davis 6153 Vantage Pro2
Operating System: Windows 10 Home 64-bit
Location: West Bend, WI USA
Contact:

Re: Yet Another Dayfile Reader (PHP)

Post by aznetcowboy »

aznetcowboy wrote:A suggestion by my ISP is "Sounds like there is some sort of locking issue with the file, where the php script tries to update it when it’s being accessed by the web process and it gets cleared but not re-written. You’ll probably have to reach out to the developers on that one." Now to try and figure this out. :bash:
I think this observation by my ISP may have resolved the problem. I wasn't aware of it but the dayfile.txt was being uploaded from the Cumulus.ini file which meant every 10 minutes of so it was being uploaded. I know I had it being uploaded from the Cumulus Toolbox, every 10 minutes when I could not resolve the issue.


Now I have removed the dayfile.txt upload from the Cumulus uploads and changed the every 10 miutes upload from the Cumulus Toolbox to once a day at 8:00 AM (MST). So far it seems to be working okay. :D

I would say it was a simple solution, but I wasn't aware of the Cumulus uploads. I'm not sure why it was in there. :groan:
Tom Wills
Ridge Run Weather Station: http://www.ridgerun.us
Image
TempsBanyeres
Posts: 1
Joined: Fri 12 Sep 2014 2:43 pm
Weather Station: Oregon WMR200
Operating System: Windows 8.1
Location: Banyeres del Penedès-Baix Penedès

Re: Yet Another Dayfile Reader (PHP)

Post by TempsBanyeres »

I do not understand the next step in explaining Cumulus Wiki. I could explain it more detailed please? That I have to put in the daily box?

Image

Image

Thank you
gmc
Posts: 1
Joined: Sat 27 Sep 2014 2:58 pm
Weather Station: Raspberry Pi
Operating System: Debian
Location: Halton

Re: Yet Another Dayfile Reader (PHP)

Post by gmc »

Just stumbled upon this now and have got it working. Great job.

2 questions.
1) How difficult would it be to add a key to the bottom as seen here:
http://weather.wilmslowastro.com/datasummary.php

2) Also is it possible to replace the wind direction arrows with png images of arrows?
User avatar
De Hout
Posts: 17
Joined: Thu 09 Oct 2014 5:40 pm
Weather Station: Davis Vantage Pro2 Plus
Operating System: Windows 11
Location: Alkmaar, The Netherlands
Contact:

Re: Yet Another Dayfile Reader (PHP)

Post by De Hout »

Thanks beteljuice for making the php dayfile reader.
I've just implemented it in my Weather Blues 1 template (the html-version).

http://meteodehoutalkmaar.ddns.net/history.php

Main page: http://meteodehoutalkmaar.ddns.net
Weather Station Website: http://www.alkmaarweer.nl
Post Reply