- Clone it onto your own github rep (optional)
- clone if from your repo to your raspberry pi, or directly to your pi
- Open the admin page and add it to the list of libraries using the full path
- Use
npm i
to install the dependencies.
- create a template for your function using the ras-lights app
- copy the template from the app and save it in a new file in the
/src
directory of your repo. - Write the function body. I highly recommend using VS Code for this task.
- Import your new function in the
src/index.ts
file - Compile the library using
npm run build
- Push the library to your pi
- The name field for the remote module in the webpack plugin must match the name of the library in the ras-lights admin
name: "user",