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
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're not wrong :o

For some reason I seem to have put an * in front of the mobile menu id :? I have absolutely no idea why, unless it was a cut'n'paste from some untested page.

All users of new cuMX version

Existing:

Code: Select all

			<!--	Mobile menu	-->
			<div id="*Main_Menu_Mobile" class="w3-bar-block w3-hide w3-hide-large">
Should be:

Code: Select all

			<!--	Mobile menu	-->
			<div id="Main_Menu_Mobile" class="w3-bar-block w3-hide w3-hide-large">
Sorry about that :oops:
Image
......................Imagine, what you will KNOW tomorrow !
Phil23
Posts: 884
Joined: Sat 16 Jul 2016 11:59 pm
Weather Station: Davis VP2+ & GW1000 (Standalone)
Operating System: Win10 Pro / rPi Buster
Location: Australia

Re: Yet Another Dayfile Reader (PHP)

Post by Phil23 »

Thanks,

Fixed on both sites.

Re daffodil,raindrop.png etc & hatch2, assume there's not reason why I can't move them from root to /images & edit the language file to suit.
Just for the sake of 5 less files in my root.

Just need to also identify where hatch2.jpg is referenced.
:Now: :Today/Yesterday:

Image

Main Station Davis VP2+ Running Via Win10 Pro.
Secondary Stations, Ecowitt HP2551/GW1000 Via rPi 3 & 4 Running Buster GUI.
:Local Inverell Ecowitt Station: :Remote Ashford Ecowitt Station:
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 »

hatch2.jpg is in the css file, but ....

... there is also raindrop.png in several places in the code of betel_readDayfile.php ;)
Image
......................Imagine, what you will KNOW tomorrow !
User avatar
Paul C
Posts: 538
Joined: Thu 19 Jun 2008 7:45 am
Weather Station: Davis VP2 with solar
Operating System: Windows 10
Location: Brampton, Cumbria, UK
Contact:

Re: Yet Another Dayfile Reader (PHP)

Post by Paul C »

Hi

I used to have the dayfile reader on my old cumulus site but after moving to Cumulus MX last week I cant get it working.

I basically dont understand the instructions :bash: ( its me, I am sure the instructions are fine)

http://www.bramptonweather.co.uk/stats.php

This is as far as I have got, clearly not working and no data showing. Any clever folk point me in the right direction please -

Many thanks
Paul C
Brampton, Cumbria, UK
117m ASL
http://www.bramptonweather.co.uk
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 »

When this happens use the developer console by loading it with F12, set it to network and refresh.

In this case you have either failed to load or have a wrong directory for what appears to be all the .css files.
missing css.jpg
You do not have the required permissions to view the files attached to this post.
David
Image
User avatar
Paul C
Posts: 538
Joined: Thu 19 Jun 2008 7:45 am
Weather Station: Davis VP2 with solar
Operating System: Windows 10
Location: Brampton, Cumbria, UK
Contact:

Re: Yet Another Dayfile Reader (PHP)

Post by Paul C »

Cheers

They have been uploaded in folder called Betel

Also put the css files into the Css folder

Doesnt appear to have changed anything as yet
Paul C
Brampton, Cumbria, UK
117m ASL
http://www.bramptonweather.co.uk
Image
User avatar
PaulMy
Posts: 3775
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 »

I presume you are referring to http://www.komokaweather.com/cumulusmx/ ... hp?lang=en or also this http://komokaweather.com/weather/betel_ ... maryCU.php

Do you have the correct path in betel_readDayfile.php settings for your site:

Code: Select all

// ************ START * START * START USER VARIBLES ***********************

$this_file_name = basename(__FILE__); // IMPORTANT - for best results this file should be in the SAME directory as the 'holding' page that uses it
$dayfile = 'data/dayfile.txt'; // to work correctly this should be a relative address NOT full url
Enjoy,
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
Paul C
Posts: 538
Joined: Thu 19 Jun 2008 7:45 am
Weather Station: Davis VP2 with solar
Operating System: Windows 10
Location: Brampton, Cumbria, UK
Contact:

Re: Yet Another Dayfile Reader (PHP)

Post by Paul C »

http://www.bramptonweather.co.uk/data/dayfile.txt

yes should be "data/dayfile.txt"

I havent changed anything from what can with the download
Paul C
Brampton, Cumbria, UK
117m ASL
http://www.bramptonweather.co.uk
Image
User avatar
PaulMy
Posts: 3775
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 »

For yours it is not likely data/dayfile.txt since you have the script in /Betel and it should be relative to that /Betel folder, possibly "../data/dayfile.txt" depending on your remote file structure.

Enjoy,
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
Paul C
Posts: 538
Joined: Thu 19 Jun 2008 7:45 am
Weather Station: Davis VP2 with solar
Operating System: Windows 10
Location: Brampton, Cumbria, UK
Contact:

Re: Yet Another Dayfile Reader (PHP)

Post by Paul C »

I have now tried betel/data/dayfile.txt

That doesnt work either

I am clearly missing the point here, cant be that difficult is it

my website is www.bramptonweather.co.uk

I have a folder named "betel" with all the bits in bramptonweather/co.uk/betel

My day file is bramptonweather/co.uk/data/dayfile.tx
The page I am trying to make is bramptonweather/co.uk/stats.php

With the above info are you able see where I am going wrong

many thanks
Paul C
Brampton, Cumbria, UK
117m ASL
http://www.bramptonweather.co.uk
Image
freddie
Posts: 2434
Joined: Wed 08 Jun 2011 11:19 am
Weather Station: Davis Vantage Pro 2 + Ecowitt
Operating System: GNU/Linux Ubuntu 22.04 LXC
Location: Alcaston, Shropshire, UK
Contact:

Re: Yet Another Dayfile Reader (PHP)

Post by freddie »

Like @PaulMy said, your path needs to be ../data/dayfile.txt not betel/data/dayfile.txt
Freddie
Image
User avatar
Paul C
Posts: 538
Joined: Thu 19 Jun 2008 7:45 am
Weather Station: Davis VP2 with solar
Operating System: Windows 10
Location: Brampton, Cumbria, UK
Contact:

Re: Yet Another Dayfile Reader (PHP)

Post by Paul C »

Hi

Sorry, but what do you mean ...

is it just data/dayfile ?
Paul C
Brampton, Cumbria, UK
117m ASL
http://www.bramptonweather.co.uk
Image
User avatar
Paul C
Posts: 538
Joined: Thu 19 Jun 2008 7:45 am
Weather Station: Davis VP2 with solar
Operating System: Windows 10
Location: Brampton, Cumbria, UK
Contact:

Re: Yet Another Dayfile Reader (PHP)

Post by Paul C »

Still doesnt work

pressing F12 says I am missing weatherstyle.css:1 ?

where is that supposed to come from please

cheers

( having a bad day here)
Paul C
Brampton, Cumbria, UK
117m ASL
http://www.bramptonweather.co.uk
Image
freddie
Posts: 2434
Joined: Wed 08 Jun 2011 11:19 am
Weather Station: Davis Vantage Pro 2 + Ecowitt
Operating System: GNU/Linux Ubuntu 22.04 LXC
Location: Alcaston, Shropshire, UK
Contact:

Re: Yet Another Dayfile Reader (PHP)

Post by freddie »

Paul C wrote: Sun 23 Jan 2022 6:58 pm Hi

Sorry, but what do you mean ...

is it just data/dayfile ?
No, it is ../data/dayfile.txt. The ".." takes you "down" from your betel directory, and in to /data.

However, as you say, you need to sort out your CSS errors. I don't actually use this facility so am not able to help with the CSS errors.
Freddie
Image
User avatar
Paul C
Posts: 538
Joined: Thu 19 Jun 2008 7:45 am
Weather Station: Davis VP2 with solar
Operating System: Windows 10
Location: Brampton, Cumbria, UK
Contact:

Re: Yet Another Dayfile Reader (PHP)

Post by Paul C »

ok cheers

Back to data/dayfile etc

still doesnt work

Not to worry - anyone else have any suggestions please let me know

thankyou
Paul C
Brampton, Cumbria, UK
117m ASL
http://www.bramptonweather.co.uk
Image
Post Reply