infrared

package
v0.0.0-...-ad25176 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2018 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Query

type Query struct {
	Data   string `json:"data"`             //ir code data (hex code/ array of int values for raw IR sequence)
	Type   string `json:"type"`             //device type (RAW, ROOMBA, SAMSUNG, etc)
	KHZ    uint64 `json:"khz,omitempty"`    //needed only for raw requests
	Length uint64 `json:"length,omitempty"` //needed except for raw/roomba signals
	Pulse  uint64 `json:"pulse,omitempty"`  //repeat a signal rapidly.
	PDelay uint64 `json:"pdelay,omitempty"` //delay between pulses
	Repeat uint64 `json:"repeat,omitempty"` //number of times to repeat the signal
	RDelay uint64 `json:"rdelay,omitempty"` //delay between signal repeats
	Out    uint64 `json:"out,omitempty"`    //which target ir sender to use.
}

Query is a JSON Body of an infrared blaster JSON request

type Service

type Service struct {
	// contains filtered or unexported fields
}

Service to get the device for chromecast.

func NewService

func NewService(config config.Wrapper) *Service

NewService constructor

func (*Service) MuteSoundbox

func (s *Service) MuteSoundbox()

MuteSoundbox using ir blaster

func (*Service) SetACChill

func (s *Service) SetACChill()

SetACChill using ir blaster

func (*Service) SetACFan

func (s *Service) SetACFan()

SetACFan using ir blaster

func (*Service) SetACHeat

func (s *Service) SetACHeat()

SetACHeat using ir blaster

func (*Service) SetACOff

func (s *Service) SetACOff()

SetACOff using ir blaster

func (*Service) SwitchSoundboxPower

func (s *Service) SwitchSoundboxPower()

SwitchSoundboxPower using ir blaster

func (*Service) SwitchTvPower

func (s *Service) SwitchTvPower()

SwitchTvPower using ir blaster

func (*Service) VolumeDecreaseSoundbox

func (s *Service) VolumeDecreaseSoundbox(increaseBy uint64)

VolumeDecreaseSoundbox using ir blaster

func (*Service) VolumeIncreaseSoundbox

func (s *Service) VolumeIncreaseSoundbox(decreaseBy uint64)

VolumeIncreaseSoundbox using ir blaster

Jump to

Keyboard shortcuts

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