This is a simple copy of DenchyRS's Birdini, where I replaced the Discord stuff with Mastodon.
As Birdini, this script depends on jhansche's pybirdbuddy
-
Clone the repository
git clone https://github.com/rabede/BirdBuddy2Mastodon.git
-
CD into new directory, create and activate your python environment
cd BirdBuddy2Mastodon
python -m venv .venv
source .venv/bin/activate
-
Install dependencies
python -m pip install -r requirements.txt
-
Rename
.env template.txt
to.env
and insert your credentials (Make sure to add.env
to.gitignore
before any pushing!) -
Run and test locallally
python birdbuddy2mastodon.py
-
Install as daemon on your RasperryPi or other
use birdbuddy2mastodon.service as a template, replace USER with your preferences and pathes if necessary
BB_NAME
This is the email used to log into your BirdBuddy account. Note that this has to be an email/password login and can not be an integration like login with Google. A good work around for this issue (if your primary account is using such type of login). Is to create a new account using an email and then inviting them to be a guest at your feeder.
BB_PASS
This is the password used to log into your BirdBuddy account.
MASTODON_ACCESS_TOKEN
Access token for your Mastodon App
MASTODON_API_BASE_URL
URL of your Mastodon Instance e.g. 'https://mastodon.social'
MASTODON_VISIBILITY
Set the visibility of your post ('direct', 'private', 'unlisted', 'public')
MASTODON_MAX_FILES
Maximum number of files Mastodon accepts appended to a post (currently 4)
SECONDS_TO_SLEEP
Number of seconds between checks for new postcards
LOGFILE
Name of logfile (leave empty for console log)
FLICKR_KEY
Flickr-Api-Key (remove entry if you don't want flicker upload )
FLICKR_SECRET
Flickr-Api-Secret
LOCAL_DEST
local folder to move media with exif-data
LOCAL_LAT
Latitude for exif-data
LOCAL_LON
Longitute for exif-data
LOCAL_TAG
String for user comment in exif-data, Common name is added in program, first eight characters are cut!