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 4019) - 03 April 2024
Legacy Cumulus 1 release 1.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
Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024
Cumulus MX V4 beta test release 4.0.0 (build 4019) - 03 April 2024
Legacy Cumulus 1 release 1.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
Inserting results from external measurement devices into the CumulusMX output files
Moderator: mcrossley
-
- Posts: 54
- Joined: Tue 15 May 2012 8:50 pm
- Weather Station: WH 1080
- Operating System: Windows 8.1 and Raspbian
- Location: Assling
Inserting results from external measurement devices into the CumulusMX output files
Hi there,
I have extra HW now (Homematic), which provides a solar radiation measurement result every 3 minutes (in "Flux").
Now I would like to feed this external measurement results somehow into the result files of CumulusMX so that these will be shown in my website
as if my weather station would provide this (which the WH1080 doesn't at all).
There are certainly more than one possibilities to get that. Maybe someone knows, which one would be best ?
Thanks for any hint.
best regards,
Wilfried
I have extra HW now (Homematic), which provides a solar radiation measurement result every 3 minutes (in "Flux").
Now I would like to feed this external measurement results somehow into the result files of CumulusMX so that these will be shown in my website
as if my weather station would provide this (which the WH1080 doesn't at all).
There are certainly more than one possibilities to get that. Maybe someone knows, which one would be best ?
Thanks for any hint.
best regards,
Wilfried
-
- Posts: 54
- Joined: Tue 15 May 2012 8:50 pm
- Weather Station: WH 1080
- Operating System: Windows 8.1 and Raspbian
- Location: Assling
Re: Inserting results from external measurement devices into the CumulusMX output files
OK, maybe I have been to vague. Here are some specific infos to the problem I'm trying to resolve:
One possibility would be to write an independent Linux script (bash?) which should run every 15 min.
The only task of this script would be to search for the current log file in use by CumulusMX, search for the last entry of CumuluMX and overwrite some values in this line (the solar values, which are 0 by default in my case).
The question is:
Will CumulusMX take control over this log file only for the short moment, when it writes to it and will CumulusMX close the access to this file whenever it doesn't need to write to it ?
If yes, the next questions come to my mind:
What happens in the case of a conflict, i.e. if both programs try to get hold of the log file, will they queue or will one of the two loose ?
How about the risk of messing up the whole Linux file system by doing such things?
Any comments to that approach ?
thanks a lot.
regards,
Wilfried
One possibility would be to write an independent Linux script (bash?) which should run every 15 min.
The only task of this script would be to search for the current log file in use by CumulusMX, search for the last entry of CumuluMX and overwrite some values in this line (the solar values, which are 0 by default in my case).
The question is:
Will CumulusMX take control over this log file only for the short moment, when it writes to it and will CumulusMX close the access to this file whenever it doesn't need to write to it ?
If yes, the next questions come to my mind:
What happens in the case of a conflict, i.e. if both programs try to get hold of the log file, will they queue or will one of the two loose ?
How about the risk of messing up the whole Linux file system by doing such things?
Any comments to that approach ?
thanks a lot.
regards,
Wilfried
- ConligWX
- Posts: 1631
- Joined: Mon 19 May 2014 10:45 pm
- Weather Station: Davis vPro2+ w/DFARS + AirLink
- Operating System: Ubuntu 22.04 LTS
- Location: Bangor, NI
- Contact:
Re: Inserting results from external measurement devices into the CumulusMX output files
why does it have to be imported into cumulusmx data file?
if this vaule is written to any file surely you can somehow import that into a webpage via some html/php code? just ftp the file to the webserver if it is created on the cumulus server. have the web page then read that value.
if this vaule is written to any file surely you can somehow import that into a webpage via some html/php code? just ftp the file to the webserver if it is created on the cumulus server. have the web page then read that value.
Regards Simon
https://www.conligwx.org - @conligwx
Davis Vantage Pro2 Plus with Daytime FARS • WeatherLink Live • Davis AirLink • PurpleAir • CumulusMX v4.0.0
https://www.conligwx.org - @conligwx
Davis Vantage Pro2 Plus with Daytime FARS • WeatherLink Live • Davis AirLink • PurpleAir • CumulusMX v4.0.0
-
- Posts: 54
- Joined: Tue 15 May 2012 8:50 pm
- Weather Station: WH 1080
- Operating System: Windows 8.1 and Raspbian
- Location: Assling
Re: Inserting results from external measurement devices into the CumulusMX output files
High Toxic17,
thanks for the comment - I thought about that already, too.
The real reason for not doing it this way is: I don't have a clue about HTML / website programming.
That's the reason, why I'm using Steve's original web-Pages with only minor modifications (which have been hard enough for me either).
I think, the values of the CumulusMX log file are used in several web-pages in several different views (now, today, trends etc...) which all would have to be modified properly. This is - at the moment - far beyond my knowledge.
My thoughts in detail:
What I understood so far (from the Wiki etc.) is, that the template files are taken every x Minutes by CumulusMX directly on my Raspberry, filled up with the values coming from the log files. By this, the final web files are created which will then be uploaded to my website (also by CumulusMX). Right?
Since I don't have a php capable website no further processing can be done there. Right?
So I don't see a possibility to insert my own values in the final web files on the web server. ?!?
But as I said, I only know very little about these things and might be wrong.
regards,
Wilfried
thanks for the comment - I thought about that already, too.
The real reason for not doing it this way is: I don't have a clue about HTML / website programming.
That's the reason, why I'm using Steve's original web-Pages with only minor modifications (which have been hard enough for me either).
I think, the values of the CumulusMX log file are used in several web-pages in several different views (now, today, trends etc...) which all would have to be modified properly. This is - at the moment - far beyond my knowledge.
My thoughts in detail:
What I understood so far (from the Wiki etc.) is, that the template files are taken every x Minutes by CumulusMX directly on my Raspberry, filled up with the values coming from the log files. By this, the final web files are created which will then be uploaded to my website (also by CumulusMX). Right?
Since I don't have a php capable website no further processing can be done there. Right?
So I don't see a possibility to insert my own values in the final web files on the web server. ?!?
But as I said, I only know very little about these things and might be wrong.
regards,
Wilfried
- PaulMy
- Posts: 3849
- 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: Inserting results from external measurement devices into the CumulusMX output files
Can you import your extra data into another template file, using one of the xxxT.htm and modify it to suit if you have difficulty to begin from scratch, then have Cumulus update that file through the extra files setting and only FTP, not process the file.
like http://www.komokaweather.com/weather/now_komoka.htm
Paul
like http://www.komokaweather.com/weather/now_komoka.htm
Paul
VP2+
C1 www.komokaweather.com/komokaweather-ca
MX https://komokaweather.com/cumulusmx/index.htm /index.html /index.php
MX https://komokaweather.com/cumulusmxwll/index.htm /index.html /index.php
MX https:// komokaweather.com/cumulusmx4/index.htm
C1 www.komokaweather.com/komokaweather-ca
MX https://komokaweather.com/cumulusmx/index.htm /index.html /index.php
MX https://komokaweather.com/cumulusmxwll/index.htm /index.html /index.php
MX https:// komokaweather.com/cumulusmx4/index.htm
- ConligWX
- Posts: 1631
- Joined: Mon 19 May 2014 10:45 pm
- Weather Station: Davis vPro2+ w/DFARS + AirLink
- Operating System: Ubuntu 22.04 LTS
- Location: Bangor, NI
- Contact:
Re: Inserting results from external measurement devices into the CumulusMX output files
Wilfried
The default template files are html files with "webtags" in them. CumulusMX "Processes" these if require and creates a new htm file and replaces the webtag with the value and then moved the html files to the webserver.
you should be able to add some code into the template file you need this value to appear in. the code would read a textfile or whatever file you are creating for the solar radiation measurement.
Not sure if Cumulus could process this value directly, but I was thinking more that you setup this solar radiation measurement file to be ftp'd to the webserver.
the html files are transferred to the webserver anyway, but the piece of code you need would already be in the template and processed for Cumulus webtags.
once it is on your webserver, when ever a browser is opened on the site it will then read the html file, and pickup the value from the ftp'd file.
Well thats my thinking anyway. Please feel free to help guys or correct me guys. I'm not the one for writing some code to pickup contents of a file to be displayed on a webpage however. though this is possible.
The default template files are html files with "webtags" in them. CumulusMX "Processes" these if require and creates a new htm file and replaces the webtag with the value and then moved the html files to the webserver.
you should be able to add some code into the template file you need this value to appear in. the code would read a textfile or whatever file you are creating for the solar radiation measurement.
Not sure if Cumulus could process this value directly, but I was thinking more that you setup this solar radiation measurement file to be ftp'd to the webserver.
the html files are transferred to the webserver anyway, but the piece of code you need would already be in the template and processed for Cumulus webtags.
once it is on your webserver, when ever a browser is opened on the site it will then read the html file, and pickup the value from the ftp'd file.
Well thats my thinking anyway. Please feel free to help guys or correct me guys. I'm not the one for writing some code to pickup contents of a file to be displayed on a webpage however. though this is possible.
Regards Simon
https://www.conligwx.org - @conligwx
Davis Vantage Pro2 Plus with Daytime FARS • WeatherLink Live • Davis AirLink • PurpleAir • CumulusMX v4.0.0
https://www.conligwx.org - @conligwx
Davis Vantage Pro2 Plus with Daytime FARS • WeatherLink Live • Davis AirLink • PurpleAir • CumulusMX v4.0.0
-
- Posts: 54
- Joined: Tue 15 May 2012 8:50 pm
- Weather Station: WH 1080
- Operating System: Windows 8.1 and Raspbian
- Location: Assling
Re: Inserting results from external measurement devices into the CumulusMX output files
Thanks a lot for the quick answers and the interesting hints, guys
Well, it looks as if there is no way around digging into the html files and modifying those appropriately one way or the other (which is at the moment well above my knowledge)
So I have to and will learn more about html and java script basics, which might take a while ...
One additional possibility I thought about ... CumulusMX offers basically the integration of "extra sensors" ... reading the documentation I never understood the details good enough to make use of them. Could that be a possibility ?
regards,
Wilfried
Well, it looks as if there is no way around digging into the html files and modifying those appropriately one way or the other (which is at the moment well above my knowledge)
So I have to and will learn more about html and java script basics, which might take a while ...
One additional possibility I thought about ... CumulusMX offers basically the integration of "extra sensors" ... reading the documentation I never understood the details good enough to make use of them. Could that be a possibility ?
regards,
Wilfried
- steve
- Cumulus Author
- Posts: 26701
- Joined: Mon 02 Jun 2008 6:49 pm
- Weather Station: None
- Operating System: None
- Location: Vienne, France
- Contact:
Re: Inserting results from external measurement devices into the CumulusMX output files
"Extra sensors" are those provided as optional extras by the stations which Cumulus supports, and data from them is read from the station along with the standard data.
The only sensors which Cumulus will read in addition to the sensors provded by the configured station are the RG-11 rain sensor, and the Blake-Larsen sun recorder, which provides a count of sunshine hours.
The only sensors which Cumulus will read in addition to the sensors provded by the configured station are the RG-11 rain sensor, and the Blake-Larsen sun recorder, which provides a count of sunshine hours.
Steve
-
- Posts: 54
- Joined: Tue 15 May 2012 8:50 pm
- Weather Station: WH 1080
- Operating System: Windows 8.1 and Raspbian
- Location: Assling
Re: Inserting results from external measurement devices into the CumulusMX output files
OK, thanks, Steve
So - as I supposed already - also this is not an alternative to handling my solar values independently from CumulusMX by modifying the HTML files ...
OK, I'll do my very best
So - as I supposed already - also this is not an alternative to handling my solar values independently from CumulusMX by modifying the HTML files ...
OK, I'll do my very best