An API to show what I'm up to. https://chse.dev/now https://life-api.chse.dev/
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.
Go to file
Chase c8500ce870
build Details
lint Details
Merge pull request 'Update dependency express-rate-limit to v7.0.2' (#30) from renovate/express-rate-limit-7.x into main
Reviewed-on: #30
2023-09-27 12:52:07 +00:00
.github Update '.github/workflows/linter.yml' 2023-09-13 16:36:42 +00:00
.vscode Initial Commit 2023-08-21 22:27:09 -05:00
extension-src try n yeet cors? 2023-08-22 16:51:27 -05:00
src fix empty string 2023-08-22 20:03:12 -05:00
.dockerignore Initial Commit 2023-08-21 22:27:09 -05:00
.editorconfig Initial Commit 2023-08-21 22:27:09 -05:00
.env.example Manual Addition. 2023-08-22 08:06:38 -05:00
.eslintrc.json att. to fix chrome extension? 2023-08-22 15:34:47 -05:00
.gitattributes Initial Commit 2023-08-21 22:27:09 -05:00
.gitignore Initial Commit 2023-08-21 22:27:09 -05:00
Dockerfile Initial Commit 2023-08-21 22:27:09 -05:00
LICENSE.md Initial Commit 2023-08-21 22:27:09 -05:00
Makefile Initial Commit 2023-08-21 22:27:09 -05:00
README.md feat list 2023-08-22 18:42:24 -05:00
package-lock.json Merge pull request 'Update dependency express-rate-limit to v7.0.2' (#30) from renovate/express-rate-limit-7.x into main 2023-09-27 12:52:07 +00:00
package.json Merge pull request 'Update dependency express-rate-limit to v7.0.2' (#30) from renovate/express-rate-limit-7.x into main 2023-09-27 12:52:07 +00:00
renovate.json Initial Commit 2023-08-21 22:27:09 -05:00

README.md

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 .