Library to controll an Bravia (2014)
name | description |
---|---|
IP | IP of Bravia |
PIN | PIN for remote configuration |
MAC | MAC address of host |
name | description |
---|---|
Broadcast | Broadcast of network |
The commands stored in an map, the key is an alias (e.g. up, down, num1).
{
"<alias>": "<command>"
}
The commands can be read by this
bravia = gobravia.GetBravia("10.0.0.11", "0000", "FC:F1:52:F6:FA:8F")
bravia.GetCommands()
and can be printed to stdout with
bravia.PrintCodes()
The command can be send either by the command or by the alias.
bravia.SendCommand(command)
bravia.SendAlias(alias)
The commands stored in an map, the key is an alias (e.g. up, down, num1).
package main
import (
"github.com/czerwe/gobravia"
)
func main() {
bravia = gobravia.GetBravia("10.0.0.11", "0000", "FC:F1:52:F6:FA:8F")
bravia.GetCommands()
bravia.Poweron("10.0.0.255")
bravia.SendCommand(command)
}