Skip to content

czerwe/gobravia

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status

gobravia

Library to controll an Bravia (2014)

Parameters

gobravia.GetBravia

name description
IP IP of Bravia
PIN PIN for remote configuration
MAC MAC address of host

gobravia.Poweron

name description
Broadcast Broadcast of network

commands

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()

Send Commands

The command can be send either by the command or by the alias.

bravia.SendCommand(command)
bravia.SendAlias(alias)

example

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)
  
}

About

Library to controll an Bravia (2014)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages