Please read the posts in the Announcements section about the current status of Cumulus development now that I have retired

Please read this post before posting

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

Cumulus Realtime.txt Dashboard Template

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

Moderators: daj, TNETWeather

weatherist34
Posts: 564
Joined: Wed Apr 13, 2016 11:09 am
Weather Station: Oregon WMR300 + Weatherflow
Operating System: OSX High Sierra
Location: Istanbul
Contact:

Re: Cumulus Realtime.txt Dashboard Template

Postby weatherist34 » Thu Feb 22, 2018 3:11 pm

Toxic17 wrote:Brian. It looks like you've been very busy of late. Well done, must say the optimizations you are doing are great. Can wait for this new one to do my own tests.

I've noticed my load times are approx 5.5-6 seconds when doing gtmetrix tests, the vast majotiry of which is the WU poll : wuupdate.php which can take approx 4.8-5.5 seconds to complete.

is there any code that could be used to check the date of the last poll and if it was within a certain time frame (maybe listed in settings1.txt 30-60 minutes perhaps) then the poll is ignored and read from the cached txt files? Just a thought.

Thanks again for the template updates!


hello

i use fhe gtmetrix figures for when i make a change or look to improve it can be somewhat an obsession its a bit like tweaking a car engine to squeeze every last bit of performance.. anyway WU could that be path between your server and wu server? best way to approach that is revert to a cron job but the current wu file should only update 15 minutes in theory its based on a filemtime if older than 15 minutes.

also if you have access to the .htaccess file on your server then you can really make your server fly not just for this template but its a risky area if your not familiar some servers reject certain htaccess functions.

anyway as for the changes to the template it really is now almost all just css and php for all the visual elements and almost 20years of using css is beginning to really pay off in this template visually .

my other project half done is a smart home automation dashboard im doing for a neighbor who has gone nuts on home automation..

probably release the newer version in the morning i just finished adding the translations in as now only 12 languages are supported so makes life easier for checking..

have a nice evening and i see that beast from the east is about to sweep across europe unfortunately it doesnt reach here it stalls in the balkans north of turkey at best we may get a flake or two..

User avatar
Toxic17
Posts: 717
Joined: Mon May 19, 2014 10:45 pm
Weather Station: Davis VPro2 Plus
Operating System: Deb 9.3 Stretch
Location: Bangor, NI
Contact:

Re: Cumulus Realtime.txt Dashboard Template

Postby Toxic17 » Thu Feb 22, 2018 3:40 pm

Thanks Brian, though when I run the gtmetrix again and again the waterfall tab shows it is running the wuupdater.php constantly and this is the file taking 6 seconds. I guess not all of the links within this file have a 15minute check on them and thus are run everytime the file is polled whihc is probably slowing down load speeds.

infact removing this file for a test my load time was 3.3 seconds and not 6 seconds from GTMetrix

btw the http://services.swpc.noaa.gov/products/ ... x-dst.json link can be https:// if you did not already know.
Regards Simon

https://www.conligwx.org
https://twitter.com/conligwx
Davis Vantage Pro2+ - CumulusMX v3.0.0 (build 3043) + Saratoga/PWS
Image

User avatar
laulau
Posts: 529
Joined: Tue Oct 13, 2009 10:52 pm
Weather Station: WeatherDuino Pro2
Operating System: Win 7
Location: Meyenheim, Alsace, FR
Contact:

Re: Cumulus Realtime.txt Dashboard Template

Postby laulau » Thu Feb 22, 2018 4:43 pm

weatherist34 wrote:Good evening

lots of requests for mysql support so I have now included tony's HRvista mysql version in the download (many thanks tony), i have also added all the updated modules to this version . it is appropriately named Version:Dashboard CU-HRV-MYSQL

*please note i can not offer any personal support for this version as I have no understanding of how this is connected with CUMULUS software, i strongly recommend if you have any issues please liaise with users on this forum thread.

available via https://weather34.com/homeweatherstation/


Hi i'm not able to find the HRvista mysql version (Dashboard CU-HRV-MYSQL).
Is it no more available ?
Laurent

Image

weatherist34
Posts: 564
Joined: Wed Apr 13, 2016 11:09 am
Weather Station: Oregon WMR300 + Weatherflow
Operating System: OSX High Sierra
Location: Istanbul
Contact:

Re: Cumulus Realtime.txt Dashboard Template

Postby weatherist34 » Thu Feb 22, 2018 6:02 pm

Toxic17 wrote:Thanks Brian, though when I run the gtmetrix again and again the waterfall tab shows it is running the wuupdater.php constantly and this is the file taking 6 seconds. I guess not all of the links within this file have a 15minute check on them and thus are run everytime the file is polled whihc is probably slowing down load speeds.

infact removing this file for a test my load time was 3.3 seconds and not 6 seconds from GTMetrix

btw the http://services.swpc.noaa.gov/products/ ... x-dst.json link can be https:// if you did not already know.


thanks i’ll will update the script to https... and as for WU would love to get rid of it if i could just find a good accurate altermative tried them all now ... i can revert the template to use a cron job but not in a position to deal with support anout cron jons you would be suprised how many users no fault of there own have never heard of a cron job..

hrv is in the all version download.. it doesnt recieve the updates like the standard cumulus version .

Steepleian
Posts: 89
Joined: Sat Mar 29, 2014 7:33 am
Weather Station: Ambient WS-1001
Operating System: Debian 9
Location: Steeple Claydon
Contact:

Re: Cumulus Realtime.txt Dashboard Template

Postby Steepleian » Fri Feb 23, 2018 10:24 am

weatherist34 wrote:
hello

i use fhe gtmetrix figures for when i make a change or look to improve it can be somewhat an obsession its a bit like tweaking a car engine to squeeze every last bit of performance.. anyway WU could that be path between your server and wu server? best way to approach that is revert to a cron job but the current wu file should only update 15 minutes in theory its based on a filemtime if older than 15 minutes.

also if you have access to the .htaccess file on your server then you can really make your server fly not just for this template but its a risky area if your not familiar some servers reject certain htaccess functions.

anyway as for the changes to the template it really is now almost all just css and php for all the visual elements and almost 20years of using css is beginning to really pay off in this template visually .

my other project half done is a smart home automation dashboard im doing for a neighbor who has gone nuts on home automation..

probably release the newer version in the morning i just finished adding the translations in as now only 12 languages are supported so makes life easier for checking..

have a nice evening and i see that beast from the east is about to sweep across europe unfortunately it doesnt reach here it stalls in the balkans north of turkey at best we may get a flake or two..


Hello Brian,

Have just installed the 23 Feb update. As usual I am totally impressed, thank you for your hard work once again. I have been playing around with a WeeWX generated mysql database for weeks to generate charts to replace the WU ones and you completely re-write the template just like that! I guess the answer lies in the 20yrs experience of using CSS.

I'm getting set for the beast coming my way so getting ready for frozen rain gauges etc.

Have a good weekend,
Ian

weatherist34
Posts: 564
Joined: Wed Apr 13, 2016 11:09 am
Weather Station: Oregon WMR300 + Weatherflow
Operating System: OSX High Sierra
Location: Istanbul
Contact:

Re: Cumulus Realtime.txt Dashboard Template

Postby weatherist34 » Fri Feb 23, 2018 10:41 am

Steepleian wrote:
weatherist34 wrote:
hello

i use fhe gtmetrix figures for when i make a change or look to improve it can be somewhat an obsession its a bit like tweaking a car engine to squeeze every last bit of performance.. anyway WU could that be path between your server and wu server? best way to approach that is revert to a cron job but the current wu file should only update 15 minutes in theory its based on a filemtime if older than 15 minutes.

also if you have access to the .htaccess file on your server then you can really make your server fly not just for this template but its a risky area if your not familiar some servers reject certain htaccess functions.

anyway as for the changes to the template it really is now almost all just css and php for all the visual elements and almost 20years of using css is beginning to really pay off in this template visually .

my other project half done is a smart home automation dashboard im doing for a neighbor who has gone nuts on home automation..

probably release the newer version in the morning i just finished adding the translations in as now only 12 languages are supported so makes life easier for checking..

have a nice evening and i see that beast from the east is about to sweep across europe unfortunately it doesnt reach here it stalls in the balkans north of turkey at best we may get a flake or two..


Hello Brian,

Have just installed the 23 Feb update. As usual I am totally impressed, thank you for your hard work once again. I have been playing around with a WeeWX generated mysql database for weeks to generate charts to replace the WU ones and you completely re-write the template just like that! I guess the answer lies in the 20yrs experience of using CSS.

I'm getting set for the beast coming my way so getting ready for frozen rain gauges etc.

Have a good weekend,
Ian


many thanks for the compliment your too kind ... 20 years almost unbelievable almost 15 years of Dreamweaver as the tool ! these days found myself a MAC app called Coda 2 offers far more error highlights in latest PHP 7+..

hopefully you found the menu a bit more slicker (very slim in terms of code) and easy to customise (in theory) . not sure it was "just like that" just get an inspiration or idea as usual when stuck in traffic ..

as for mysql stuff probably see the whole chart system change been testing with this http://www.chartjs.org/samples/latest/c ... tyles.html on a home automation dashboard I'm doing far more slimmer and versatile so something to make it even a bit more of better user experience all-round . current ones are ok but restricted by the licence terms and chartsJs is an open source project https://github.com/chartjs/Chart.js

as for the beast from the east well this is the first year in 11 years here in istanbul I have not seen any snow on the ground here, last year was epic with over 75cm on the ground it just bucketed down for three days this year nothing but a few flakes... wife is very unhappy as she gets a few extra days off work as her school shuts down as Istanbul is a bit notorious for its traffic and infrastructure ..shuts down for safety of the children..

anyway enjoy the changes...brian

User avatar
Toxic17
Posts: 717
Joined: Mon May 19, 2014 10:45 pm
Weather Station: Davis VPro2 Plus
Operating System: Deb 9.3 Stretch
Location: Bangor, NI
Contact:

Re: Cumulus Realtime.txt Dashboard Template

Postby Toxic17 » Fri Feb 23, 2018 11:15 am

Hi Brian

Great work on the latest version. I'm running CU-X8 Beta which is 1.2 seconds faster in loading (using WU) than the last CU-X8 Beta

the pure css improvements have paid off! :clap:
Regards Simon

https://www.conligwx.org
https://twitter.com/conligwx
Davis Vantage Pro2+ - CumulusMX v3.0.0 (build 3043) + Saratoga/PWS
Image

weatherist34
Posts: 564
Joined: Wed Apr 13, 2016 11:09 am
Weather Station: Oregon WMR300 + Weatherflow
Operating System: OSX High Sierra
Location: Istanbul
Contact:

Re: Cumulus Realtime.txt Dashboard Template

Postby weatherist34 » Fri Feb 23, 2018 11:43 am

Toxic17 wrote:Hi Brian

Great work on the latest version. I'm running CU-X8 Beta which is 1.2 seconds faster in loading (using WU) than the last CU-X8 Beta

the pure css improvements have paid off! :clap:


thank you !

i have a general cumulus question

does cumulus have an option for http request ?? in meteobridge there are options to call a url (http request) at set times or intervals like every 15 minutes or run a http request at a specific time say 23:45 .

if so then basically i can remove the wuupdate.php (cron alternative) and therefore it simulates a cron job.. i do this in meteobridge for numerous automated functions so even if website is not open everything is automated in the background this would bring down the time even more.

if not i leave it as it is ...

ps i like what steepleian has done with his menu in breaking up into visible user areas...

User avatar
Toxic17
Posts: 717
Joined: Mon May 19, 2014 10:45 pm
Weather Station: Davis VPro2 Plus
Operating System: Deb 9.3 Stretch
Location: Bangor, NI
Contact:

Re: Cumulus Realtime.txt Dashboard Template

Postby Toxic17 » Fri Feb 23, 2018 12:27 pm

weatherist34 wrote:thank you !

i have a general cumulus question

does cumulus have an option for http request ?? in meteobridge there are options to call a url (http request) at set times or intervals like every 15 minutes or run a http request at a specific time say 23:45 .

if so then basically i can remove the wuupdate.php (cron alternative) and therefore it simulates a cron job.. i do this in meteobridge for numerous automated functions so even if website is not open everything is automated in the background this would bring down the time even more.

if not i leave it as it is ...

ps i like what steepleian has done with his menu in breaking up into visible user areas...


Brian.

CumulusMX does have a Custom HTTP setting yes, whether this can be used in this way I dont know.

In my case CumulusMX is not on the same system as my Web Server, My Webserver is a QNAP NAS, which I can call cron jobs if I want too. though if CumulusMX processed this I would then have to FTP the values to my webserver. I may as well use a cron job for that. I've attached a screenshot of the fields. Perhaps someone with more knowledge about the fields could comment.

Personally I'm good with the full loading times now times now though I guess you could add some sort of switch for either pws to handle the WU stuff or disable it to allow CumulusMX/Cron to handle it perhaps?

weatherist34 wrote:ps i like what steepleian has done with his menu in breaking up into visible user areas...


Yes looks nice. Though I think tbh the admin setting on a web site should be hidden or maybe made visible only to certain or local IP's
You do not have the required permissions to view the files attached to this post.
Regards Simon

https://www.conligwx.org
https://twitter.com/conligwx
Davis Vantage Pro2+ - CumulusMX v3.0.0 (build 3043) + Saratoga/PWS
Image

User avatar
laulau
Posts: 529
Joined: Tue Oct 13, 2009 10:52 pm
Weather Station: WeatherDuino Pro2
Operating System: Win 7
Location: Meyenheim, Alsace, FR
Contact:

Re: Cumulus Realtime.txt Dashboard Template

Postby laulau » Fri Feb 23, 2018 3:37 pm

Hi,
How can i get or create 2017.txt or csv files for the xtracharts ?
Thanks
Laurent

Image

User avatar
laulau
Posts: 529
Joined: Tue Oct 13, 2009 10:52 pm
Weather Station: WeatherDuino Pro2
Operating System: Win 7
Location: Meyenheim, Alsace, FR
Contact:

Re: Cumulus Realtime.txt Dashboard Template

Postby laulau » Fri Feb 23, 2018 4:35 pm

Hi again,
Is the "norain" icon voluntary no more displayed with 0.0 mm of rain ?
CU-X5
norainCU5.JPG


CU-X7
norainCU7.JPG


Thanks
You do not have the required permissions to view the files attached to this post.
Laurent

Image

Steepleian
Posts: 89
Joined: Sat Mar 29, 2014 7:33 am
Weather Station: Ambient WS-1001
Operating System: Debian 9
Location: Steeple Claydon
Contact:

Re: Cumulus Realtime.txt Dashboard Template

Postby Steepleian » Fri Feb 23, 2018 5:08 pm

weatherist34 wrote:thank you !

i have a general cumulus question

does cumulus have an option for http request ?? in meteobridge there are options to call a url (http request) at set times or intervals like every 15 minutes or run a http request at a specific time say 23:45 .

if so then basically i can remove the wuupdate.php (cron alternative) and therefore it simulates a cron job.. i do this in meteobridge for numerous automated functions so even if website is not open everything is automated in the background this would bring down the time even more.

if not i leave it as it is ...

ps i like what steepleian has done with his menu in breaking up into visible user areas...


Thank you for the menu compliment - praise from the master has made my day! Yes it was very easy to do.

Simon, I had the dilemma about the setting visibility but decided to go with it for the time being.

I have also today cracked getting at the weewx database and generating csv files to produce mysql charts. Not made them visible yet as I need to generate more data to make them useful. Not the most elegant solution under the hood but it they work fairly smoothly. Just one issue I am struggling with is converting an epoch date in a text field to %H:%i format. I can only get it with seconds as well which makes the chart x-axis look a little cluttered. Its frustrating the hell out of me so if anybody out there has a pointer would be very grateful.

Ian

weatherist34
Posts: 564
Joined: Wed Apr 13, 2016 11:09 am
Weather Station: Oregon WMR300 + Weatherflow
Operating System: OSX High Sierra
Location: Istanbul
Contact:

Re: Cumulus Realtime.txt Dashboard Template

Postby weatherist34 » Fri Feb 23, 2018 5:08 pm

Toxic17 wrote:
weatherist34 wrote:thank you !

i have a general cumulus question

does cumulus have an option for http request ?? in meteobridge there are options to call a url (http request) at set times or intervals like every 15 minutes or run a http request at a specific time say 23:45 .

if so then basically i can remove the wuupdate.php (cron alternative) and therefore it simulates a cron job.. i do this in meteobridge for numerous automated functions so even if website is not open everything is automated in the background this would bring down the time even more.

if not i leave it as it is ...

ps i like what steepleian has done with his menu in breaking up into visible user areas...


Brian.

CumulusMX does have a Custom HTTP setting yes, whether this can be used in this way I dont know.

In my case CumulusMX is not on the same system as my Web Server, My Webserver is a QNAP NAS, which I can call cron jobs if I want too. though if CumulusMX processed this I would then have to FTP the values to my webserver. I may as well use a cron job for that. I've attached a screenshot of the fields. Perhaps someone with more knowledge about the fields could comment.

Personally I'm good with the full loading times now times now though I guess you could add some sort of switch for either pws to handle the WU stuff or disable it to allow CumulusMX/Cron to handle it perhaps?

weatherist34 wrote:ps i like what steepleian has done with his menu in breaking up into visible user areas...


Yes looks nice. Though I think tbh the admin setting on a web site should be hidden or maybe made visible only to certain or local IP's


that looks exactly what im on about , is it cumulusmx only ?

weatherist34
Posts: 564
Joined: Wed Apr 13, 2016 11:09 am
Weather Station: Oregon WMR300 + Weatherflow
Operating System: OSX High Sierra
Location: Istanbul
Contact:

Re: Cumulus Realtime.txt Dashboard Template

Postby weatherist34 » Fri Feb 23, 2018 5:13 pm

Steepleian wrote:
weatherist34 wrote:thank you !

i have a general cumulus question

does cumulus have an option for http request ?? in meteobridge there are options to call a url (http request) at set times or intervals like every 15 minutes or run a http request at a specific time say 23:45 .

if so then basically i can remove the wuupdate.php (cron alternative) and therefore it simulates a cron job.. i do this in meteobridge for numerous automated functions so even if website is not open everything is automated in the background this would bring down the time even more.

if not i leave it as it is ...

ps i like what steepleian has done with his menu in breaking up into visible user areas...


Thank you for the menu compliment - praise from the master has made my day! Yes it was very easy to do.

Simon, I had the dilemma about the setting visibility but decided to go with it for the time being.

I have also today cracked getting at the weewx database and generating csv files to produce mysql charts. Not made them visible yet as I need to generate more data to make them useful. Not the most elegant solution under the hood but it they work fairly smoothly. Just one issue I am struggling with is converting an epoch date in a text field to %H:%i format. I can only get it with seconds as well which makes the chart x-axis look a little cluttered. Its frustrating the hell out of me so if anybody out there has a pointer would be very grateful.

Ian


svg are editable for the text

go to css folder then rain folder then edit the marker.svg

<text x="31.35" y="30.052" transform="translate(0.59293 28.9365) scale(4.16667)">Recorded</text><text x="41.355" y="42.445" transform="translate(-5.59293 28.9365) scale(4.16667)">T<tspan x="47.355 54.029" y="42.445 42.445">od</tspan>ay</text>

ill look at the month translation output next week .

Steepleian
Posts: 89
Joined: Sat Mar 29, 2014 7:33 am
Weather Station: Ambient WS-1001
Operating System: Debian 9
Location: Steeple Claydon
Contact:

Re: Cumulus Realtime.txt Dashboard Template

Postby Steepleian » Fri Feb 23, 2018 5:21 pm

weatherist34 wrote:
Steepleian wrote:
weatherist34 wrote:thank you !

i have a general cumulus question

does cumulus have an option for http request ?? in meteobridge there are options to call a url (http request) at set times or intervals like every 15 minutes or run a http request at a specific time say 23:45 .

if so then basically i can remove the wuupdate.php (cron alternative) and therefore it simulates a cron job.. i do this in meteobridge for numerous automated functions so even if website is not open everything is automated in the background this would bring down the time even more.

if not i leave it as it is ...

ps i like what steepleian has done with his menu in breaking up into visible user areas...


Thank you for the menu compliment - praise from the master has made my day! Yes it was very easy to do.

Simon, I had the dilemma about the setting visibility but decided to go with it for the time being.

I have also today cracked getting at the weewx database and generating csv files to produce mysql charts. Not made them visible yet as I need to generate more data to make them useful. Not the most elegant solution under the hood but it they work fairly smoothly. Just one issue I am struggling with is converting an epoch date in a text field to %H:%i format. I can only get it with seconds as well which makes the chart x-axis look a little cluttered. Its frustrating the hell out of me so if anybody out there has a pointer would be very grateful.

Ian


svg are editable for the text

go to css folder then rain folder then edit the marker.svg

<text x="31.35" y="30.052" transform="translate(0.59293 28.9365) scale(4.16667)">Recorded</text><text x="41.355" y="42.445" transform="translate(-5.59293 28.9365) scale(4.16667)">T<tspan x="47.355 54.029" y="42.445 42.445">od</tspan>ay</text>

ill look at the month translation output next week .


Thanks Brian. It just did not occur to me to adjust it this way. I've been playing around with Phpmyadmin to create php queries.


Return to “Web site - General”

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 3 guests