Welcome to the new home of the Cumulus Support forum.

Latest Cumulus release v1.9.4 (build 1099) - Nov 28 2014
Latest Cumulus MX release - v3.0.0 build 3043 Jan 20 2017. See the Wiki for download

PHP

Share your Cumulus MX user interface here
BCJKiwi
Posts: 869
Joined: Mon 09 Jul 2012 8:40 pm
Weather Station: Davis VP2 Cabled with Solar
Operating System: Windows 10 Pro
Location: Auckland, New Zealand
Contact:

PHP

Post by BCJKiwi » Mon 23 Feb 2015 4:41 am

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: 1711
Joined: Sun 28 Sep 2008 11:54 pm
Weather Station: Davis Vantage Pro 2+ w/Envoy USB
Operating System: Windows-8
Location: Komoka, ON Canada
Contact:

Re: PHP

Post by PaulMy » Mon 23 Feb 2015 2:49 pm

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

Paul

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 » Mon 09 Mar 2015 8:05 pm

It looks wonderfull. Is it available to download somewhere?

User avatar
beteljuice
Posts: 2510
Joined: Tue 09 Dec 2008 1:37 pm
Weather Station: None !
Operating System: XP SP3 - honest
Location: Dudley, West Midlands, UK

Re: PHP

Post by beteljuice » Mon 09 Mar 2015 10:53 pm

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 » Sun 05 Apr 2015 8:06 am

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: 1477
Joined: Sat 13 Aug 2011 9:33 am
Weather Station: WH1081
Operating System: Windows 7 64bit HP SP1
Location: Somewhere in the USA
Contact:

Re: PHP

Post by water01 » Sun 05 Apr 2015 11:32 am

Maybe this annual data page could be implemented in the cumulus MX official release?
Really like it.
http://sandaysoft.com/forum/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?
http://sandaysoft.com/forum/viewtopic.php?f=27&t=13189 Again PHP.

User avatar
duke
Posts: 840
Joined: Sun 03 Jul 2011 6:23 pm
Weather Station: Davis VP2 Plus - 24hr FARS
Operating System: Windows 10 - 64 bit
Location: Eastleigh, Hampshire, UK
Contact:

Re: PHP

Post by duke » Sun 05 Apr 2015 6:53 pm

water01 wrote: http://sandaysoft.com/forum/viewtopic.p ... it=dayfile Written in PHP so unlikely.
Ah, but - http://sandaysoft.com/forum/viewtopic.p ... +data+page

And it should not be too hard too include that yourself ;)
Duke

Nightingale Weather
Eastleigh, Hampshire, UK
------------------------------------------------------
Validate your pages - often!

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

Re: PHP

Post by BCJKiwi » Mon 01 Jun 2015 2:37 am

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 » Tue 02 Jun 2015 1:29 am

hi BCJKiwi,
where did you find your moon images
thanks

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

Re: PHP

Post by BCJKiwi » Tue 02 Jun 2015 1:34 am

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: 869
Joined: Mon 09 Jul 2012 8:40 pm
Weather Station: Davis VP2 Cabled with Solar
Operating System: Windows 10 Pro
Location: Auckland, New Zealand
Contact:

Re: PHP

Post by BCJKiwi » Tue 14 Jul 2015 12:15 pm

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: 1711
Joined: Sun 28 Sep 2008 11:54 pm
Weather Station: Davis Vantage Pro 2+ w/Envoy USB
Operating System: Windows-8
Location: Komoka, ON Canada
Contact:

Re: PHP

Post by PaulMy » Tue 14 Jul 2015 2:58 pm

Very nice, well done.

Paul

User avatar
ICP963
Posts: 53
Joined: Thu 04 Jul 2013 7:53 am
Weather Station: Vantage Vue
Operating System: Raspbian
Location: Chandler, AZ, USA

Re: PHP

Post by ICP963 » Sat 22 Aug 2015 5:20 am

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: 869
Joined: Mon 09 Jul 2012 8:40 pm
Weather Station: Davis VP2 Cabled with Solar
Operating System: Windows 10 Pro
Location: Auckland, New Zealand
Contact:

Re: PHP

Post by BCJKiwi » Sat 22 Aug 2015 5:59 am

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

Re: PHP

Post by ICP963 » Sat 22 Aug 2015 8:41 am

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