This repository has been archived on 2023-09-27. You can view files and clone it, but cannot push or open issues or pull requests.
life-api/README.md

1.1 KiB

life-api
Donate

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 .