Page 1 of 2

PHP

Posted: Mon 23 Feb 2015 4:41 am
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.

Re: PHP

Posted: Mon 23 Feb 2015 2:49 pm
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

Re: PHP

Posted: Mon 09 Mar 2015 8:05 pm
by xayide
It looks wonderfull. Is it available to download somewhere?

Re: PHP

Posted: Mon 09 Mar 2015 10:53 pm
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 ;)

Re: PHP

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

Re: PHP

Posted: Sun 05 Apr 2015 11:32 am
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.

Re: PHP

Posted: Sun 05 Apr 2015 6:53 pm
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 ;)

Re: PHP

Posted: Mon 01 Jun 2015 2:37 am
by BCJKiwi
Have now made the move to CumulusMX driving both Saratoga and Cumulus Websites - revised post #1 to reflect the change.

Re: PHP

Posted: Tue 02 Jun 2015 1:29 am
by n9mfk
hi BCJKiwi,
where did you find your moon images
thanks

Re: PHP

Posted: Tue 02 Jun 2015 1:34 am
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.

Re: PHP

Posted: Tue 14 Jul 2015 12:15 pm
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.

Re: PHP

Posted: Tue 14 Jul 2015 2:58 pm
by PaulMy
Very nice, well done.

Paul

Re: PHP

Posted: Sat 22 Aug 2015 5:20 am
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:

Re: PHP

Posted: Sat 22 Aug 2015 5:59 am
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.

Re: PHP

Posted: Sat 22 Aug 2015 8:41 am
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