An API to show what I'm up to.
https://chse.dev/now
https://life-api.chse.dev/
Chase
c8500ce870
Reviewed-on: #30 |
||
---|---|---|
.github | ||
.vscode | ||
extension-src | ||
src | ||
.dockerignore | ||
.editorconfig | ||
.env.example | ||
.eslintrc.json | ||
.gitattributes | ||
.gitignore | ||
Dockerfile | ||
LICENSE.md | ||
Makefile | ||
README.md | ||
package-lock.json | ||
package.json | ||
renovate.json |
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 .