Open Chewie9999 opened 8 months ago
Thank you! @BirdnetPi_Leverkusen@mastodon.social is using it now.
Cool idea. But unfortunately it doesn't work for me. I have followed the instructions and adapted “api_base_url”. I also had to adjust the paths slightly. The error message is:
Traceback (most recent call last):
File “/home/pi/BirdNET-Pi/mastodonpost.py”, line 2, in <module>
from mastodon import Mastodon
ImportError: No module named mastodon
Does anyone know what I am doing wrong? Do I need to install another module? Thank you!
Traceback (most recent call last): File “/home/pi/BirdNET-Pi/mastodonpost.py”, line 2, in
from mastodon import Mastodon ImportError: No module named mastodon Does anyone know what I am doing wrong? Do I need to install another module? Thank you!
Oops, Sorry, i missed out an important first step:
pip3 install Mastodon.py
:(
I have no idea if this is any use to anyone, but I made a quick script to upload the daily Top 10 chart to a bot on my Mastodon server:
'/home/birdnet/BirdNET-Pi/token.secret
)pip3 install Mastodon.py
/home/birdnet/BirdNET-Pi/mastodonpost.py
or similarchmod +x /home/birdnet/BirdNET-Pi/mastodonpost.py
crontab -e
to edit the scheduler and run the command every day at 1minute past midnight:Python Script
mastodonpost.py
Edited: missed important step of installing python mastodon module