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 4017) - 17 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
pernaczy
Posts: 133
Joined: Thu 15 Nov 2012 5:42 pm
Weather Station: Fine Offset WH 2080, TFA Spring
Operating System: Windows 7
Location: Niesiolowice, Northern Poland
Contact:

Re: Yet Another Dayfile Reader (PHP)

Post by pernaczy »

dygon wrote: The file is in the folder daytime.txt Cumulus / data /
thank you
Hi,
Your file "basic.php" is looking for thr file "daytime.txt" ON THE SERVER. You MUST send the file "daytime.txt" to the server. This file is being created by Cumulus once a day (just after midnight) and located in the directory Cumulus/data. You must send it from there to the server only ONCE A DAY.
Cheers,
Piotr
The day when I have learned something is not the lost one.
Ignorance can be corrected with the help of a book. Stupidity requires a shotgun and a shovel.

Image
dygon
Posts: 24
Joined: Tue 02 Dec 2014 9:04 pm
Weather Station: Oregon WMR200
Operating System: windows 7
Location: Italia

Re: Yet Another Dayfile Reader (PHP)

Post by dygon »

Thanks for your help.
But how do I send the file to the server? and in which folder of my site I have to send it?

thanks again and sorry for my lack of experience and for my English.
User avatar
pernaczy
Posts: 133
Joined: Thu 15 Nov 2012 5:42 pm
Weather Station: Fine Offset WH 2080, TFA Spring
Operating System: Windows 7
Location: Niesiolowice, Northern Poland
Contact:

Re: Yet Another Dayfile Reader (PHP)

Post by pernaczy »

dygon wrote:Thanks for your help.
But how do I send the file to the server? and in which folder of my site I have to send it?
thanks again and sorry for my lack of experience and for my English.
1. To send "Dayfile.txt" file to the server I'm using "CumulusToolbox" application (you can find it here: http://wiki.sandaysoft.com/a/Toolbox)
2. Sorry for my mistake in my previous post. In fact the main file you need to configure is "betel_ReadDayfile.php (in line 27 you have to show the place you have the "dayfile.txt" file). Your "basic.php" file is just presenting all the rcords that are defined in the "betel_ReadDayfile.php" file.
Best Regards,
Piotr
The day when I have learned something is not the lost one.
Ignorance can be corrected with the help of a book. Stupidity requires a shotgun and a shovel.

Image
dygon
Posts: 24
Joined: Tue 02 Dec 2014 9:04 pm
Weather Station: Oregon WMR200
Operating System: windows 7
Location: Italia

Re: Yet Another Dayfile Reader (PHP)

Post by dygon »

thanks it works now!
n9mfk
Posts: 845
Joined: Sun 10 May 2009 8:52 pm
Weather Station: davis vp2 Serial datalogger
Operating System: Windows 7 64-bit
Location: Springfield, IL

Re: Yet Another Dayfile Reader (PHP)

Post by n9mfk »

ok Im am just get this set up It looks grate when it first loads
but if I pick any thing it crashes What have i missed?


http://n9mfk.info/cumulus/wxdatasummary.php

http://n9mfk.info/data/dayfile.txt

Thanks Beau
User avatar
mcrossley
Posts: 12685
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Yet Another Dayfile Reader (PHP)

Post by mcrossley »

The reader script cannot be found...

http://n9mfk.info/cumulus/betel_readDayfile.php
User avatar
mcrossley
Posts: 12685
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Yet Another Dayfile Reader (PHP)

Post by mcrossley »

Also, you have a link at the bottom of each page saying it is 'valid XHTML 1.0', if you click it the first and only two pages I looked at on your site are not valid!
n9mfk
Posts: 845
Joined: Sun 10 May 2009 8:52 pm
Weather Station: davis vp2 Serial datalogger
Operating System: Windows 7 64-bit
Location: Springfield, IL

Re: Yet Another Dayfile Reader (PHP)

Post by n9mfk »

Hi mark think l got it

http://n9mfk.info/cumulus/wxdatasummary.php?pane=1
looks like missing some 2009 data
I fixed the w3c on other pages
thanks Beau
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 »

I think you temperature data is completely wrong or your living on Mercury, 230F in July 2012!!!!!!!!
David
Image
n9mfk
Posts: 845
Joined: Sun 10 May 2009 8:52 pm
Weather Station: davis vp2 Serial datalogger
Operating System: Windows 7 64-bit
Location: Springfield, IL

Re: Yet Another Dayfile Reader (PHP)

Post by n9mfk »

Hi David
here the noaa report for that date http://n9mfk.info/cumulus/wxnoaaclimate ... 2012&mo=07

what the best way to clean up my data file?
thanks beau
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 »

I am not the best person to ask as I have had no problems with my dayfile.txt. If I look around your site most of the other data seems to be correct for your part of the world.

I suggest you take a look at http://wiki.sandaysoft.com/a/Dayfile.txt and see if this will allow you to correct your data.
David
Image
User avatar
steve
Cumulus Author
Posts: 26702
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: Yet Another Dayfile Reader (PHP)

Post by steve »

The dayfile data looks fine to me, based on the NOAA report. But there's something odd about the summary page, it displays reasonable data when it first loads, but then starts going wrong when you start clicking the buttons. It looks like it's taking figures that are already in F and doing a C to F conversion on them. Misconfiguration somewhere?
Steve
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 »

The first Seasonal data display looks fine, and the first Max Temp display for 2015 looks fine then if you select another year it goes haywire, and then if you reclick on Seasonal it is also now incorrect, so I think Steve has spotted your problem i.e. not the data that is at fault but a problem in the dayfile reader in the temperature conversion.

The puzzling thing is that if you click on the temperature selection button and select C it does a conversion albeit on data that is incorrect somehow.
David
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 »

It doesn't seem to be 'reading' the Saratoga $SITE variables (Units Of Measure).
Have you included them on the page as described in the 'How To ....' ?

If your template DOESN'T have the Saratoga $SITE[vars] then you will need to edit..

Code: Select all

/* Units Of Measure - *should* be able to 'read' saratogaWX templates
Your 'native' datafile units - these will also be the default display units (unless overwritten by 'cookies' OR saratogaWX)
'temp' = 'C' OR 'F'
'rain' = 'mm' OR 'in'
'wind' = 'mph' OR 'm/s' OR 'km/h' OR 'kts'
'baro' = 'hPa' OR 'mb' OR 'inHg'
Change in the array BELOW !
*/
$uom = array(
            'temp' => (isset($SITE['uomTemp']) ? substr($SITE['uomTemp'], -1) : 'C'),
            'rain' => (isset($SITE['uomRain']) ? substr($SITE['uomRain'], 1) : 'mm'),
            'wind' => (isset($SITE['uomWind']) ? substr($SITE['uomWind'], 1) : 'km/h'),
            'baro' => (isset($SITE['uomBaro']) ? substr($SITE['uomBaro'], 1) : 'hPa')
        );
Image
......................Imagine, what you will KNOW tomorrow !
n9mfk
Posts: 845
Joined: Sun 10 May 2009 8:52 pm
Weather Station: davis vp2 Serial datalogger
Operating System: Windows 7 64-bit
Location: Springfield, IL

Re: Yet Another Dayfile Reader (PHP)

Post by n9mfk »

Hi all,

I have now set the unis by had
also i have noted it look like some 2009 data is missing

in the last group
http://n9mfk.info/cumulus/wxdatasummary.php?pane=1

but us you look http://n9mfk.info/cumulus/wxnoaaclimate ... 2009&mo=01 its all there

thanks
Post Reply