Simple Go Library for irMagician
go get github.com/tknhs/go-irMagician
This example is for irMaigician T.
package main
import (
"fmt"
"log"
"github.com/tknhs/go-irMagician"
)
func main() {
m, err := irMagician.New("/dev/tty.usbmodem1421")
if err != nil {
log.Fatal(err)
}
t, err := m.GetTemperature()
if err != nil {
log.Fatal(err)
}
fmt.Println(t)
}
This library is licensed under the MIT license.