Welcome to the Cumulus Support forum.

Latest Cumulus MX release v3.2.3 build 3059 - 04 December 2019.
    Legacy Cumulus 1 release v1.9.4 (build 1099) - 28 November 2014

    See the Wiki for downloading either version.

    Twitter timer

    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
    User avatar
    daj
    Posts: 2041
    Joined: Tue 29 Jul 2008 8:00 pm
    Weather Station: WH1081
    Operating System: Pi & MX
    Location: SW Scotland
    Contact:

    Twitter timer

    Post by daj » Mon 04 Jan 2016 9:09 pm

    If I set MX (build 3036) to Tweet in intervals of 1 (assuming minutes) it will Tweet.

    I want to tweet every six hours so set the interval to 360 but it never tweets.

    I'll start experimenting with the number to see if I can find a fail point, however is anyone else using auto tweet in MX with a longer interval?
    David
    kippfordweather.uk
    Cumulus MX & Raspberry Pi

    User avatar
    jdc
    Posts: 142
    Joined: Tue 19 Jun 2012 8:51 pm
    Weather Station: Davis VP2 : Instromet
    Operating System: Win 10 : Win XP
    Location: Berwick-upon-Tweed, England.
    Contact:

    Re: Twitter timer

    Post by jdc » Tue 05 Jan 2016 1:30 am

    FWIW I have mine set at 120 and has been/is working fine. (on MX)

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

    Re: Twitter timer

    Post by steve » Tue 05 Jan 2016 8:38 am

    Do you ever close MX down? Any 'non-synchronised' interval for any Cumulus action first takes place at the configured interval from when Cumulus started. A 'synchronised' interval is an interval in minutes which is a factor of 60.

    I hope to add a more sophisticated scheduling mechanism eventually, so for example you could schedule updates every six hours on the clock - 00:00, 06:00, 12:00 etc - perhaps that's what you were expecting with your 6 hour interval?
    Steve

    User avatar
    daj
    Posts: 2041
    Joined: Tue 29 Jul 2008 8:00 pm
    Weather Station: WH1081
    Operating System: Pi & MX
    Location: SW Scotland
    Contact:

    Re: Twitter timer

    Post by daj » Tue 05 Jan 2016 6:27 pm

    I haven't shut down MX in several days. I will restart it and see what happens for the 360
    David
    kippfordweather.uk
    Cumulus MX & Raspberry Pi

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

    Re: Twitter timer

    Post by steve » Tue 05 Jan 2016 6:32 pm

    Assuming you have debug logging on, there should be messages about updating Twitter in the diags file, and any errors logged in there anyway.
    Steve

    User avatar
    daj
    Posts: 2041
    Joined: Tue 29 Jul 2008 8:00 pm
    Weather Station: WH1081
    Operating System: Pi & MX
    Location: SW Scotland
    Contact:

    Re: Twitter timer

    Post by daj » Tue 05 Jan 2016 7:48 pm

    There was nothing in the standard logging. I've turned on debugging and I set the interval for Twitter to five mins -- which worked. I've now set it to 360 and will report back tomorrow.

    FYI : MX has not been restarted since 31 Dec
    David
    kippfordweather.uk
    Cumulus MX & Raspberry Pi

    User avatar
    daj
    Posts: 2041
    Joined: Tue 29 Jul 2008 8:00 pm
    Weather Station: WH1081
    Operating System: Pi & MX
    Location: SW Scotland
    Contact:

    Re: Twitter timer

    Post by daj » Wed 06 Jan 2016 9:34 am

    Nothing in the debugging logs either.

    It Tweeted at 7:45pm last night then nothing after that. I'd have expected something around 1:45am and 7:45am. I've searched the log file and there's no mention of 'Twitter' after 7:45pm.

    It's almost as if Cumulus forgets/resets the timer at some point. :o
    David
    kippfordweather.uk
    Cumulus MX & Raspberry Pi

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

    Re: Twitter timer

    Post by steve » Wed 06 Jan 2016 9:58 am

    It definitely doesn't do that. Having changed the interval to 360, did you restart MX? Some settings changes currently require that.
    Steve

    User avatar
    daj
    Posts: 2041
    Joined: Tue 29 Jul 2008 8:00 pm
    Weather Station: WH1081
    Operating System: Pi & MX
    Location: SW Scotland
    Contact:

    Re: Twitter timer

    Post by daj » Wed 06 Jan 2016 10:01 am

    steve wrote:It definitely doesn't do that. Having changed the interval to 360, did you restart MX? Some settings changes currently require that.
    No, I never needed to restart when I was changing the interval from 1, 5, 10 etc. I will restart it now and see how it goes.
    David
    kippfordweather.uk
    Cumulus MX & Raspberry Pi

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

    Re: Twitter timer

    Post by steve » Wed 06 Jan 2016 10:11 am

    Changing from a 'synchronised' value to a non-synchronised value will currently require a restart, to start the timer.
    Steve

    User avatar
    daj
    Posts: 2041
    Joined: Tue 29 Jul 2008 8:00 pm
    Weather Station: WH1081
    Operating System: Pi & MX
    Location: SW Scotland
    Contact:

    Re: Twitter timer

    Post by daj » Fri 08 Jan 2016 3:59 pm

    Just to finish off the thread....I'm delighted to report that my 360 minutes interval does work if I restart Cumulus.
    David
    kippfordweather.uk
    Cumulus MX & Raspberry Pi

    Post Reply