Welcome to the Cumulus Support forum.

Latest Cumulus MX release v3.4.6 (build 3070) - 23 March 2020
Legacy Cumulus 1 release v1.9.4 (build 1099) - 28 November 2014

See the Wiki for downloading either version.

Cumulusutils

Other discussion about creating web sites for Cumulus that doesn't have a specific subforum

Moderator: daj

User avatar
HansR
Posts: 642
Joined: Sat 20 Oct 2012 6:53 am
Weather Station: Davis Vantage Pro 2+
Operating System: Raspbian GNU/Linux 10 (Buster)
Location: Wagenborgen (NL)
Contact:

Re: Cumulusutils

Post by HansR » Wed 18 Mar 2020 10:57 pm

@laulau:
@kocher:
The genealogy of those graphs is clear now, I'll give credit on the Graphs page.
https://meteo-wagenborgen.nl / Cumulus (3.4.3 b3067)
Davis Vantage Pro 2+ / Raspberry Pi 3 Model B Plus Rev 1.3
Raspbian GNU/Linux 10 (buster) / 4.19.97-v7+ armv7l
Mono JIT compiler version 6.8.0.105 (tarball Tue Feb 4 21:51:48 UTC 2020)

User avatar
HansR
Posts: 642
Joined: Sat 20 Oct 2012 6:53 am
Weather Station: Davis Vantage Pro 2+
Operating System: Raspbian GNU/Linux 10 (Buster)
Location: Wagenborgen (NL)
Contact:

Re: Cumulusutils

Post by HansR » Wed 25 Mar 2020 2:10 pm

Version 2.4.6 is online.

This is a maintenance release with some changes relating to ini-parameters.
If you are happy as you are, don't bother installing it. If you have a problem with jQuery interference, do install and set GeneratejQueryInclude to false.

To inform you of what is happening: I am currently working on a website which eventually will be part of CumulusUtils. The tool will always be for modular support for existing websites, but in the end it will provide a complete website, monkey-proof install, for Cumulus. Yes, some configuring can and will be there, but defaults should be fine. In case the user likes to use it as a start for a hands-on extension experience: always possible.

This is just a first step and you can preview that first step here. Stepwise improvement / refinement. The goal is to create an easy install where the user can focus on meteorology and climate instead of IT (web programming tools specifically). Don't know where it ends or whether I will achieve, but the goal is like a lighthouse: very good as a beacon, very bad as a harbour. ;)

@beteljuice: please note the following:
  • I moved rollout() to cumuluscharts. In the end, I may eventually write my own cumuluscharts with the json-files as input;
  • I used your graphfix_nl, but solar does not have the new output. Can't find why.
  • If you like to get your hands dirty, could you look at the scaling? That is not quite what it should be. The gauges don't scale so the report should go below that to give the dashboar more space. Especially when all dials are there. Finally the dials go below each other and the reporting disappears.
  • Does the 'Betel solar thing' have a javascript equivalent (has sun_button.php been rewritten to javascript? Ever?) Same holds for the @mcrossley script for the graphing of the sun.
As usual: any suggestion are welcome.
When I get bored with this, I'll work on the year/month graphs for rain and temperature with basic statistics .

Wishing you all the best with the corona virus, hope you can stay away from it.
https://meteo-wagenborgen.nl / Cumulus (3.4.3 b3067)
Davis Vantage Pro 2+ / Raspberry Pi 3 Model B Plus Rev 1.3
Raspbian GNU/Linux 10 (buster) / 4.19.97-v7+ armv7l
Mono JIT compiler version 6.8.0.105 (tarball Tue Feb 4 21:51:48 UTC 2020)

User avatar
beteljuice
Posts: 2878
Joined: Tue 09 Dec 2008 1:37 pm
Weather Station: None !
Operating System: ex XP SP3 - now W10 laptop grr
Location: Dudley, West Midlands, UK

Re: Cumulusutils

Post by beteljuice » Wed 25 Mar 2020 3:10 pm

@hans
I used your graphfix_nl, but solar does not have the new output. Can't find why.
Your test page is in English !!!, your 'normal' site charts page is working OK ?
If you like to get your hands dirty, could you look at the scaling? That is not quite what it should be. The gauges don't scale so the report should go below that to give the dashboar more space. Especially when all dials are there. Finally the dials go below each other and the reporting disappears.
I haven't a clue what you are asking me !
Do you mean the ss gauges, and what report ? - gauges aren't my thing.
(has sun_button.php been rewritten to javascript? Ever?)
The original was viewtopic.php?f=14&t=9235
... but no doubt there are alternatives about.
Image
......................Imagine, what you will KNOW tomorrow !

User avatar
HansR
Posts: 642
Joined: Sat 20 Oct 2012 6:53 am
Weather Station: Davis Vantage Pro 2+
Operating System: Raspbian GNU/Linux 10 (Buster)
Location: Wagenborgen (NL)
Contact:

Re: Cumulusutils

Post by HansR » Wed 25 Mar 2020 4:15 pm

beteljuice wrote:
Wed 25 Mar 2020 3:10 pm
Your test page is in English !!!, your 'normal' site charts page is working OK ?
Didn't realise the colour of the the solar graph was language dependent, the selection of the graphs is not :?
But fair enough, I now know where to look.
beteljuice wrote:
Wed 25 Mar 2020 3:10 pm
I haven't a clue what you are asking me !
Do you mean the ss gauges, and what report ? - gauges aren't my thing.
Responsiveness is what I mean.
But only look if you like the subject :mrgreen:
beteljuice wrote:
Wed 25 Mar 2020 3:10 pm
The original was viewtopic.php?f=14&t=9235
... but no doubt there are alternatives about.
Thanks, any alternatives always welcome.
It's especially the creating and manipulating of an image in javascript which I never did. Hints are welcome ;)
https://meteo-wagenborgen.nl / Cumulus (3.4.3 b3067)
Davis Vantage Pro 2+ / Raspberry Pi 3 Model B Plus Rev 1.3
Raspbian GNU/Linux 10 (buster) / 4.19.97-v7+ armv7l
Mono JIT compiler version 6.8.0.105 (tarball Tue Feb 4 21:51:48 UTC 2020)

User avatar
beteljuice
Posts: 2878
Joined: Tue 09 Dec 2008 1:37 pm
Weather Station: None !
Operating System: ex XP SP3 - now W10 laptop grr
Location: Dudley, West Midlands, UK

Re: Cumulusutils

Post by beteljuice » Wed 25 Mar 2020 5:49 pm

Didn't realise the colour of the the solar graph was language dependent,
It isn't - you are running two ever so slightly different cumuluscharts.js ;)

I'll pass on responsive - two many different ways and ideas ! :roll:
Image
......................Imagine, what you will KNOW tomorrow !

User avatar
HansR
Posts: 642
Joined: Sat 20 Oct 2012 6:53 am
Weather Station: Davis Vantage Pro 2+
Operating System: Raspbian GNU/Linux 10 (Buster)
Location: Wagenborgen (NL)
Contact:

Re: Cumulusutils

Post by HansR » Wed 25 Mar 2020 9:26 pm

beteljuice wrote:
Wed 25 Mar 2020 5:49 pm
It isn't - you are running two ever so slightly different cumuluscharts.js ;)
Aha... very sensitive software. I'll see what I can doe, otherwise it will have to wait until stabilisation of things.
I guess it's too turbulent now for the Betel tricks ;)
beteljuice wrote:
Wed 25 Mar 2020 5:49 pm
I'll pass on responsive - two many different ways and ideas ! :roll:
I understand. That was the reason for asking in the first place :lol:
https://meteo-wagenborgen.nl / Cumulus (3.4.3 b3067)
Davis Vantage Pro 2+ / Raspberry Pi 3 Model B Plus Rev 1.3
Raspbian GNU/Linux 10 (buster) / 4.19.97-v7+ armv7l
Mono JIT compiler version 6.8.0.105 (tarball Tue Feb 4 21:51:48 UTC 2020)

User avatar
mcrossley
Posts: 6172
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2
Operating System: Stretch Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Cumulusutils

Post by mcrossley » Wed 25 Mar 2020 9:35 pm

My sun chart is in server side PHP, if you wanted to do that client-side you'd probably have to use Canvas (bitmap drawing) or SVG (vector drawing) in JavaScript - or plot it in something like Highcharts.

User avatar
HansR
Posts: 642
Joined: Sat 20 Oct 2012 6:53 am
Weather Station: Davis Vantage Pro 2+
Operating System: Raspbian GNU/Linux 10 (Buster)
Location: Wagenborgen (NL)
Contact:

Re: Cumulusutils

Post by HansR » Wed 25 Mar 2020 10:49 pm

mcrossley wrote:
Wed 25 Mar 2020 9:35 pm
My sun chart is in server side PHP, if you wanted to do that client-side you'd probably have to use Canvas (bitmap drawing) or SVG (vector drawing) in JavaScript - or plot it in something like Highcharts.
Yes, OK. I want to remove the server side for this (only for data processing and module generation in my case, by design) and the PHP which I want to avoid. I am doing only C# and javascript (with some HTML of course). So I guessed it would be canvas or SVG, both of which I have no experience at all. So that's going to be fun then, I'll start googling some examples 8-) Thanks for the confirmation.
https://meteo-wagenborgen.nl / Cumulus (3.4.3 b3067)
Davis Vantage Pro 2+ / Raspberry Pi 3 Model B Plus Rev 1.3
Raspbian GNU/Linux 10 (buster) / 4.19.97-v7+ armv7l
Mono JIT compiler version 6.8.0.105 (tarball Tue Feb 4 21:51:48 UTC 2020)

User avatar
beteljuice
Posts: 2878
Joined: Tue 09 Dec 2008 1:37 pm
Weather Station: None !
Operating System: ex XP SP3 - now W10 laptop grr
Location: Dudley, West Midlands, UK

Re: Cumulusutils

Post by beteljuice » Thu 26 Mar 2020 2:19 am

Plenty of js scripts for Sun times about and should also be draw-able html5 / css3, but ...

"Danger! Will Robinson .... The fly in the ointment is the way javascript handles time.

It knows the visitors time, and it knows UTC time - but it doesn't know the site location time.
If you could guarantee that the 'site' was a standard difference to UTC and compensate for any DST then you're ready to roll.

Although there are few clever 'fiddles' around.
Image
......................Imagine, what you will KNOW tomorrow !

User avatar
beteljuice
Posts: 2878
Joined: Tue 09 Dec 2008 1:37 pm
Weather Station: None !
Operating System: ex XP SP3 - now W10 laptop grr
Location: Dudley, West Midlands, UK

Re: Cumulusutils

Post by beteljuice » Thu 26 Mar 2020 3:49 am

Image
......................Imagine, what you will KNOW tomorrow !

User avatar
HansR
Posts: 642
Joined: Sat 20 Oct 2012 6:53 am
Weather Station: Davis Vantage Pro 2+
Operating System: Raspbian GNU/Linux 10 (Buster)
Location: Wagenborgen (NL)
Contact:

Re: Cumulusutils

Post by HansR » Thu 26 Mar 2020 10:04 am

@beteljuice: Thnx!

I think I am all set for any calculation on time and celestial body. It's how to convert that to an image.
BTW: I will use suncalc.js library by Vladimir Agafonkin, based on Meeus' book. Never used it but it looks good ;)
https://meteo-wagenborgen.nl / Cumulus (3.4.3 b3067)
Davis Vantage Pro 2+ / Raspberry Pi 3 Model B Plus Rev 1.3
Raspbian GNU/Linux 10 (buster) / 4.19.97-v7+ armv7l
Mono JIT compiler version 6.8.0.105 (tarball Tue Feb 4 21:51:48 UTC 2020)

User avatar
beteljuice
Posts: 2878
Joined: Tue 09 Dec 2008 1:37 pm
Weather Station: None !
Operating System: ex XP SP3 - now W10 laptop grr
Location: Dudley, West Midlands, UK

Re: Cumulusutils

Post by beteljuice » Thu 26 Mar 2020 2:29 pm

BTW: I will use suncalc.js library by Vladimir Agafonkin
That's why you need to know how to play the violin :o

suncalc.js returns local PC times ....
Image
......................Imagine, what you will KNOW tomorrow !

User avatar
HansR
Posts: 642
Joined: Sat 20 Oct 2012 6:53 am
Weather Station: Davis Vantage Pro 2+
Operating System: Raspbian GNU/Linux 10 (Buster)
Location: Wagenborgen (NL)
Contact:

Re: Cumulusutils

Post by HansR » Thu 26 Mar 2020 3:46 pm

OK. :)
https://meteo-wagenborgen.nl / Cumulus (3.4.3 b3067)
Davis Vantage Pro 2+ / Raspberry Pi 3 Model B Plus Rev 1.3
Raspbian GNU/Linux 10 (buster) / 4.19.97-v7+ armv7l
Mono JIT compiler version 6.8.0.105 (tarball Tue Feb 4 21:51:48 UTC 2020)

User avatar
HansR
Posts: 642
Joined: Sat 20 Oct 2012 6:53 am
Weather Station: Davis Vantage Pro 2+
Operating System: Raspbian GNU/Linux 10 (Buster)
Location: Wagenborgen (NL)
Contact:

Re: Cumulusutils

Post by HansR » Tue 31 Mar 2020 12:55 pm

Please note that my almost finished new website has a new preview.
(NOTE: display and performance may be disturbed as it is also my test environment ;) )

Standing on the shoulders of all giants who did astronomy calculations before me, I took the challenge and created the sunDisk to be standard part of the site. User interface is the same but original coding is totally different using:
  • d3 library (I may start using that a lot more btw, incredible possibilities), which took most of the time;
  • suncalc by Vladimir Agafonkin.
Some bugs and the Moondisc to be done. Sun and Moondiscs btw take about as much time as the whole of the site, much involved :o
It is currently running specifically for my location and station and must be automatically configurable for any Cumulus station/location. I see it as a new standard website

The next steps to create before a first release - maybe a bit after that - will be:
  • Parametrisation / user configuration
  • Generation and uploading
  • Minifying
  • Minimisation of user interference i.e. seek not to manually install additional stuff
  • Easy updates without additional configuration
  • User menu's and easy additions which are maintained over updates.
As usual, all strings will be translatable, but I will not make use of existing translations.
I seek to minimise use of locale formatting, but I am not decided on this topic.

On the longer run, and of course after a first release, I continue with contents, reorganising and increasing nr of graphs and probably other things.
I am already dreaming of a configurable datainterface where users can select data on the fly and select their way of representation in tables or graphs. Dreaming..... ;)

Interesting exercise btw. and I guess 10 to 20 years ago not everything had been worked out from a coding point of view, as the technique was still under development. Twenty years ago, the tools I used did not even exist or were just starting. Really interesting to redo some of it.

Cheers, Hans
https://meteo-wagenborgen.nl / Cumulus (3.4.3 b3067)
Davis Vantage Pro 2+ / Raspberry Pi 3 Model B Plus Rev 1.3
Raspbian GNU/Linux 10 (buster) / 4.19.97-v7+ armv7l
Mono JIT compiler version 6.8.0.105 (tarball Tue Feb 4 21:51:48 UTC 2020)

sfws
Posts: 601
Joined: Fri 27 Jul 2012 11:29 am
Weather Station: Modified Fine Offset
Operating System: Win. 10 PC
Location: The Marches, UK

Re: Cumulusutils

Post by sfws » Tue 31 Mar 2020 1:18 pm

Hans, with you and BCJKiwi both working on new standard web sites, people are going to be spoilt for choice in future. That is good.

(Only possible bad aspect, this is all making my ancient web pages seem both very dull and very messy! Here is my current conditions page using large fonts to make number stand out... Oh dear I have spotted an error, more work for me...)
snapshot.PNG
You do not have the required permissions to view the files attached to this post.

Post Reply