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.exampleto.env - Edit the
.envfile to setMASTODON_API_KEYandMASTODON_API_URLandMASTODON_ACCOUNT_IDvalues - Edit the
.envfile to setBSKY_API_APP_NAMEandBSKY_API_APP_USERandBSKY_API_APP_TOKENvalues - Schedule a run every 10mn by either:
- Setting
cron.phpas 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

