Twitter - First Run does nothing

Maybe I missed a step, would not surprise me. I am trying to set twitter up. I have my ID input and when I click first run, nothing happens. I still have my old windows data files. Would it work if I put the twitter,ini across.

Expect a few more Linux questions as I am considering the Froggit WH4000SE weather station to take over from my NetaTmo

Sean

I went to the developer section of twitter. Created an app and gave it read/write access. I use the API Key and Secret as the AUTH token and then generated Access Token and use the Token and Access secret. But still no twitter posts. I have restarted WD. I know the answer is staring at me

On the linux version it uses curl
I will review the code and test tomorrow
You could try running the twitter cron program in a terminal window

I ran the crontwitter and still no joy.

crontwitterlinuxnew its called
anyway the first time setup is wanting to run setuptwitter
but I seemed to have lost that program

anyway I will work on this today as spare time allows

Ah ok. I copied the twitter.ini from my old Windows setup and placed it into the wdisplay and the ~/Documents/wdisplay folders. I edited the tokens to correspond to the new ones I created. But no joy. Is there a format to the twitter.ini that I am missing or is it case sensitive

Using a Bash script I confirmed that the codes work

I used the script at https://github.com/piroor/tweet.sh to confirm my tokens are ok.
My twitter.ini contains


[tokens]
AUTH_TOKEN=NOT
AUTH_TOKEN_SECRET=GOING
ACCESS_TOKEN=TO
ACCESS_TOKEN_SECRET=SAY
REFRESH_TOKEN=
EXTRA_DATA=

I have success
I created a new application for linux
and its working
just need to polish it more

Thank you, appreciate the hard work

new update ready, with a new crontwitter program

Excellent, will download now and report back. Although I had a crash at 3am this morning

Ok, it kind of works, I get a Twiiter Linux screen, Have done steps 1-5. and then close the app. But next tweet it asks again for the steps 1-5 to be done. I have checked the twitter account and there is a Weather-Display app connected ok.

did you copy the url shown into a browser?
and then there you log into twitter
to get your PIN
which you then put back into the program
to then complete the next step

i will make it so that it auto starts up a browser with that URL

Yeah I followed each step. and posted the tweet. But then after I close the app, it still brings up the program again


so you were able to get a tweet out OK?
it should be saving the auth keys
and so then on next run it reads those in and so does not need to go through the steps again and so then sends the tweet and closes
that is what is happening here
as a test try running it as sudo from a terminal
and try running it when WD is not running
as it might be that it was not able to save to the ini file

Just run it using sudo and no ini file created

OK, it now seems to have saved the ini file but I dont know where :slight_smile: But it is remembering the data

did you also exit WD first?
the ini file should be saved to
~/Documents/wdisplay/

which is where WD saves them to

Yes I exited WD first. But there is no twiiter.ini or is the data in the main INI file

its in the main ini file
wdisplayftp.ini

I wonder if using its own ini file, twitter.ini, would get around the conflict of the main in file being in use by WD
we could try that