Tous les jours, une image de platane.
- ruby 3.0.2
bundle install
Check .env.example
for env
You have to configure Google Cloud Vision API, please follow the QuickStart and the Authentication page to get your json keyfile.
./bin/local.sh
Then visit http://127.0.0.1:4000/
Run:
bundle exec ruby bin/generate_platane_post.rb
Check .env.local
for credentials
Run:
bundle exec ruby bin/tweet_platane.rb `date +%Y-%m-%d`
Add the following secrets:
FLICKR_API_KEY
: Flickr API keyVISION_CREDENTIALS_BASE_64
: JSON key for the Google Vision API as url safe base64. You can use./bin/encode_google_vision_json_key.rb
to generate this fileACCESS_TOKEN
: Github Personal Access Token with at least write access to repositories: can trigger builds from push to develop
👉 https://bonjourplatane.goatcounter.com/
Thanks to PrinceCaramel for the (stupid) idea.