Go library for the RFXcom RFXtrx433 USB transceiver:
http://www.rfxcom.com/store/Transceivers/12103
The RFXtrx433 is great for home automation. It's affordable, both receives and transmits, and it supports a huge variety of devices.
- Oregon weather devices (THGR810, WTGR800, THN132N, PCR800, etc.)
- X10 RF devices (Domia Lite, HE403, etc.)
- HomeEasy devices (HE300, HE301, HE303, HE305, etc.)
- RFXcom RFXtrx433 USB Transceiver
Run:
go get github.com/barnybug/gorfxtrx
Example:
import (
"fmt"
"github.com/barnybug/gorfxtrx"
)
func main() {
dev, err := gorfxtrx.Open("/dev/serial/by-id/usb-RFXCOM-...", true)
if err != nil {
panic("Error opening device")
}
for {
packet, err := dev.Read()
if err != nil {
continue
}
fmt.Println("Received", packet)
}
dev.Close()
}
0.1.0
- First release