IMPORTANT! The server may go down soon - possibly permanently. Please read the latest post in Announcements and News

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

Twitter problem with Cumulus v1.9.4 (1099)

Discussion and questions about Cumulus weather station software version 1. This section and its subforums are the main place to get help with Cumulus. Anything which is not specific to the type of weather station goes in here; for anything specific to a type of weather station, please use the appropriate subforum. Use the 'website development' section for any questions relating to creating or running a web site for Cumulus data. Discussion of the stations themselves in these sections is fine.
De Hout
Posts: 12
Joined: Thu Oct 09, 2014 5:40 pm
Weather Station: Fine Offset WH3081
Operating System: Windows 7 x64 SP1
Location: Alkmaar, The Netherlands
Contact:

Twitter problem with Cumulus v1.9.4 (1099)

Postby De Hout » Sat Mar 04, 2017 1:33 pm

Twitter posts by Cumulus have always worked. It stopped working since feb 5 2017. See: https://twitter.com/AlkmaarsWeer

What has changed at my side since then:

The PC running Cumulus crashed. It had Windows 7 OS.
I replaced it with an old laptop with Windows XP, and transferred Cumulus. The laptop is too slow for Win 7.
All is working ok, except for posting on Twitter.

Cumulus is not sending anything to Twitter, while settings are definitely correct.

Could this be a Win XP compatability problem? I'm out of options.

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

Re: Twitter problem with Cumulus v1.9.4 (1099)

Postby steve » Sat Mar 04, 2017 3:43 pm

You could try deleting the 'tokens' from Cumulus.ini. This FAQ tells you how to do that - http://wiki.sandaysoft.com/a/FAQ#I.27ve_changed_my_Twitter_password.2C_and_now_Cumulus_won.27t_update_Twitter

If that doesn't help, turn on debug logging by adding

Logging=1

to the [Station] section of Cumulus.ini, then start Cumulus. The debug.log file will show the attempts to communicate with Twitter and may helo diagnose the problem.
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 since I have retired from my day job

De Hout
Posts: 12
Joined: Thu Oct 09, 2014 5:40 pm
Weather Station: Fine Offset WH3081
Operating System: Windows 7 x64 SP1
Location: Alkmaar, The Netherlands
Contact:

Re: Twitter problem with Cumulus v1.9.4 (1099)

Postby De Hout » Sat Mar 04, 2017 6:03 pm

I already tried deleting the tokens without success.

I'll turn on debugging and will post the result here.

De Hout
Posts: 12
Joined: Thu Oct 09, 2014 5:40 pm
Weather Station: Fine Offset WH3081
Operating System: Windows 7 x64 SP1
Location: Alkmaar, The Netherlands
Contact:

Re: Twitter problem with Cumulus v1.9.4 (1099)

Postby De Hout » Sun Mar 05, 2017 8:19 pm

Here is the overnight debug file. (I don't see anything in it what has to do with Twitter)
Twitter frequency is set to every 1 minute.

In the meantime I tested with a clean Cumulus install on the laptop. The new install refuses to post on Twitter as well.
I also copied the Cumulus map from the laptop to another PC with Win 7. On that PC tweeting works good.

I still think that Win XP is the problem, but I have no clue where to look.
You do not have the required permissions to view the files attached to this post.

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

Re: Twitter problem with Cumulus v1.9.4 (1099)

Postby steve » Sun Mar 05, 2017 8:29 pm

Sorry, I had forgtten how it works in Cumulus 1 - turning on debug logging causes extra Twitter logging to the diags file - have a look in the latest one and there should be something in there.

It could be XP, but I can't remember any problems with XP and Twitter. A firewall issue is also a possibility.
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 since I have retired from my day job

De Hout
Posts: 12
Joined: Thu Oct 09, 2014 5:40 pm
Weather Station: Fine Offset WH3081
Operating System: Windows 7 x64 SP1
Location: Alkmaar, The Netherlands
Contact:

Re: Twitter problem with Cumulus v1.9.4 (1099)

Postby De Hout » Mon Mar 06, 2017 6:51 pm

Ok, found something:

5-3-2017 13:33:05.239 : Starting Twitter thread
5-3-2017 13:33:05.239 : Starting Twitter thread
5-3-2017 13:33:05.369 : TwitterOauthToken available
5-3-2017 13:33:05.369 : Twitter data:13:33 #Alkmaar #weer Temp 10,2°C|Wind ZW 3 Bft|Druk 994,7 hPa Langzaam dalend|Regen 0,5 mm|Vocht 54%
http://dehout.ddns.net
5-3-2017 13:33:05.369 : Twitter URL: https://api.twitter.com/1.1/statuses/update.json

<snip personal codes and passwords>

5-3-2017 13:33:05.459 : Twitter update error: Could not load SSL library.
5-3-2017 13:33:05.459 : Twitter Response:
5-3-2017 13:33:05.459 : Twitter thread exit

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

Re: Twitter problem with Cumulus v1.9.4 (1099)

Postby steve » Mon Mar 06, 2017 6:55 pm

De Hout wrote:5-3-2017 13:33:05.459 : Twitter update error: Could not load SSL library.

Then I think you are correct and it is a problem with XP - it apparently can't load the SSL library provided with Cumulus; I don't know why that would be.
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 since I have retired from my day job

De Hout
Posts: 12
Joined: Thu Oct 09, 2014 5:40 pm
Weather Station: Fine Offset WH3081
Operating System: Windows 7 x64 SP1
Location: Alkmaar, The Netherlands
Contact:

Re: Twitter problem with Cumulus v1.9.4 (1099)

Postby De Hout » Mon Mar 06, 2017 8:49 pm

Thanks, Steve.
I'll do without Twitter for a while, and hope I can find another, preferrably cheap, laptop which is able to run on Win7.

Derk.

Shugrover
Posts: 1
Joined: Thu Sep 20, 2018 12:50 pm
Weather Station: WH1080
Operating System: Win 10

Re: Twitter problem with Cumulus v1.9.4 (1099)

Postby Shugrover » Thu Sep 20, 2018 4:54 pm

I have the same issue. Running Windows 10, pc decided to hang for some reason, restarted ok, ran Cumulous and it stop tweeting. Tried a laptop and migrated everything over. Log file shows error 504 for Twitter. Don’t understand why

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

Re: Twitter problem with Cumulus v1.9.4 (1099)

Postby steve » Fri Sep 21, 2018 11:46 am

Twitter changed their authentication method again, and Cumulus can no longer obtain the authentication tokens. Even if you copied the cumulus.ini file containing the tokens to the new PC, it is possible that they won’t work on that machine - I don’t know.
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 since I have retired from my day job

ExperiMentor
Posts: 45
Joined: Tue Nov 24, 2015 11:30 pm
Weather Station: Fine Offset
Operating System: Windows 7; Linux
Location: Switzerland

Re: Twitter problem with Cumulus v1.9.4 (1099)

Postby ExperiMentor » Sun Sep 23, 2018 7:28 pm

I have a workaround for this problem that will help if you are using a Linux machine (eg Raspberry Pi) to run Cumulus MX.

It involves using Cumulus to generate the text string to be tweeted, then using a separate simple (Python) program to tweet the text string when required (eg every hour). I've got mine set to tweet a webcam image at the same time.
You can see the result at @LiesbergDorf

My program is as follows but this isn't a full 'Tutorial'. If enough people ask for it I will write it up properly!
I have removed my Twitter passcodes for obvious reasons - you'll need to create a Twitter App to get your own codes.

Code: Select all

#!/usr/bin/env python

from twython import Twython

# This program executes a single time, tweets tweet.txt and image.img, then exits
# Use crontab to control how often it runs

# Define constants
CONSUMER_KEY = 'NOT TELLING YOU'
CONSUMER_SECRET = 'MY SECRET'
ACCESS_KEY = 'FOR MY EYES ONLY'
ACCESS_SECRET ='GUESS'

# Create a copy of the Twython object with all our keys and secrets to allow easy commands.
api = Twython(CONSUMER_KEY,CONSUMER_SECRET,ACCESS_KEY,ACCESS_SECRET)

# Tweet tweet.txt and image.jpg
# Not covered: how to get webcam image into localimage.jpg on Pi
photo = open('/home/pi/Programs/IPcamFTP/localimage.jpg','rb') # need to open the file
text = open('/home/pi/CumulusMX/tweet.txt','rb') # Cumulus has been set to create tweet.txt by processing twitter.txt
api.update_status_with_media(media=photo, status=text)

# api.update_status is now deprecated, but works, and is simpler than the below [untested]
# New code should be as below, but new version of Twython came out late on Raspbian. Could test this:
#response = twitter.upload_media(media=photo) # this sends photo to Twitter servers where it is stored for 60 minutes
# Then it can be added to a tweet by using the media_id that is returned as response
#twitter.update_status(status=text, media_ids=[response['media_id']])resemble


Other things you'll need are:

In CumulusMX at Settings / Extra Files:
Set Local Filename to /home/pi/Cumulus/twitter.txt
Set Remote Filename to /home/pi/Cumulus/tweet.txt
Tick 'Process'

and in Settings / Internet Settings / Web/FTP settings, enable 'Auto update'
Last edited by ExperiMentor on Mon Sep 24, 2018 6:36 pm, edited 1 time in total.

User avatar
Toxic17
Posts: 691
Joined: Mon May 19, 2014 10:45 pm
Weather Station: Davis VPro2 Plus
Operating System: Debian 9.5 Stretch
Location: Bangor, NI
Contact:

Re: Twitter problem with Cumulus v1.9.4 (1099)

Postby Toxic17 » Sun Sep 23, 2018 9:08 pm

I use Twidge for forecasts on Twitter.

https://github.com/jgoerzen/twidge/wiki
Regards Simon

https://www.conligwx.org
https://www.conligwx.org/pws/
https://twitter.com/conligwx
Davis Vantage Pro2+ - CumulusMX v3.0.0 (build 3043) + Saratoga/PWS
Image

joglz
Posts: 2
Joined: Tue Oct 02, 2018 11:53 pm
Weather Station: Davis Vantage Pro 2
Operating System: Windows 10

Re: Twitter problem with Cumulus v1.9.4 (1099)

Postby joglz » Thu Oct 04, 2018 9:43 pm

Shugrover wrote:I have the same issue. Running Windows 10, pc decided to hang for some reason, restarted ok, ran Cumulous and it stop tweeting. Tried a laptop and migrated everything over. Log file shows error 504 for Twitter. Don’t understand why


I've the same problem :cry:

joglz
Posts: 2
Joined: Tue Oct 02, 2018 11:53 pm
Weather Station: Davis Vantage Pro 2
Operating System: Windows 10

Re: Twitter problem with Cumulus v1.9.4 (1099)

Postby joglz » Thu Oct 04, 2018 9:47 pm

Shugrover wrote:I have the same issue. Running Windows 10, pc decided to hang for some reason, restarted ok, ran Cumulous and it stop tweeting. Tried a laptop and migrated everything over. Log file shows error 504 for Twitter. Don’t understand why


I've the same problem on Windows 10c :cry:

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

Re: Twitter problem with Cumulus v1.9.4 (1099)

Postby steve » Thu Oct 04, 2018 9:57 pm

Cumulus may be prevented from posting to Twitter completely, for everyone, soon. Twitter have created yet more obstacles. It seems I have to submit a justification for the amount of tweets that Cumulus does, so that they can consider allowing it to continue. I am currently on holiday on a canal boat and don’t know when or if I will find time to do this.
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 since I have retired from my day job


Return to “Cumulus 1”

Who is online

Users browsing this forum: No registered users and 9 guests