Stack is included nodered
and TTN gateway
, that deployed via resin.io
Setup these environment variables via Device Environment Variables
or Device Service Variables
on https://dashboard.resin.io
NODE_RED_USER
(required): Admin User login forBasic Authentication
NODE_RED_PASSWORD
: Encrypted password withbcrypt
withcompute = 8
NODE_RED_PLAIN_PASSWORD
: Plain passwordLOG_LEVEL
(optinal): specificnode-red
log level. Default isinfo
.
If NODE_RED_PASSWORD
is not yet defined, system will generate encrypted password by NODE_RED_PLAIN_PASSWORD
and print to console. Then you can copy and re-define NODE_RED_PASSWORD
and remove NODE_RED_PLAIN_PASSWORD
on resin
dashboard. The service will be restarted and updated automatically.
If NODE_RED_USER
or one of NODE_RED_PASSWORD
and NODE_RED_PLAIN_PASSWORD
is blank, service will crash.
- Require using USB -> add user to group
dialout
- To add more libraries in NodeRed, update
package.json
then rebuildresin
image by pushing code to yourgit.resin.io
If USB serial port
does not work properly in some reason, use usb_reset
library flow with USB_VENDOR_ID
and USB_VENDOR_PRODUCT
in environement variables.
Setup these environment variables via Device Environment Variables
or Device Service Variables
on https://dashboard.resin.io
GW_ID
: copy the value listed for theGateway ID
in the TTN console.GW_KEY
: on the TTN console click on the little eye icon to the right ofGateway Key
, this will display the value. Now use the icon at the end of the line to copy the value (and displaycopied
)GW_RESET_PIN
: value =11
-
Get the code from github
git clone https://github.com/zero-88/rise-iot-containers.git cd rise-iot-containers
-
Add
resin
remote.git remote add resin <your resin.io account>@git.resin.io:<your resin.io account>/rise-iot-containers.git
-
Push to
resin
then enjoy coffee in whileresin
service build and deploy your app.git push resin master