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

PHP

Share your Cumulus MX user interface here

Moderator: mcrossley

BCJKiwi
Posts: 1255
Joined: Mon 09 Jul 2012 8:40 pm
Weather Station: Davis VP2 Cabled
Operating System: Windows 10 Pro
Location: Auckland, New Zealand
Contact:

PHP

Post by BCJKiwi »

As I use Saratoga templates, have gained some knowledge of php, ajax etc.
I changed a few of the standard Cumulus website scripts over to php and just kept going.
The WORKING MX sites are at http://silveracorn.nz/weather/ (Saratoga), http://silveracorn.nz/cumulus/ (Traditional Style) and http://silveracorn.nz/cumulusmx/ (UI style) are now all php. CumulusMX is driving all three sites.

Have retained most of the original look and feel but have combined today and yesterday onto one page, month and year on another.
There is a new records page that replicates the function and options of the interface records page. I had started on this, combining record.htm and monthlyrecordT.htm. Have now extended this to also combine thismonthT.htm and thisyearT.htm before I noticed the current b3020 interface 'records' page - only use the interface (or the Cumulus1 console) for trouble shooting and reconfiguration).

So what does this mean?
With php the scripts are all static on the webserver and only data needs to be sent, not whole pages.
So the web folder only has the following files to process (for the standard setup - i.e. excluding the other 'features' that are not part of the standard site).
1. A tags file ( CUtagsT.txt) containing all the available tags (from the WebTags.txt file) plus a few extra variable formats sent at 'interval'.
2. realtimegaugesT.txt
3. a records.dat file which consists of the javascript block from the monthlyrecordT.htm file with additions for alltime (original record.htm data), thismonth and thisyear.
The other files sent are realtime.txt and the .json files.

Most of these files are used for all three sites. There is a different CUtags file for the Saratoga site as it uses some additional formatted variables but will probably combine them into one file.
The files that are used by more than one website are held in separate folder reducing data uploaded and maintenance.
Last edited by BCJKiwi on Sat 26 Sep 2015 11:28 pm, edited 7 times in total.
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: PHP

Post by PaulMy »

Very well done, and looks very nice :clap:
The additional realtime and tags pages are also a nice idea and well done.

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
xayide
Posts: 37
Joined: Tue 24 Feb 2015 10:04 am
Weather Station: Fine Offsett WH-3080
Operating System: Server 2012 R2
Location: Sweden

Re: PHP

Post by xayide »

It looks wonderfull. Is it available to download somewhere?
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: PHP

Post by beteljuice »

I was trying to think what is 'missing' ....

Then I realised you have no page 'banners' reinforcing what page you are on.

BTW - Nice to see the Annual Data page ;)
Image
......................Imagine, what you will KNOW tomorrow !
xayide
Posts: 37
Joined: Tue 24 Feb 2015 10:04 am
Weather Station: Fine Offsett WH-3080
Operating System: Server 2012 R2
Location: Sweden

Re: PHP

Post by xayide »

Maybe this annual data page could be implemented in the cumulus MX official release?
Really like it.

How did you make the graphs show up in the hover over the gauges? Must be static graph images right?
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: PHP

Post by water01 »

Maybe this annual data page could be implemented in the cumulus MX official release?
Really like it.
https://cumulus.hosiene.co.uk/viewtopic.p ... it=dayfile Written in PHP so unlikely.
How did you make the graphs show up in the hover over the gauges? Must be static graph images right?
https://cumulus.hosiene.co.uk/viewtopic.php?f=27&t=13189 Again PHP.
David
Image
duke

Re: PHP

Post by duke »

water01 wrote: https://cumulus.hosiene.co.uk/viewtopic.p ... it=dayfile Written in PHP so unlikely.
Ah, but - https://cumulus.hosiene.co.uk/viewtopic.p ... +data+page

And it should not be too hard too include that yourself ;)
BCJKiwi
Posts: 1255
Joined: Mon 09 Jul 2012 8:40 pm
Weather Station: Davis VP2 Cabled
Operating System: Windows 10 Pro
Location: Auckland, New Zealand
Contact:

Re: PHP

Post by BCJKiwi »

Have now made the move to CumulusMX driving both Saratoga and Cumulus Websites - revised post #1 to reflect the change.
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: PHP

Post by n9mfk »

hi BCJKiwi,
where did you find your moon images
thanks
BCJKiwi
Posts: 1255
Joined: Mon 09 Jul 2012 8:40 pm
Weather Station: Davis VP2 Cabled
Operating System: Windows 10 Pro
Location: Auckland, New Zealand
Contact:

Re: PHP

Post by BCJKiwi »

I used a large freeware windows software package ( called virtual moon atlas pro - http://www.ap-i.net/avl/en/start ) to generate the images and then resized them - took a lot of time.
The ones I have are for the Southern hemisphere.
BCJKiwi
Posts: 1255
Joined: Mon 09 Jul 2012 8:40 pm
Weather Station: Davis VP2 Cabled
Operating System: Windows 10 Pro
Location: Auckland, New Zealand
Contact:

Re: PHP

Post by BCJKiwi »

Have now hacked together a website based on the CumulusMX UI interface files to give this:-
http://silveracorn.nz/cumulusmx/

It is a bit of a mashup !!
It uses the .json files, gauges and charts code from the standard Cumulus MX website (as used on the php CumulusMX website - first post).

For some pages it uses realtime and Cumulus tag files generated from the CumulusMX/web folder and the ajax .js code from the Saratoga templates (all as utilised in the php CumulusMX website - first post).
For other pages it adapts pages from the interface folder.
All pages were then styled from the interface .css and .js as required to get the same look and feel as the UI.

This was basically an exercise to see how it might be done.
However it really is a mix of old and new coding styles (tables as well as divs etc.) and thus is not very elegant as the source for much of the data is not the same as it is for the UI.
Last edited by BCJKiwi on Tue 14 Jul 2015 8:22 pm, edited 2 times in total.
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: PHP

Post by PaulMy »

Very nice, well done.

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
ICP963
Posts: 54
Joined: Thu 04 Jul 2013 7:53 am
Weather Station: Vantage Vue
Operating System: Raspbian
Location: Chandler, AZ, USA

Re: PHP

Post by ICP963 »

I just love the Vantage Vu display page. Awesome look to the pages that you have done.

Sure wish I knew more about PHP then just spelling it. :mrgreen:
Roy Schahrer - N7QYK
Chandler, AZ
WX Station : Davis Vantage Vue with USB Datalogger
WX Computer: Raspberry Pi 3 Model B running Raspbian
Software : CumulusMX Beta 3041
BCJKiwi
Posts: 1255
Joined: Mon 09 Jul 2012 8:40 pm
Weather Station: Davis VP2 Cabled
Operating System: Windows 10 Pro
Location: Auckland, New Zealand
Contact:

Re: PHP

Post by BCJKiwi »

Thanks 8-)
If you click the link in our signature below, you can get the Davis Console and Cloudbase scripts from our Scripts link.
While these scripts use PHP they will run in the standard Cumulus HTML website provided the webserver supports PHP and for the Cloudbase script GDI as well - both are pretty standard.
A comprehensive HowTo guide is included in the downloads. A number of Cumulus users have one or other or both these scripts running.
User avatar
ICP963
Posts: 54
Joined: Thu 04 Jul 2013 7:53 am
Weather Station: Vantage Vue
Operating System: Raspbian
Location: Chandler, AZ, USA

Re: PHP

Post by ICP963 »

BCJKiwi wrote:Thanks 8-)
If you click the link in our signature below, you can get the Davis Console and Cloudbase scripts from our Scripts link.
While these scripts use PHP they will run in the standard Cumulus HTML website provided the webserver supports PHP and for the Cloudbase script GDI as well - both are pretty standard.
A comprehensive HowTo guide is included in the downloads. A number of Cumulus users have one or other or both these scripts running.
Cool, I will give it a try and see what happens.

Thanks

Roy
Post Reply