godfrey4home

module
v0.0.0-...-564ad5f Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2023 License: MIT

README

godfrey4home

GodFrey4Home will help you to manage hardware devices for a HomeKit client ( Iphone,Ipad) , based on a GO stack software.

GodFrey4Home is provide under MIT License.

GodFrey4Home is currently a set of independent programm.

homekit-tasmota-switch.go

power-switch-cgi

This program expose a http/cgi interface to drive a X220 relay board => http://gce-electronics.com/en/-usb/359-controller-usb-2-relay-board-x220-.html This relay board :

  • drive 2 relay : 230 Vac / 5A or 125Vac / 10A
  • power must be supply by USB connection

Linux kernel must have these modules loaded

  • usbserial
  • ftdi_sio

Can be modify , to drive a http://gce-electronics.com/en/-usb/23-usb-relay-controller-x440.html

homekit-power-switch

A homekit bridge , that will access a relay board expose by power-switch-cgi

This bridge use the package github.com/brutella/hc , for providing the HomeKit interface.

to compile

for your local architecture
cd src
go build -ldflags "-s -w" -v power-switch-cgi.go
for a different architecture

For example , you want deploy the binary on a raspberry PI or or some openwrt router .

for a raspberry PI

env GOOS=linux GOARCH=arm GOARM=5 go build   -ldflags "-s -w" -v homekit-power-switch.go

for a cubietruck see debian on cubie truck (https://www.armbian.com/cubietruck/)

env GOOS=linux GOARCH=arm GOARM=7 go build   -ldflags "-s -w" -v homekit-power-switch.go

Directories

Path Synopsis
------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------

Jump to

Keyboard shortcuts

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