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

Twitter Interval Not As Expected - SOLVED

Topics about the Beta trials up to Build 3043, the last build by Cumulus's founder Steve Loft. It was by this time way out of Beta but Steve wanted to keep it that way until he made a decision on his and Cumulus's future.

Moderator: mcrossley

Locked
User avatar
andrew_sinclair
Posts: 85
Joined: Thu 04 Nov 2010 8:15 pm
Weather Station: Davis VP2 Plus c/w DFARS
Operating System: Debian version: 12 (bookworm)
Location: Cheddar, Somerset
Contact:

Twitter Interval Not As Expected - SOLVED

Post by andrew_sinclair »

Hello Steve,

I have been focussing on using the Twitter functionality. I have set the @cheddarweather Twitter Interval at 180 (i.e. 180 minutes) and tweets occurred at the following times:

10/06/2016, 23:58
11/06/2016, 01:58
11/06/2016, 03:58
11/06/2016, 05:58
11/06/2016, 09:58
11/06/2016, 11:58

i.e. 120 minute not 180 minute intervals and with 07:58 missing. The log at 05:58 reported
2016-06-11 05:58:57.499 Starting Twitter update
2016-06-11 05:58:57.500 Using twitter.txt file
2016-06-11 05:58:57.500 Updating Twitter: Wind N / 0.0kts (10min. ave.), F0, 0.0kts (Gust), OAT 14.8C, UV Index 0.0, QNH 1010.90hPa, Rain 0.00in/hr, SR 04:55, SS 21:27
2016-06-11 05:58:59.289 Status returned: (741494916602286080)[CheddarWeather ☀️]CheddarWeather ☀️, Wind N / 0.0kts (10min. ave.), F0, 0.0kts (Gust), OAT 14.8C, UV Index 0.0, QNH 1010.90hPa, Rain 0.00in/hr, SR 04:55, SS 21:27, 11/06/2016 04:58:59
which appears correct but the log at 07:58 reported
2016-06-11 07:58:57.499 Starting Twitter update
2016-06-11 07:58:57.500 Using twitter.txt file
2016-06-11 07:58:57.500 Updating Twitter: Wind WSW / 0.8kts (10min. ave.), F1, 1.7kts (Gust), OAT 15.6C, UV Index 0.0, QNH 1011.28hPa, Rain 0.00in/hr, SR 04:55, SS 21:27
2016-06-11 07:58:57.687 UpdateTwitter: Connection reset by peer
I am not sure what "Connection reset by peer" means.

Regards

Andrew
Last edited by andrew_sinclair on Tue 14 Jun 2016 3:28 pm, edited 1 time in total.
Windy: f065d04a
User avatar
steve
Cumulus Author
Posts: 26672
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: Twitter Interval

Post by steve »

Connection reset by peer indicates some kind of communication problem.

The interval not being as set may be because you have used a factor/multiple of 60, so the code is trying to synchronise with the clock time. It can't currently do that correctly for times of over 60 minutes.
Steve
User avatar
andrew_sinclair
Posts: 85
Joined: Thu 04 Nov 2010 8:15 pm
Weather Station: Davis VP2 Plus c/w DFARS
Operating System: Debian version: 12 (bookworm)
Location: Cheddar, Somerset
Contact:

Re: Twitter Interval

Post by andrew_sinclair »

Hello Steve,

Understood. I read somewhere that daj had experienced a similar problem so I had set my interval at 180 and restarted CumulusMX...
Windy: f065d04a
User avatar
andrew_sinclair
Posts: 85
Joined: Thu 04 Nov 2010 8:15 pm
Weather Station: Davis VP2 Plus c/w DFARS
Operating System: Debian version: 12 (bookworm)
Location: Cheddar, Somerset
Contact:

Re: Twitter Interval

Post by andrew_sinclair »

That's worked now.

What I have learned is that if you change the Twitter interval setting to a number between 1-59 inclusive then when you press 'Save' the functionality works as, at least I had, expected e.g. at 12:26 change the Twitter Interval in Settings to 10 and press Save then then a Tweet will be 'Tweeted' at 12:36, 12:46, 12:56 etc

When you enter a number which is a multiple of 60, i.e 120, 180, 240, etc then you have to press 'Save' and restart CumulusMX and then an update will be Tweeted after every Interval number of minutes after re-started CumulusMX e.g. if you enter 120 in settings and save the settings and restart CumulusMX at 10:34 then a Tweet will be 'Tweeted' at 12:34, 14:34, 16:34, 18:34 etc.
Windy: f065d04a
freddie
Posts: 2870
Joined: Wed 08 Jun 2011 11:19 am
Weather Station: Davis Vantage Pro 2 + Ecowitt
Operating System: GNU/Linux Ubuntu 24.04 LXC
Location: Alcaston, Shropshire, UK
Contact:

Re: Twitter Interval

Post by freddie »

andrew_sinclair wrote:When you enter a number which is a multiple of 60, i.e 120, 180, 240, etc then you have to press 'Save' and restart CumulusMX and then an update will be Tweeted after every Interval number of minutes after re-started CumulusMX e.g. if you enter 120 in settings and save the settings and restart CumulusMX at 10:34 then a Tweet will be 'Tweeted' at 12:34, 14:34, 16:34, 18:34 etc.
That's not necessarily true. I have my interval set to 60 and I get a tweet sent out every hour on the hour, regardless of what time I restart MX.
Freddie
Image
User avatar
ConligWX
Posts: 1835
Joined: Mon 19 May 2014 10:45 pm
Weather Station: Davis vPro2+ w/DFARS + AirLink
Operating System: Ubuntu 24.04.1 LTS
Location: Bangor, NI
Contact:

Re: Twitter Interval

Post by ConligWX »

freddie wrote:That's not necessarily true. I have my interval set to 60 and I get a tweet sent out every hour on the hour, regardless of what time I restart MX.
Same here. its always on the hour no matter what.
User avatar
steve
Cumulus Author
Posts: 26672
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: Twitter Interval

Post by steve »

I think it's because 120 doesn't pass the 'factor of 60' check, so operates on a simple periodic timer which is started when Cumulus starts. 60 does pass the check so happens on the hour.
Steve
Locked