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
Extra logfile with latest values.
Moderator: mcrossley
-
- Posts: 33
- Joined: Mon 07 Aug 2017 12:15 pm
- Weather Station: WH1080
- Operating System: Raspbian Jessie
Extra logfile with latest values.
Hi,
I would like to use a logfile stored local which consists of the last values read from the station. I want to use my smarthome system. FHEM if some of you know it. FHEM can read this file regularly.
How must I setup Cumulus to write a realtimevalue.txt? Is it possible?
Greetings
Martin
I would like to use a logfile stored local which consists of the last values read from the station. I want to use my smarthome system. FHEM if some of you know it. FHEM can read this file regularly.
How must I setup Cumulus to write a realtimevalue.txt? Is it possible?
Greetings
Martin
- steve
- Cumulus Author
- Posts: 26701
- Joined: Mon 02 Jun 2008 6:49 pm
- Weather Station: None
- Operating System: None
- Location: Vienne, France
- Contact:
Re: Extra logfile with latest values.
You can create a template file using web tags and get Cumulus to process it at each ‘realtime’ update (or at each ‘normal’ update if that’s appropriate. Normally intended for web uploading, but equally valid to process locally without uploading to a web site. More details in the wiki in the web site section.
Note that this method would not create a log as such, it would overwrite the file at each update, but it sounds like that’s what you want anyway.
Note that this method would not create a log as such, it would overwrite the file at each update, but it sounds like that’s what you want anyway.
Steve
-
- Posts: 33
- Joined: Mon 07 Aug 2017 12:15 pm
- Weather Station: WH1080
- Operating System: Raspbian Jessie
Re: Extra logfile with latest values.
This is exactly what I'm looking for. It sounds like the realtimeT.htm for the ftp upload. But I didn't get the point where to setup that in Cumulusmx. In extra web files? How to do this? A small example would help.steve wrote:Note that this method would not create a log as such, it would overwrite the file at each update, but it sounds like that’s what you want anyway.
Thanks a lot
Martin
-
- Posts: 1183
- Joined: Fri 27 Jul 2012 11:29 am
- Weather Station: Chas O, Maplin N96FY, N25FR
- Operating System: rPi 3B+ with Buster (full)
Re: Extra logfile with latest values.
Not sure if you have seen this in the Wiki http://wiki.sandaysoft.com/a/Realtime.t ... ng_webtags
Others who use MX might chip in re your other questions.
Others who use MX might chip in re your other questions.
-
- Posts: 33
- Joined: Mon 07 Aug 2017 12:15 pm
- Weather Station: WH1080
- Operating System: Raspbian Jessie
Re: Extra logfile with latest values.
Ok, the thing with the webtags I understood. So I would place a file, let us call it "realtimeweathervalT.txt", just made of
in the data folder of CumulusMX. The smarthome server FHEM can read out the "realtimeweatherval.txt" (without the T) right regularly? Now the only question is, how set this in CumulusMX or is this done automatically?
Martin
Code: Select all
<#date format=dd/mm/yy> <#timehhmmss> <#temp> <#hum> <#dew> <#wspeed> <#wlatest> <#bearing> <#rrate> <#rfall> <#press> <#currentwdir> <#beaufortnumber> <#windunit> <#tempunitnodeg> <#pressunit> <#rainunit> <#windrun> <#presstrendval> <#rmonth> <#ryear> <#rfallY> <#intemp> <#inhum> <#wchill> <#temptrend> <#tempTH> <#TtempTH> <#tempTL> <#TtempTL> <#windTM> <#TwindTM> <#wgustTM> <#TwgustTM> <#pressTH> <#TpressTH> <#pressTL> <#TpressTL> <#version> <#build> <#wgust> <#heatindex> <#humidex> <#UV> <#ET> <#SolarRad> <#avgbearing> <#rhour> <#forecastnumber> <#isdaylight> <#SensorContactLost> <#wdir> <#cloudbasevalue> <#cloudbaseunit> <#apptemp> <#SunshineHours> <#CurrentSolarMax> <#IsSunny>
Martin
- steve
- Cumulus Author
- Posts: 26701
- Joined: Mon 02 Jun 2008 6:49 pm
- Weather Station: None
- Operating System: None
- Location: Vienne, France
- Contact:
Re: Extra logfile with latest values.
Create an entry in the extra web files, don’t select ftp and supply a local file for the output file.Pretty sure there is more on this in the wiki. The input and output files can go wherever you want, you have to supply the full paths anyway. Probably best not to interfere with the Cumulus data folder adding files it doesn’t recognise.
Steve
-
- Posts: 33
- Joined: Mon 07 Aug 2017 12:15 pm
- Weather Station: WH1080
- Operating System: Raspbian Jessie
Re: Extra logfile with latest values.
Perfect, it works!!!! Thank your very much! Now I just have to setup the read by the FHEM server, but that's not a Cumulus issue .
Cheers Martin
Cheers Martin
-
- Posts: 33
- Joined: Mon 07 Aug 2017 12:15 pm
- Weather Station: WH1080
- Operating System: Raspbian Jessie
Re: Extra logfile with latest values.
But one question: mm in the webtag means the minute. But this in time, too, like above. Which is defined hh:mm:ss. That is wrong. How would be right?
- steve
- Cumulus Author
- Posts: 26701
- Joined: Mon 02 Jun 2008 6:49 pm
- Weather Station: None
- Operating System: None
- Location: Vienne, France
- Contact:
Re: Extra logfile with latest values.
In MX (which uses .Net conversion strings) minute is mm and month is MM - see the full list in the first MX announcement post (I think the list is also in the wiki).
Steve
-
- Posts: 33
- Joined: Mon 07 Aug 2017 12:15 pm
- Weather Station: WH1080
- Operating System: Raspbian Jessie
Re: Extra logfile with latest values.
Great. I was thinking MM should be the solution, but wasn't sure.
Thanks a lot now it works perfectly.
Martin
Thanks a lot now it works perfectly.
Martin