Page 1 of 1

Bug: Cannot change Twitter account

Posted: Wed 02 Dec 2015 7:43 am
by ExperiMentor
Just got CumulusMX uploading to Weather Underground from my Raspberry Pi - excellent!

Decided to add a Twitter feed - worked fine to my existing Twitter account once I realised I had to add a twitter.txt file [suggestion: include a 'default' file in the distribution, so users can edit it if they want, rather than 'nothing happens' until the file is created].

Then I decided to set up a new Twitter account instead of mixing Weather with other things. I cannot get this to work! Is should just need me to change the Username and Password in 'Internet Settings', Save, and maybe reboot. But if I do that, it keeps sending to the OLD Twitter account even though 'Internet Settings' shows the new account.

I even tried disabling Twitter, deleting all the settings, Save, Reboot. OK so far - no Tweets sent.
Then re-enable, enter new account details, Save - and it STILL TWEETS to the OLD account.

Any suggestions?

Ian

Re: Bug: Cannot change Twitter account

Posted: Wed 02 Dec 2015 8:35 am
by steve
ExperiMentor wrote:Decided to add a Twitter feed - worked fine to my existing Twitter account once I realised I had to add a twitter.txt file [suggestion: include a 'default' file in the distribution, so users can edit it if they want, rather than 'nothing happens' until the file is created].
You don't need a twitter.txt file, Cumulus uses a default update if one doesn't exist. If you weren't getting updates without one, there is another explanation - e.g. Twitter doesn't immediately start accepting updates from a newly-authenticated user, it takes a couple of updates for it to start working.
Then I decided to set up a new Twitter account instead of mixing Weather with other things. I cannot get this to work! Is should just need me to change the Username and Password in 'Internet Settings', Save, and maybe reboot. But if I do that, it keeps sending to the OLD Twitter account even though 'Internet Settings' shows the new account.
If you change your password (or user) you need to edit Cumulus.ini to remove the old authentication tokens, as described in this FAQ - http://wiki.sandaysoft.com/a/FAQ#I.27ve ... te_Twitter

Edit: In trying to fix a problem with the wiki caused by a PHP upgrade, I've broken it completely (just now). Until I can fix it, here is the information from the FAQ: Stop Cumulus and edit Cumulus.ini. Delete the lines starting "OauthToken" and "OauthTokenSecret" in the [Twitter] section. Start MX again.

Re: Bug: Cannot change Twitter account

Posted: Thu 03 Dec 2015 12:32 pm
by ExperiMentor
Many thanks for your immediate helpful reply.

It's all now working properly as you can see on Twitter @LiesbergDorf - I included an advertisement for SandaySoft!
Also at http://www.wunderground.com/personal-we ... =IBLLIESB3

The slowest part was trying to get CumulusMX to NOT run to allow me to successfully edit Cumulus.ini - I have it auto-running as a background task on boot-up of a 'headless' Raspberry Pi, and I don't know how to stop it from an SSH console session! I see someone has posted a method to have it 'running in a screen' so I will investigate that in due course. Meanwhile, in case of interest to anyone else, I renamed CumulusMX.exe and rebooted, edited Cumulus.ini, renamed the .exe back and rebooted again:

mv CumulusMX.exe CumulusMX.NOTexe
sudo reboot
...
nano Cumulus.ini
mv CumulusMX.NOTexe CumulusMX.exe
sudo reboot