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

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 »

Code: Select all

'<span class="meterTxt">' . round($thisValue, $decimals) . '</span></div><b></b'>;
Shouldn't that be

Code: Select all

'<span class="meterTxt">' . round($thisValue, $decimals) . '</span></div><b></b>';
Or am I being stupid?
David
Image
User avatar
nitrx
Posts: 1297
Joined: Sun 13 Dec 2009 1:21 pm
Weather Station: WH1080
Operating System: Windows 10
Location: Apeldoorn The Netherlands
Contact:

Re: Yet Another Dayfile Reader (PHP)

Post by nitrx »

water01 wrote:

Code: Select all

'<span class="meterTxt">' . round($thisValue, $decimals) . '</span></div><b></b'>;
Shouldn't that be

Code: Select all

'<span class="meterTxt">' . round($thisValue, $decimals) . '</span></div><b></b>';
Or am I being stupid?
See previous post of me :geek:
User avatar
nitrx
Posts: 1297
Joined: Sun 13 Dec 2009 1:21 pm
Weather Station: WH1080
Operating System: Windows 10
Location: Apeldoorn The Netherlands
Contact:

Re: Yet Another Dayfile Reader (PHP)

Post by nitrx »

A question about integrating in the Saratoga template when I choose the English language http://www.apeldoorn.tk/weer/wxnum.php?lang=en I get it translated in English but when I choose another query it falls back to Dutch

I've $default_lang = 'nl'; in the readdayfile...
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 »

Interesting that you both saw that (It's always been like this in my version)

Code: Select all

'<span class="meterTxt">' . round($thisValue, $decimals) . '</span></div><b></b';
The reason the <b>s are there is so I CAN get it to close properly.

The routine that 'calls' all the formatOP() closes with ">" ;)
Are you experiencing problems with it ?

@ Ron - Aha ! - my cock-up

Got 'test' sequences and language file include in the wrong order.

New release already !!!! (v1.4.1)
Image
......................Imagine, what you will KNOW tomorrow !
User avatar
nitrx
Posts: 1297
Joined: Sun 13 Dec 2009 1:21 pm
Weather Station: WH1080
Operating System: Windows 10
Location: Apeldoorn The Netherlands
Contact:

Re: Yet Another Dayfile Reader (PHP)

Post by nitrx »

beteljuice wrote:Interesting that you both saw that (It's always been like this in my version)

Code: Select all

'<span class="meterTxt">' . round($thisValue, $decimals) . '</span></div><b></b';
The reason the <b>s are there is so I CAN get it to close properly.

The routine that 'calls' all the formatOP() closes with ">" ;)
Are you experiencing problems with it ?

@ Ron - Aha ! - my cock-up

Got 'test' sequences and language file include in the wrong order.

New release already !!!! (v1.4.1)
Notepad ++ noted it I hadn't seen it before but I've seen no problems with it. The language doesn't keep with version 1.4.1 , anyway great job :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 »

Sigh ....

Everything updated V1.4.2 - allows twitch error reporting levels, minor cosmetics, and attempts to improve validation checks. (Which it can NEVER fully pass !)

Sorry guys ..

There may yet be another change to the main file if it needs a rework for "saratogaWX" language options.
Image
......................Imagine, what you will KNOW tomorrow !
User avatar
laulau
Posts: 678
Joined: Tue 13 Oct 2009 10:52 pm
Weather Station: WeatherDuino Pro2
Operating System: Win 7
Location: Meyenheim, Alsace, FR
Contact:

Re: Yet Another Dayfile Reader (PHP)

Post by laulau »

A little translation modification for french:
I think i made a confusion between heat degree days and (day with heat deficit) and cooling degree day (day with heat exedent) :bash:
The end of 'fr' array :

Code: Select all

                    'heatday' => array('DJU-', 'Déficit degrés-jours'),
                    'coolday' => array('DJU+', 'Excédent degrés-jours')
                ),

For the next update. :oops:
Laurent

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 »

Language file [fr] update:

Edit: No longer relevant.
Seperate download until 'next' major update

Thank You Laurent.

To look forward to:
There may be a "How To .." in the works for using in saratogaWX templates by BCJKiwi ...
Last edited by beteljuice on Fri 14 Feb 2014 3:51 pm, edited 1 time in total.
Image
......................Imagine, what you will KNOW tomorrow !
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 »

Another experiment ...

Nothing drastic .... 'extended' Temperature gradient in 30+ C range due to 'hot' people only seeing red.

Edit: No longer relevant

Thoughts please .........
Last edited by beteljuice on Fri 14 Feb 2014 3:52 pm, edited 1 time in total.
Image
......................Imagine, what you will KNOW tomorrow !
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 »

Translation in Polish.

Code: Select all

'pl' => array(
                    'daily' => 'Dzienne', // drop-down table selector
                    'seasonal' => 'Sezonowe', // drop-down table selector
                    'note' => array('Uwaga','Niekompletny zestaw danych.', 'Braki traktowane jak zero !'),
                    'loading' => 'Pobieranie danych ...',
                    'fail' => 'Niepowodzenie !!!',
                    'total' => '&#931;',
                    'avg' => 'Śred.',
                    'hi' => 'Maks.',
                    'lo' => 'Min.',
                    'dom' => 'Dom', // 'short' for dominant (wind direction)
                    'season_1' => '<img src="snowflake.png" height="22px" />Zima', // previous Dec, Jan, Feb
                    'season_2' => '<img src="daffodil.png" height="22px" />Wiosna', // Mar, Apr, May
                    'season_3' => '<img src="sun.png" height="22px" />Lato', // Jun, Jul, Aug
                    'season_4' => '<img src="leaf.gif" height="22px" />Jesień', // Sep, Oct, Nov
                    'mn' => array('Sty', 'Lut', 'Mar', 'Kwi', 'Maj', 'Czer', 'Lip', 'Sier', 'Wrz', 'Paź', 'Lis', 'Gru'),
                    'dy' => array('Nie','Pon','Wto','Śro','Czw','Pią','Sob'),
                    'compass_headings' => array('N&nbsp;&#x2193;','NE&nbsp;&#x2199;','E&nbsp;&#x2190;','SE&nbsp;&#x2196;','S&nbsp;&#x2191;','SW&nbsp;&#x2197;','W&nbsp;&#x2192;','NW&nbsp;&#x2198;','N&nbsp;&#x2193;'),
                    'maxtemp' => array('Temp Maks', 'Temperatura Maksymalna'),
                    'mintemp' => array('Temp Min', 'Temperatura Minimalna'),
                    'tdiff' => array('T&deg; Różn.', 'T&deg; Różnica Maks. - Min.'),
                    'avgtemp' => array('Temp Śred.', 'Temperatura Średnia'),
                    'tappmax' => array('Maks T&deg; Odcz', 'Odczuwalna Temperatura Maksymalna'),
                    'tappmin' => array('Min T&deg; Odcz', 'Odczuwalna Temperatura Minimalna'),
                    'dpmax' => array('Maks TPR', 'Maksymalna Temperatura Punktu Rosy'),
                    'dpmin' => array('Min TPR', 'Minimalna Temperatura Punktu Rosy'),
                    'rhmax' => array('Maks Wilg', 'Maksymalna Wilgotność Względna %'),
                    'rhmin' => array('Min Wilg', 'Minimalna Wilgotność Względna %'),
                    'rainfall' => array('Deszcz', 'Opad deszczu'),
                    'windspd' => array('Pr. Wiatru', 'Największa Prędkość Wiatru '),
                    'windgust' => array('Pr. Poryw', 'Największa Prędkość Porywu'),
                    'windrun' => array('Dr. Wiatr', 'Droga Wiatru'),
                    'winddir' => array('Kier Wiatr', 'Dominujący Kierunek Wiatru'),
                    'baromax' => array('Ciś Maks', 'Maksymalne Ciśnienie Barometryczne'),
                    'baromin' => array('Ciś Min', 'Minimalne Ciśnienie Barometryczne'),
                    'HoursSun' => array('Słoneczn.', 'Godziny Słoneczne'),
                    'Solar' => array('Solarn.', 'Energia Słoneczna W/m&sup2;'),
                    'HighUV' => array('Indeks UV', 'UV index'),
                    'evt' => array('EWT', 'Ewapotranspiracja'),
                    'heatday' => array('Dni Grz.', 'Stopniodni Grzania'),
                    'coolday' => array('Dni Chł.', 'Stopniodni Chłodzenia')
				),
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
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 »

Yet Another Update

... on first post.

13 Feb 2014 - v1.4.3
  • [fr] lang section corrected
    *New* [pl] lang section
    Fix - Multi lang satatogaWX templates now work
    *New* $temp_red_extension = true; // 'extends' the temperature red colour gradient > 40C, true / false
I think / hope that's pretty much going to be it :clap:
Last edited by beteljuice on Wed 11 Jun 2014 3:20 pm, edited 1 time in total.
Image
......................Imagine, what you will KNOW tomorrow !
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 »

beteljuice wrote:Another experiment ...

Nothing drastic .... 'extended' Temperature gradient in 30+ C range due to 'hot' people only seeing red.

>Using nossis data [au]<

Thoughts please .........
I think there should also be a different blue colours below -20 C and -30 C for cold countries ;)
Br,
Mika
Image
User avatar
KarlS
Posts: 135
Joined: Tue 30 Nov 2010 3:01 pm
Weather Station: Ecowitt GW1003 / WH32 / WH41
Operating System: Buster Lite on Pi4
Location: Bridge Lake, BC, Canada
Contact:

Re: Yet Another Dayfile Reader (PHP)

Post by KarlS »

I think there should also be a different blue colours below -20 C and -30 C for cold countries
I second that. Look at our minimum temperatures here
rich27gc
Posts: 75
Joined: Thu 08 Jul 2010 3:15 pm
Weather Station: WeatherDuino Pro2
Operating System: Raspbian
Location: Shap, Cumbria
Contact:

Re: Yet Another Dayfile Reader (PHP)

Post by rich27gc »

Yesterday my station recorded a high wind gust of 60.2 MPH but with MPH selected in high wind gusts it is recorded as 41, if I then select km/h 60.2 is recorded there. :?:

http://www.shapweather.co.uk/cumulus/archive.htm
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 »

@ rich27gc

Then you haven't changed the default Units Of Measure to your 'native' units !

@ karls & mikkimii

You can go off people you know !

I think (visual indication-wise) the difference (or not) between damn cold and bloody cold is right,

.. but .. if there is enough consensenus of opinion then one of us could change it :o

but I am reluctant to create 'new' standards - I would rather that visual interprtretation is sort of understood by all - this may mean a rethink on existing concepts as I have simply followed what went before instead of researching to see if there are 'standard' colour gradients for different data type ranges.
Image
......................Imagine, what you will KNOW tomorrow !
Post Reply