node-red-contrib-balena 1.0.1

A set of nodes to interact with balena.io supervisor from node-red

npm install node-red-contrib-balena

A set of nodes that allow to interact with balena supervisor from Node-RED on balena

this set of nodes works only on balena applications, check balena-node-red for deploying Node-RED on balena

Installation

npm i node-red-contrib-balena -g

Nodes

nodes

A wrapper for balena-supervisor blink endpoint

Returns the HTTP Status Code

Ping

A wrapper for balena-supervisor ping endpoint

Returns the HTTP Status Code

Device

A wrapper for balena-supervisor device state endpoint

Returns a device state JSON object

Restart

A wrapper for balena-supervisor container restart endpoint

Returns the HTTP Status Code

Reboot

A wrapper for balena-supervisor reboot endpoint

Returns the HTTP Status Code

Shutdown

A wrapper for balena-supervisor shutdown endpoint

Returns the HTTP Status Code

Purge

A wrapper for balena-supervisor data purge endpoint

Returns a JSON object

Lock

sets the update lockfile, more info here

returns true when the action completes, throws an error and returns false when the action fails

Unlock

removes the update lockfile, more info here

returns true when the action completes, throws an error and returns false when the action fails

Update

A wrapper for balena-supervisor update endpoint with lock override

Returns the HTTP Status Code

Changelog

please see CHANGELOG.md

License

Copyright 2016 balena Ltd.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Node Info

Version: 1.0.1
Updated 4 years, 11 months ago
Rating: not yet rated

Actions

Rate:

Downloads

12 in the last week

Nodes

  • blink
  • device
  • ping
  • restart
  • reboot
  • shutdown
  • purge
  • lock
  • unlock
  • update

Keywords

  • node-red
  • balena
  • io
  • supervisor
  • device

Maintainers