Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alexpate/dynamic-twitter-cover
A script that generates a time-of-day based Twitter cover
https://github.com/alexpate/dynamic-twitter-cover
automation github-actions gradients twitter
Last synced: 3 months ago
JSON representation
A script that generates a time-of-day based Twitter cover
- Host: GitHub
- URL: https://github.com/alexpate/dynamic-twitter-cover
- Owner: alexpate
- Created: 2019-08-23T19:27:30.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-12-09T23:51:46.000Z (about 2 years ago)
- Last Synced: 2024-10-28T04:25:36.340Z (3 months ago)
- Topics: automation, github-actions, gradients, twitter
- Language: JavaScript
- Homepage:
- Size: 257 KB
- Stars: 10
- Watchers: 3
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Dynamic Twitter Cover
A small Node script that generates a new Twitter cover image based on the time of day.
**[View live example](https://twitter.com/alexjpate)**
![Example](example.png)
## What is this?
A node script setup to run every hour (via GitHub Actions), that generates a new cover image based on the time of day. Inspired by the dynamic wallpaper feature on macOS.
Being based in London, the time of day is based off of UTC.
## Running it locally
In order to run this locally, you'll need two things:
1. A recent version of Node (only tested on 12.8)
2. Twitter API credentials. You can get a set from the [Developer portal](https://developer.twitter.com/en/apps).Then, run the following:
- `npm install`
- `node index.js`