rgrweb

command module
v1.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 8, 2024 License: MIT Imports: 11 Imported by: 0

README

rgrweb

Remote Garage Remote Web UI

This webapp is part of a (small) project detailed in this post.

It is a single "push" button page that will enable a chosen GPIO pin (specified in --pin-out) and a "virtual LED" to reflect the state of another GPIO pin (--pin-in).
It is used to control a garage opener but it can certainly be used in many other flip-switch scenarios.

It uses github.com/warthog618/gpio and BCM GPIO mapping is used.

Demo

demo

Usage
Usage of rgrweb:
  -b, --bind string         address:port to bind webserver (default "127.0.0.1:8081")
  -d, --duration duration   Time that output GPIO pin will be HIGH (default 5s)
  -i, --pin-in int          Input GPIO (feedback) - 0 means fake it
  -o, --pin-out int         Output GPIO (trigger) - 0 means fake it
      --test-input          Reading input GPIO for 5 seconds (testing)
      --test-output         Enable output GPIO for 5 seconds (testing)

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
bogus file just to include the go:generate directive
bogus file just to include the go:generate directive

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL