Welcome to the new home of the Cumulus Support forum.

Latest Cumulus release v1.9.4 (build 1099) - Nov 28 2014
Latest Cumulus MX release - v3.0.0 build 3044 7 December 2018. See the Wiki for download

Behaviour of "today" tags at the end of the day

Discussion of version 3 of Cumulus, which runs on Windows, Linux, and OS X. All Cumulus MX queries in here, please.

Moderator: mcrossley

Post Reply
freddie
Posts: 329
Joined: Wed 08 Jun 2011 11:19 am
Weather Station: Davis Vantage Pro 2
Operating System: GNU/Linux (Ubuntu 18.04)
Location: Ystrad, Rhondda, Wales
Contact:

Behaviour of "today" tags at the end of the day

Post by freddie » Sat 19 May 2018 9:39 am

I have recently decided to make use of the larger maximum size of Twitter tweets by editing my twitter.txt to include more data. As well as the current data that Cumulus already tweets every hour on the hour, I have included the rain total for today (in my case 0900-0900) and also the maximum and minimum temperature for the same period.

This works as aniticipated except for the tweet that goes out at the end of the day at 0900. I was expecting to be able to tweet the maximum and minimum temperatures for the preceeding 24 hour period, along with the total rainfall. However, it appears that the values are reset at that time, and all you ever get for these values at 0900 is zero for rain, and the temperature at 0900 for the maximum and minimum. I can sort of see how this happens (values get reset before the first data received from my VP after 0900) but I don't know why. At the "top of the hour" at the end of the data day (i.e. before any data has been collected for the "new" day) isn't it more useful to have the max/min and rainfall total for the period just ending available? Otherwise these values are always going to be equal to zero (rainfall) or the 0900 values (max/min temperature).

Is it possible to consider changing this behaviour, please? If not, has anybody else bumped up against these circumstances and arrived at a work-around?

Thanks.
Freddie
Image

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

Re: Behaviour of "today" tags at the end of the day

Post by steve » Sat 19 May 2018 9:53 am

I don’t propose to change that behaviour (if I ever do any more development) as I believe it’s correct (any actions will be just after 0900 so a new day has already started).

However, I do agree with you that being able to use the figures before they are reset would be useful. One of the enhancements on the to-do list is more sophisticated scheduling, and I would envisage this being part of that (if I ever...).
Steve

freddie
Posts: 329
Joined: Wed 08 Jun 2011 11:19 am
Weather Station: Davis Vantage Pro 2
Operating System: GNU/Linux (Ubuntu 18.04)
Location: Ystrad, Rhondda, Wales
Contact:

Re: Behaviour of "today" tags at the end of the day

Post by freddie » Sat 19 May 2018 10:35 am

Thanks for reply, Steve.

That is fair enough. I have thought of a work-around in the interim - have two versions of twitter.txt, one with the "today" tags and one with the "yesterday" tags, and use a Cron job to switch between the two at 0830 and 0930.

Hope you are well and settling in.

Best regards, Niall.
Freddie
Image

Post Reply