node-red-contrib-niu-cloud

A Node-RED library for connect to NIU Cloud for your electric scooter

Usage no npm install needed!

<script type="module">
  import nodeRedContribNiuCloud from 'https://cdn.skypack.dev/node-red-contrib-niu-cloud';
</script>

README

node-red-contrib-niu-cloud

Information Panel\

A Node-RED library for connect to NIU Cloud for your electric scooter

npm version Npm download GitHub stars GitHub issues License

NPM


NIU Cloud connector for Node-RED

This library allows you to request information about your vehicle from the NIU Cloud. It handles many actions that can be performed on multiple vehicles.

To install this library please search for "niu" in the node palette

Supported actions

Vehicles Get a list of vehicles.
Motor info Get motor info of vehicle.
Overall Tally Get overall tally of vehicle.
Battery info Get battery info of vehicle.
Battery health Get battery health of vehicle.
FW Version Get firmware version.
Vehicle position Get current position of a vehicle.
Update info Get update information.
Tracks Get recorded tracks.

For information on the data that all actions return, see the API description here

Changelog

See the changelog for all the details of each releases

Node-RED palette

Available Nodes

How to use

Set your Niu Cloud Account credential and click on "refresh token", then select a vehicle and save the config note.

Information Panel

On the node, select the desired action and inject any payload to retrieve information from the Niu cloud

Information Panel

Debug

Use the verbose -v flag when starting Node-RED to get more information or use node-red-log and enable "Debug Logs" on Configuration Node as needed


Attributions

The node-red-contrib-niu-cloud using nodejs library niu-cloud-connector for all features.

License

This project is released under The MIT License (MIT)