This is the source code for the Bot running behind the fediverse/bluesky accounts:
Just like its Twitter counterpart, this app publishes the latest changes found in Arduino Library Registry to the Mastodon and Bluesky networks.
Requirements:
- linux (wget, gzip)
- php8+
- composer
- Mastodon Application TOKEN
- Bluesky Application TOKEN
Quick Start:
- Copy
.env.example
to.env
- Edit the
.env
file to setMASTODON_API_KEY
andMASTODON_API_URL
andMASTODON_ACCOUNT_ID
values - Edit the
.env
file to setBSKY_API_APP_NAME
andBSKY_API_APP_USER
andBSKY_API_APP_TOKEN
values - Schedule a run every 10mn by either:
- Setting
cron.php
as a crontab*/10 * * * * cd /path/to/arduino-libraries-announcer/ && sh cron.sh >> logfile.txt 2>&1
- Or by using a systemd timer (TODO: document this)
- Setting
Dependencies:
- https://github.com/Eleirbag89/MastodonBotPHP
- https://github.com/halaxa/json-machine
- https://github.com/vlucas/phpdotenv
Resources:
- https://downloads.arduino.cc/libraries/library_index.json.gz
- https://www.arduino.cc/reference/en/libraries/
- https://github.com/arduino/library-registry
Inspiration:
- https://twitter.com/ArduinoLibs
- https://github.com/njh/arduino-libraries
- https://www.arduinolibraries.info/
Thanks:
- @tipiak75
- @DigitalSOok