A few days ago I shared a Facebook bot that posts WeatherFlow data to a Facebook page.
I duplicated this to post WeatherFlow data to a Twitter account, thought I would share. There are two different programs, one tweets the devices current observations, the other tweets a forecast.
For the one that tweets the forecast, if the time is before 6pm, the forecast will be for current day. If after 6pm, it’ll tweet tomorrows.
Yes, conditionsBot.py gets the current conditions from your station and sends the info onto Twitter. I have it running on a RPi with a crontab job set to run it every hour on the hour.
I’m not sure I understand what you mean by your second question. The only inputs you need are the API keys you need to get from twitter, your station token from Tempest and your Station ID. Those inputs are all imported automatically with the script assuming you set those inputs in a .env file as outlined in the README
Hi,
I don’t know Linux very well, so it’s a bit more complicated for me. There are also complete laymen here.
But if I understand correctly, I copy the program “conditionsBot.py” to some new directory in RPi.
Then I create a new “.env” file (is that its name?) in the same directory, and add all the required keys and tokens to it. I’m not sure about the file name here, I’m not familiar with Linux, in other OS, there must be a some name before the dot.
Finally, I use “crontab” to set how often and when to run “conditionsBot.py” .