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 4019) - 03 April 2024

Legacy Cumulus 1 release 1.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

Freidenker77
Posts: 12
Joined: Fri 22 Nov 2013 11:19 am
Weather Station: WMR-928NX
Operating System: Win7 SP1
Location: Germany
Contact:

Re: Yet Another Dayfile Reader (PHP)

Post by Freidenker77 »

Here I am now in the correct thread.

Hi guys,

I have a problem. I want to convert to the "betel-dayfile history / basic.php ".
Unfortunately, some data are apparently not processed. I do not know what it is. My Webside is http://www.wetter.oiap.de/basic.php

The surface is displayed, only the measurement data is not.

at the
$ dayfile = 'dayfile.txt', is not it, this is set correctly.

Where could still be a mistake?

Thanks for your help.
water01
Posts: 3255
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 will leave beteljuice to comment but your dayfile.txt format looks very strange at the start of each line.

Code: Select all

14.07.10;28,
as compared to mine

Code: Select all

14/08/11,5.4,
You have . instead of / in the date and the normal delimiter of , is a ;
David
Image
User avatar
mcrossley
Posts: 12770
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 »

He just has different separators defined from the UK defaults. List separator = ';' Date separator = '.'

I haven't taken a look at these scripts for a while, but normally the separators are assigned to variables at the top?
mikkimii
Posts: 42
Joined: Fri 23 Mar 2012 3:17 pm
Weather Station: Davis VP2
Operating System: Windows 7 x64 Pro
Location: Vilppula, Finland

Re: Yet Another Dayfile Reader (PHP)

Post by mikkimii »

Freidenker77 wrote:Here I am now in the correct thread.

Hi guys,

I have a problem. I want to convert to the "betel-dayfile history / basic.php ".
Unfortunately, some data are apparently not processed. I do not know what it is. My Webside is http://www.wetter.oiap.de/basic.php

The surface is displayed, only the measurement data is not.

at the
$ dayfile = 'dayfile.txt', is not it, this is set correctly.

Where could still be a mistake?

Thanks for your help.
Try:

Code: Select all

$field_delimiter = ';';
$date_delimiter = '.';
;)
Br,
Mika
Image
Freidenker77
Posts: 12
Joined: Fri 22 Nov 2013 11:19 am
Weather Station: WMR-928NX
Operating System: Win7 SP1
Location: Germany
Contact:

Re: Yet Another Dayfile Reader (PHP)

Post by Freidenker77 »

Hi,

have no idea how this could happen, but it also works with these settings :shock: :?: . Here you go for comparison http://www.wetter.oiap.de/wxdatasummary.php
Freidenker77
Posts: 12
Joined: Fri 22 Nov 2013 11:19 am
Weather Station: WMR-928NX
Operating System: Win7 SP1
Location: Germany
Contact:

Re: Yet Another Dayfile Reader (PHP)

Post by Freidenker77 »

mikkimii wrote: Try:

Code: Select all

$field_delimiter = ';';
$date_delimiter = '.';
;)
Thank you mikkimii, now it works. :clap:
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 »

Update
Small error found in 'cs' part of languages file.

Distribution file and languages file updated.

Simple fix:

Code: Select all

                    'season_4' => '<img src="leaf.png" height="22px" alt="podzim" />Podzim',    // Zář, Říj, Lis
leaf.png should be leaf.gif

Code: Select all

                    'season_4' => '<img src="leaf.gif" height="22px" alt="podzim" />Podzim',    // Zář, Říj, Lis
If you are using the distribution graphics of course !
Image
......................Imagine, what you will KNOW tomorrow !
milos.jirik
Posts: 18
Joined: Wed 19 May 2010 5:02 pm
Weather Station: Davis Vantage Vue
Operating System: Windows 10
Location: Nova Paka, Czech Republic, Central Europe
Contact:

Re: Yet Another Dayfile Reader (PHP)

Post by milos.jirik »

OK,

sorry, this is a little mistake, I'm using all pictures in png format. I forgot to fix it before sending. Thanks for the warning and please repair it.

Milos
westonweather
Posts: 166
Joined: Sun 29 Dec 2013 8:37 am
Weather Station: WMR88
Operating System: Windows 7
Location: Weston-super-Mare
Contact:

Re: Yet Another Dayfile Reader (PHP)

Post by westonweather »

Finally got around to upgrading to V3 with the Meteo 900 css and looking good :)

http://www.westonweather.co.uk/daybyday.php

Thanks Beteljuice :)
Hillbilly
Posts: 112
Joined: Tue 26 Jan 2010 8:54 am
Weather Station: Davis Vantage Pro2 Plus
Operating System: Vista Home Premium SP2
Location: Mayenne, Pays De La Loire, France
Contact:

Re: Yet Another Dayfile Reader (PHP)

Post by Hillbilly »

I've also installed v3. Thanks so much Beteljuice for taking the time to build this. It's a work of genius. :clap:

http://www.lalocherie.com/weather/dailysumm.php
Many thanks
Helen

La Locherie Weather
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 »

Haven't seen your site for a long time Helen - nicely done :clap:

Although a little too :mrgreen: for the beteljuice :lol:

For your business you may find it benefical to make the link more prominent and / or duplicated on your gites pages, and set the 'default' display to seasonal ?

You can do this permanently by changing approx. #270:

Code: Select all

// which 'table' do we want ?
if (!isset($_REQUEST["pane"])) {
    $pane = 0; // default - show 'daily' (change to = 1 for seasonal)
} else {
    $pane = $_REQUEST["pane"];
}
OR simply on-the-fly by adding to the link url:

Code: Select all

****.php?pane=1
Once again - nice site - I'll have to come and visit some day :ugeek:

Edit: better explanation put in code
Last edited by beteljuice on Sun 02 Mar 2014 2:55 pm, edited 1 time in total.
Image
......................Imagine, what you will KNOW tomorrow !
Hillbilly
Posts: 112
Joined: Tue 26 Jan 2010 8:54 am
Weather Station: Davis Vantage Pro2 Plus
Operating System: Vista Home Premium SP2
Location: Mayenne, Pays De La Loire, France
Contact:

Re: Yet Another Dayfile Reader (PHP)

Post by Hillbilly »

Hi Beteljuice,

thanks for your kind words. It's green as far as the eye can see here :mrgreen: so the colour scheme seems appropriate ;)

And thanks for the top tip. I hadn't even noticed that default option. Have now changed it to permanently default to seasonal. And added it to our gite weather links plus our Four Seasons page. Good idea.

Well we couldn't offer you a local with beer here, I'm afraid. But we are considering trying our hand at mead now we keep bees.
Many thanks
Helen

La Locherie Weather
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 »

Helen wrote: I hadn't even noticed that default option...
Yes it is a little bit hidden and not refered to anywhere. I'll have to put a more obvious user variable in for when there is another 'release'.

the beteljuice has contacts in Rabastens (Du tarn) who have kept bees, but the (bee) population has been suffering the last few years.

No Pub :o - the beteljuice is adaptable where alcohol is concerned, but perhaps I may make it a short visit ;)
Image
......................Imagine, what you will KNOW tomorrow !
Dennisdg
Posts: 220
Joined: Tue 07 Feb 2012 9:42 am
Weather Station: Davis Vantage PRO2
Operating System: Windows 11 Pro 64 Bit
Location: Camberley

Re: Yet Another Dayfile Reader (PHP)

Post by Dennisdg »

thanks beteljuice for all your good work.
Now using V3.
I had the same issue in V2 where right side boarder of the yearly averages at the bottom of the display is displaced slightly.
I am using the 'medium' 750betel_datasummary.css renamed to betel_datasummary.css

Please guide me how to correct it.
Thanks
Capture.JPG
You do not have the required permissions to view the files attached to this post.
Dennis

https://g4glp.co.uk

Davis Vantage PRO2
Win 11 Pro 64 bit
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 »

Dennisdg wrote:...right side boarder of the yearly averages at the bottom of the display is displaced slightly.
If I 'look' at your site everything seems alright (FF 27.01).
What browser / OS are you seeing that in ?
Image
......................Imagine, what you will KNOW tomorrow !
Post Reply