This is the server application for the Homey app Pi Relay Controller Homey that runs on Raspberry Pi with the SB Components relay shield.
To install, Clone
this repo or Download ZIP
file and unzip to a suitable directory e.g. /var/www
, then start the server from that directory with npm start
.
Configuration is via the config.yaml
file where defaults and GPIO mappings can be edited should another relay board be used.
Verbose logging (level 10) to the console is enabled by default, edit the log level in config.yaml
to one of the options listed.
The @grpc/grpc-js and @grpc/proto-loader libraries are used to implement gRPC functionality.
This application was developed and tested on a Raspberry Pi 4 running Raspbian 32-bit and node.js v16 with SB Components relay shield; other SBCs and Linux distributions such as Ubuntu may work but they have not been tested.
Copyright (C) 2019-2021 by David Williamson.
The source code is completely free and released under the Apache 2.0 license.