I thought would it be possible to have a file with ALL webtags and let cumulus execute a CMD-file right after it has processed the web tags file?
If so one could use a web tags file with all data and let those insert to a MS SQL via command line. If that is executed after or right before the tags process?
I am asking this because I saw saratoga uses "realtime-extra.txt" which made me wonder if there are data which is NOT possible to gather/calculate from realtime.txt.
Does realtime.txt contain ALL important data or is something missing that is not possible to gather from other values like for instance "lux" which is possible to gather from Wm2 / 0.0079.
If I'm going to use cumulus in the future. I would like to show a webpage with data from MS SQL instead of using the "ftp-html-parser-upload" in cumulus. I rather use MS SQL to build my own page which is what I am more used to do.
A problem with this approach would be the "catch up" if computers goes down for maintenance. I guess catch up is not creating a realtime.txt for all those packets?
So bottom line question is. Does realtime.txt retain all possible data needed to calculate the others over time?
Welcome to the Cumulus Support forum.
Latest Cumulus MX V4 release 4.4.2 (build 4085) - 12 March 2025
Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 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
If you are posting a new Topic about an error or if you need help PLEASE read this first viewtopic.php?p=164080#p164080
Latest Cumulus MX V4 release 4.4.2 (build 4085) - 12 March 2025
Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 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
If you are posting a new Topic about an error or if you need help PLEASE read this first viewtopic.php?p=164080#p164080
Cumulus 1.9.4 to MS SQL.
- steve
- Cumulus Author
- Posts: 26672
- Joined: Mon 02 Jun 2008 6:49 pm
- Weather Station: None
- Operating System: None
- Location: Vienne, France
- Contact:
Re: Cumulus 1.9.4 to MS SQL.
The external command is executed just after the file processing. The definition of the realtime.txt file is in the help, and in the wiki - http://wiki.sandaysoft.com/a/Realtime.txt. It is only created from 'live' data, as are any other web files.
Steve
-
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: Cumulus 1.9.4 to MS SQL.
OK found the cumuluswebtags.txt. But I am in the wrong country it seems....
1. Had problèmes whit , and . which I could solve somehow with another user account in english in windows.
2. Then I had problem with these rows....: $ByMonthAppTempH[1]=---; // January. So I changed them all to this $ByMonthAppTempH[1]='---'; // January....with quotes.
3. After that I had problem with things like $WindRoseData=[0.0,439.2,0.0,0.0,0.0,0.0,40.3,68.2,245.0,20.4,0.0,0.0,0.0,0.0,0.0,0.0]; PHP says Parse error: syntax error, unexpected '[' in cumuluswebtags.php
That one I didn't solve so far. This made me believe I am missing something here?
I mean the missing quotes on 2 shouldnt possibly work in english local either, right?
Is there some setting in php.ini missing or what is causing this?
1. Had problèmes whit , and . which I could solve somehow with another user account in english in windows.
2. Then I had problem with these rows....: $ByMonthAppTempH[1]=---; // January. So I changed them all to this $ByMonthAppTempH[1]='---'; // January....with quotes.
3. After that I had problem with things like $WindRoseData=[0.0,439.2,0.0,0.0,0.0,0.0,40.3,68.2,245.0,20.4,0.0,0.0,0.0,0.0,0.0,0.0]; PHP says Parse error: syntax error, unexpected '[' in cumuluswebtags.php
That one I didn't solve so far. This made me believe I am missing something here?
I mean the missing quotes on 2 shouldnt possibly work in english local either, right?
Is there some setting in php.ini missing or what is causing this?
- steve
- Cumulus Author
- Posts: 26672
- Joined: Mon 02 Jun 2008 6:49 pm
- Weather Station: None
- Operating System: None
- Location: Vienne, France
- Contact:
Re: Cumulus 1.9.4 to MS SQL.
Someone else should be able to help you with that, I know very little about PHP.
Steve
-
water01
- Posts: 3670
- Joined: Sat 13 Aug 2011 9:33 am
- Weather Station: Ecowitt HP2551
- Operating System: Windows 10/11 64bit Synology NAS
- Location: Burnham-on-Sea
- Contact:
Re: Cumulus 1.9.4 to MS SQL.
Why don't you use ImportCumulusFile from here http://wiki.sandaysoft.com/a/Category:WebTools
It will import the Dayfile, multiple Realtime files (I keep a rolling 7 days worth) and the Month Files.
I know that Mark Crossley has an updated version that has some corrected rainfall fields in it as I have been testing it for him. He is (or was) about to update it to the Wiki.
It will import the Dayfile, multiple Realtime files (I keep a rolling 7 days worth) and the Month Files.
I know that Mark Crossley has an updated version that has some corrected rainfall fields in it as I have been testing it for him. He is (or was) about to update it to the Wiki.
- mcrossley
- Posts: 14388
- Joined: Thu 07 Jan 2010 9:44 pm
- Weather Station: Davis VP2/WLL
- Operating System: Bullseye Lite rPi
- Location: Wilmslow, Cheshire, UK
- Contact:
Re: Cumulus 1.9.4 to MS SQL.
'tis already therewater01 wrote:He is (or was) about to update it to the Wiki.
- mcrossley
- Posts: 14388
- Joined: Thu 07 Jan 2010 9:44 pm
- Weather Station: Davis VP2/WLL
- Operating System: Bullseye Lite rPi
- Location: Wilmslow, Cheshire, UK
- Contact:
Re: Cumulus 1.9.4 to MS SQL.
2. Yes, good practice to quote tags that may not produce the expected value.xayide wrote:OK found the cumuluswebtags.txt. But I am in the wrong country it seems....
1. Had problèmes whit , and . which I could solve somehow with another user account in english in windows.
2. Then I had problem with these rows....: $ByMonthAppTempH[1]=---; // January. So I changed them all to this $ByMonthAppTempH[1]='---'; // January....with quotes.
3. After that I had problem with things like $WindRoseData=[0.0,439.2,0.0,0.0,0.0,0.0,40.3,68.2,245.0,20.4,0.0,0.0,0.0,0.0,0.0,0.0]; PHP says Parse error: syntax error, unexpected '[' in cumuluswebtags.php
That one I didn't solve so far. This made me believe I am missing something here?
I mean the missing quotes on 2 shouldnt possibly work in english local either, right?
Is there some setting in php.ini missing or what is causing this?
3. Sounds like you have an older version of PHP that does not understand the [] array syntax, replace "[...]" with "array(...)"
-
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: Cumulus 1.9.4 to MS SQL.
Sounds just like what I need. I guess I missed it somehow. So I guess the importcumulsfile imports all important values even tho it doesn't have all the 800 values of the web tags it is possible to extract/calculate the missing ones from the values it does import?water01 wrote:Why don't you use ImportCumulusFile from here http://wiki.sandaysoft.com/a/Category:WebTools
It will import the Dayfile, multiple Realtime files (I keep a rolling 7 days worth) and the Month Files.
I know that Mark Crossley has an updated version that has some corrected rainfall fields in it as I have been testing it for him. He is (or was) about to update it to the Wiki.
Also is importcumulusfile secure against realtime data missing since it read the log files will importcumulusfile also reflect the data read during catchup?