Skip to content

node.js app to run on a Raspberry Pi that exposes a gRPC API to allow control of relays connected to the GPIO pins

Notifications You must be signed in to change notification settings

daviwil2/pi-relay-controller-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pi Relay Controller Server

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.

License

Copyright (C) 2019-2021 by David Williamson.

The source code is completely free and released under the Apache 2.0 license.

About

node.js app to run on a Raspberry Pi that exposes a gRPC API to allow control of relays connected to the GPIO pins

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published