Simple app to read the spotify status and show some lyrics on the tesla screen
This app is now obsolete. Tesla's built in browser now supports using Spotify Web Lyrics directly.
npm install
for dependencies- Setup API credentials with the various services
- Update the service credential in
.env
file. Refer to.env.example
for what's needed npm start
, then accesslocalhost:8000
Suggest to mount the .env
as a bind mount
If deploying to AE, need some special arrangement for the env file env file in GAE
- Store env vars in Google Cloud’s Build Trigger
- Read in env vars from the Build Trigger in one of its build steps
- Write env vars to a local .env file
- Import env vars from .env to your Node.js app using dotenv package
Service account permissions
- Enable the AE admin API
- configure the cloud build service account permission, enable app engine admin
How? I forgot
How to get a node/express app production ready
Inspired from 小明 Player
API has the following params. Refer to API documentation
- input: name
- filter: "name" for name search, only name/id/url works
- type: source, 163 in this case, kugou is slow
- key/secret: api auth from
guaqb.cn
- time: get timestamp on lrc
zh_cn_zh_tw package provides straightforward, mapping based translation.
Ugh ok... let's learn node.js real quick... ... Done ish! Here
Finding the right lyrics JS filtering response
let res = users.filter((it) => it.name.includes("oli"));
Notes: Simple filter works just fine it appears
Looks like need to learn node.js somehow and have this hosted in home server... Why? coz how else can i secure my keys and secrets... Keeping secrets in node.js
Tutorial(or see passportJS doc??) PassportJS SQLite nodejs return redirect
302 redirect resp.write