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
Prerequisite: Install uv (fast Python package manager)
-
Clone the repository
git clone https://github.com/rabede/BirdBuddy2Mastodon.git -
CD into new directory and create your python environment
cd BirdBuddy2Mastodonuv venvsource .venv/bin/activate -
Install dependencies
uv sync -
Rename
.env template.txtto.envand insert your credentials (Make sure to add.envto.gitignorebefore 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!