Documentation ¶
Index ¶
- type Query
- type Service
- func (s *Service) MuteSoundbox()
- func (s *Service) SetACChill()
- func (s *Service) SetACFan()
- func (s *Service) SetACHeat()
- func (s *Service) SetACOff()
- func (s *Service) SwitchSoundboxPower()
- func (s *Service) SwitchTvPower()
- func (s *Service) VolumeDecreaseSoundbox(increaseBy uint64)
- func (s *Service) VolumeIncreaseSoundbox(decreaseBy uint64)
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 (*Service) SwitchSoundboxPower ¶
func (s *Service) SwitchSoundboxPower()
SwitchSoundboxPower using ir blaster
func (*Service) VolumeDecreaseSoundbox ¶
VolumeDecreaseSoundbox using ir blaster
func (*Service) VolumeIncreaseSoundbox ¶
VolumeIncreaseSoundbox using ir blaster
Click to show internal directories.
Click to hide internal directories.