Basic examples about how to use Node-Red and NanoPlayBoard.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
00-potentiometer
01-potentiometer-mqtt
02-temperature-twitter
LICENSE
README.md

README.md

NanoPlayBoard-Node-Red

Example 0. How to send potentiometer values through serial port

  • Upload this sketch on your NanoPlayBoard.
  • Start Node-Red from your terminal with: $ node-red
  • Import this flow.

Example 1. How to send potentiometer values to Adafruit IO using MQTT

  • Upload this sketch on your NanoPlayBoard.
  • Start Node-Red from your terminal with: $ node-red
  • Import this flow.
  • The Adafruit IO dashboard is available here.

Connection details

  • Host: io.adafruit.com
  • Port: 1883 or 8883 (for SSL encrypted connection)
  • Username: your Adafruit account username (see the accounts.adafruit.com page here to find yours)
  • Password: your Adafruit IO key (click the AIO Key button on a dashboard to find the key)
  • Topic: (username)/feeds/(feed name or key)
  • QoS Levels: Adafruit IO MQTT API supports QoS level 0 (at most once) and 1 (at least once) only.
  • Rate Limit: 2 requests per second (or 120 requests within 60 seconds).
  • Reference.

Example 2. How to publish weather data via Twitter

  • Upload this sketch on your NanoPlayBoard.
  • Start Node-Red from your terminal with: $ node-red
  • Import this flow.