An API to show what I'm up to.
https://chse.dev/now
https://life-api.chse.dev/
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Reviewed-on: #26 |
20 hours ago | |
---|---|---|
.github | 1 week ago | |
.vscode | 1 month ago | |
extension-src | 1 month ago | |
src | 1 month ago | |
.dockerignore | 1 month ago | |
.editorconfig | 1 month ago | |
.env.example | 1 month ago | |
.eslintrc.json | 1 month ago | |
.gitattributes | 1 month ago | |
.gitignore | 1 month ago | |
Dockerfile | 1 month ago | |
LICENSE.md | 1 month ago | |
Makefile | 1 month ago | |
README.md | 1 month ago | |
package-lock.json | 20 hours ago | |
package.json | 20 hours ago | |
renovate.json | 1 month ago |
README.md
An API to show what I'm up to.
Features
- Pulls Music from Last.fm.
- Pulls TV/Movies from Tautulli.
- Allows manually setting/clearing the current activity.
- Badge endpoint for showing current activity.
- Chrome Extension to set current activity (Reddit/Hacker News/YouTube).
Running
docker run -d \
--name life-api \
-p 3000:3000 \
-e NODE_ENV=production \
-e LASTFM_API_KEY= \
-e LASTFM_USER= \
-e TAUTULLI_BASEURL= \
-e TAUTULLI_API_KEY= \
-e TAUTULLI_USER= \
-e API_KEY= \
git.chse.dev/chase/life-api:latest
Endpoints
/
- Returns a JSON object with all the data./badge
- Takes current activity and returns a badge./manual
[POST] - Manually set the current activity./manual/clear
[POST] - Resets the current activity.
Development
git clone https://git.chse.dev/chase/life-api.git
cd life-api
npm i
cp .env.example .env # add creds.
node .