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

Extra logfile with latest values.

Discussion of version 3 of Cumulus, which runs on Windows, Linux, and OS X. All Cumulus MX queries in here, please.
maddinthebrain
Posts: 22
Joined: Mon Aug 07, 2017 12:15 pm
Weather Station: WH1080
Operating System: Raspbian Jessie

Extra logfile with latest values.

Postby maddinthebrain » Mon Nov 13, 2017 3:51 pm

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

User avatar
steve
Cumulus Author
Posts: 26247
Joined: Mon Jun 02, 2008 6:49 pm
Weather Station: None
Operating System: None
Location: On tour in France
Contact:

Re: Extra logfile with latest values.

Postby steve » Mon Nov 13, 2017 4:20 pm

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.
Steve
-----
Hosting available for Cumulus web sites. See http://sandaysoft.com/forum/viewtopic.php?f=2&t=11876

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

maddinthebrain
Posts: 22
Joined: Mon Aug 07, 2017 12:15 pm
Weather Station: WH1080
Operating System: Raspbian Jessie

Re: Extra logfile with latest values.

Postby maddinthebrain » Mon Nov 13, 2017 7:31 pm

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.


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.

Thanks a lot

Martin

sfws
Posts: 345
Joined: Fri Jul 27, 2012 11:29 am
Weather Station: off-line Fine Offset plus others
Operating System: off-line Vista and W10 PCs
Location: UK

Re: Extra logfile with latest values.

Postby sfws » Mon Nov 13, 2017 11:17 pm

Not sure if you have seen this in the Wiki http://wiki.sandaysoft.com/a/Realtime.txt#Recreating_the_file_using_webtags
Others who use MX might chip in re your other questions.

maddinthebrain
Posts: 22
Joined: Mon Aug 07, 2017 12:15 pm
Weather Station: WH1080
Operating System: Raspbian Jessie

Re: Extra logfile with latest values.

Postby maddinthebrain » Tue Nov 14, 2017 8:29 am

Ok, the thing with the webtags I understood. So I would place a file, let us call it "realtimeweathervalT.txt", just made of

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>

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

User avatar
steve
Cumulus Author
Posts: 26247
Joined: Mon Jun 02, 2008 6:49 pm
Weather Station: None
Operating System: None
Location: On tour in France
Contact:

Re: Extra logfile with latest values.

Postby steve » Tue Nov 14, 2017 8:57 am

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
-----
Hosting available for Cumulus web sites. See http://sandaysoft.com/forum/viewtopic.php?f=2&t=11876

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

maddinthebrain
Posts: 22
Joined: Mon Aug 07, 2017 12:15 pm
Weather Station: WH1080
Operating System: Raspbian Jessie

Re: Extra logfile with latest values.

Postby maddinthebrain » Tue Nov 14, 2017 10:29 am

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 :D .

Cheers Martin

maddinthebrain
Posts: 22
Joined: Mon Aug 07, 2017 12:15 pm
Weather Station: WH1080
Operating System: Raspbian Jessie

Re: Extra logfile with latest values.

Postby maddinthebrain » Tue Nov 14, 2017 6:24 pm

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?

User avatar
steve
Cumulus Author
Posts: 26247
Joined: Mon Jun 02, 2008 6:49 pm
Weather Station: None
Operating System: None
Location: On tour in France
Contact:

Re: Extra logfile with latest values.

Postby steve » Tue Nov 14, 2017 6:45 pm

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
-----
Hosting available for Cumulus web sites. See http://sandaysoft.com/forum/viewtopic.php?f=2&t=11876

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

maddinthebrain
Posts: 22
Joined: Mon Aug 07, 2017 12:15 pm
Weather Station: WH1080
Operating System: Raspbian Jessie

Re: Extra logfile with latest values.

Postby maddinthebrain » Tue Nov 14, 2017 8:11 pm

Great. I was thinking MM should be the solution, but wasn't sure.

Thanks a lot now it works perfectly.

Martin


Return to “Cumulus MX”

Who is online

Users browsing this forum: No registered users and 2 guests