Documentation
¶
Index ¶
- func WithHTTPClient(httpClient *http.Client) newArg
- type BodyError
- type ChannelOutput
- type ChannelOutputPanel
- type ChannelOutputPanels
- type ChannelOutputs
- type ChannelOutputsObj
- type Client
- func (c Client) ClearOverlaysModel(ctx context.Context, name string) error
- func (c Client) FillOverlaysModel(ctx context.Context, name string, r, g, b int) error
- func (c Client) GetChannelOutputs(ctx context.Context) (ChannelOutputs, error)
- func (c Client) GetConfig(ctx context.Context, name string, v interface{}) error
- func (c Client) GetFPPDSchedule(ctx context.Context) (Schedule, error)
- func (c Client) GetFPPDStatus(ctx context.Context) (FPPDStatus, error)
- func (c Client) GetFiles(ctx context.Context, dir string) (files []File, err error)
- func (c Client) GetOverlaysFonts(ctx context.Context) (fonts Fonts, err error)
- func (c Client) GetOverlaysModel(ctx context.Context, name string) (*Model, error)
- func (c Client) GetOverlaysModelData(ctx context.Context, name string, rle bool) (*ModelData, error)
- func (c Client) GetOverlaysModels(ctx context.Context) (models Models, err error)
- func (c Client) GetPlaylist(ctx context.Context, name string) (playlist Playlist, err error)
- func (c Client) GetPlaylists(ctx context.Context) (playlists []string, err error)
- func (c Client) GetPlugins(ctx context.Context) (plugins Plugins, err error)
- func (c Client) GetSchedule(ctx context.Context) (schedule []ScheduleEntries, err error)
- func (c Client) PostCommand(ctx context.Context, cmd Command)
- func (c Client) PostSchedule(ctx context.Context, scheduleIn []ScheduleEntries) (schedule []ScheduleEntries, err error)
- func (c Client) PostScheduleReload(ctx context.Context) (err error)
- func (c Client) SetOverlaysModelPixel(ctx context.Context, name string, x, y, r, g, b int) error
- func (c Client) SetOverlaysModelState(ctx context.Context, name string, state interface{}) error
- type Command
- type FPPDStatus
- type FPPTime
- type File
- type Files
- type Fonts
- type Intish
- type Model
- type ModelData
- type Models
- type Playlist
- type PlaylistEntries
- type PlaylistInfo
- type Plugins
- type RepeatMode
- type Schedule
- type ScheduleEntries
- type ScheduleResponse
- type Status
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithHTTPClient ¶
Types ¶
type ChannelOutput ¶
type ChannelOutput struct {
Type string `json:"type"`
SubType string `json:"subType"`
Enabled int `json:"enabled"`
CfgVersion int `json:"cfgVersion"`
StartChannel int `json:"startChannel"`
ChannelCount int `json:"channelCount"`
ColorOrder string `json:"colorOrder"`
Gamma string `json:"gamma"`
WiringPinout string `json:"wiringPinout"`
Brightness int `json:"brightness"`
PanelColorDepth int `json:"panelColorDepth"`
InvertedData int `json:"invertedData"`
PanelWidth int `json:"panelWidth"`
PanelHeight int `json:"panelHeight"`
PanelScan int `json:"panelScan"`
PanelOutputOrder bool `json:"panelOutputOrder"`
PanelOutputBlankRow bool `json:"panelOutputBlankRow"`
Panels ChannelOutputPanels `json:"panels"`
}
type ChannelOutputPanel ¶
type ChannelOutputPanels ¶
type ChannelOutputPanels []ChannelOutputPanel
type ChannelOutputs ¶
type ChannelOutputs []ChannelOutput
type ChannelOutputsObj ¶
type ChannelOutputsObj struct {
ChannelOutputs `json:"channelOutputs"`
}
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (Client) ClearOverlaysModel ¶
func (Client) FillOverlaysModel ¶
func (Client) GetChannelOutputs ¶
func (c Client) GetChannelOutputs(ctx context.Context) (ChannelOutputs, error)
func (Client) GetFPPDSchedule ¶
func (Client) GetFPPDStatus ¶
func (c Client) GetFPPDStatus(ctx context.Context) (FPPDStatus, error)
func (Client) GetOverlaysFonts ¶
func (Client) GetOverlaysModel ¶
func (Client) GetOverlaysModelData ¶
func (Client) GetOverlaysModels ¶
func (Client) GetPlaylist ¶
func (Client) GetPlaylists ¶
func (Client) GetPlugins ¶
func (Client) GetSchedule ¶
func (c Client) GetSchedule(ctx context.Context) (schedule []ScheduleEntries, err error)
func (Client) PostSchedule ¶
func (c Client) PostSchedule(ctx context.Context, scheduleIn []ScheduleEntries) (schedule []ScheduleEntries, err error)
func (Client) PostScheduleReload ¶
func (Client) SetOverlaysModelPixel ¶
type FPPDStatus ¶
type FPPDStatus struct {
MQTT struct {
Configured bool `json:"configured"`
Connected bool `json:"connected"`
} `json:"MQTT"`
Bridging bool `json:"bridging"`
CurrentPlaylist struct {
Count int `json:"count,string"`
Description string `json:"description"`
Index int `json:"index,string"`
Playlist string `json:"playlist"`
Type string `json:"type"`
} `json:"current_playlist"`
CurrentSequence string `json:"current_sequence"`
CurrentSong string `json:"current_song"`
DateStr string `json:"dateStr"`
Fppd string `json:"fppd"`
Mode Intish `json:"mode"`
ModeName string `json:"mode_name"`
Multisync bool `json:"multisync"`
NextPlaylist struct {
Playlist string `json:"playlist"`
StartTime FPPTime `json:"start_time"`
} `json:"next_playlist"`
RepeatMode RepeatMode `json:"repeat_mode"`
Scheduler struct {
Enabled int `json:"enabled"`
NextPlaylist struct {
PlaylistName string `json:"playlistName"`
ScheduledStartTime FPPTime `json:"scheduledStartTime"`
ScheduledStartTimeStr string `json:"scheduledStartTimeStr"`
} `json:"nextPlaylist"`
Status string `json:"status"`
} `json:"scheduler"`
SecondsPlayed string `json:"seconds_played"`
SecondsRemaining string `json:"seconds_remaining"`
Sensors []struct {
Formatted string `json:"formatted"`
Label string `json:"label"`
Postfix string `json:"postfix"`
Prefix string `json:"prefix"`
Value float64 `json:"value"`
ValueType string `json:"valueType"`
} `json:"sensors"`
Status int `json:"status"`
StatusName string `json:"status_name"`
Time string `json:"time"`
TimeStr string `json:"timeStr"`
TimeStrFull string `json:"timeStrFull"`
TimeElapsed string `json:"time_elapsed"`
TimeRemaining string `json:"time_remaining"`
Uptime string `json:"uptime"`
UptimeDays float64 `json:"uptimeDays"`
UptimeHours float64 `json:"uptimeHours"`
UptimeMinutes float64 `json:"uptimeMinutes"`
UptimeSeconds int `json:"uptimeSeconds"`
UptimeStr string `json:"uptimeStr"`
UptimeTotalSeconds int `json:"uptimeTotalSeconds"`
UUID string `json:"uuid"`
Volume int `json:"volume"`
Warnings []string `json:"warnings"`
}
type FPPTime ¶
func (*FPPTime) UnmarshalJSON ¶
type Intish ¶
type Intish int
A Intish is an int that can be unmarshalled from a JSON field that has either a number or a string value. E.g. if the json field contains an string "42", the FlexInt value will be "42".
func (*Intish) UnmarshalJSON ¶
type Model ¶
type Model struct {
ChannelCount int `json:"ChannelCount"`
ChannelCountPerNode int `json:"ChannelCountPerNode"`
Name string `json:"Name"`
Orientation string `json:"Orientation"`
StartChannel int `json:"StartChannel"`
StartCorner string `json:"StartCorner"`
StrandsPerString int `json:"StrandsPerString"`
StringCount int `json:"StringCount"`
Type string `json:"Type"`
AutoCreated bool `json:"autoCreated"`
EffectRunning bool `json:"effectRunning"`
Height int `json:"height"`
IsActive int `json:"isActive"`
Width int `json:"width"`
}
type Playlist ¶
type Playlist struct {
Name string `json:"name"`
Version int `json:"version"`
Repeat int `json:"repeat"`
LoopCount int `json:"loopCount"`
Empty bool `json:"empty"`
Desc string `json:"desc"`
Random int `json:"random"`
LeadIn []PlaylistEntries `json:"leadIn"`
MainPlaylist []PlaylistEntries `json:"mainPlaylist"`
LeadOut []PlaylistEntries `json:"leadOut"`
PlaylistInfo PlaylistInfo `json:"playlistInfo"`
}
type PlaylistEntries ¶
type PlaylistInfo ¶
type RepeatMode ¶
type RepeatMode struct {
Value int
}
func (*RepeatMode) UnmarshalJSON ¶
func (rm *RepeatMode) UnmarshalJSON(data []byte) error
type Schedule ¶
type Schedule struct {
Enabled int `json:"enabled"`
Entries []struct {
Args []string `json:"args,omitempty"`
Command string `json:"command,omitempty"`
Day int `json:"day"`
DayStr string `json:"dayStr"`
Enabled int `json:"enabled"`
EndDate string `json:"endDate"`
EndTime string `json:"endTime"`
ID int `json:"id"`
MultisyncCommand bool `json:"multisyncCommand,omitempty"`
MultisyncHosts string `json:"multisyncHosts,omitempty"`
Playlist string `json:"playlist"`
Repeat int `json:"repeat"`
RepeatInterval int `json:"repeatInterval"`
StartDate string `json:"startDate"`
StartTime string `json:"startTime"`
StopType int `json:"stopType"`
StopTypeStr string `json:"stopTypeStr"`
Type string `json:"type"`
} `json:"entries"`
Items []struct {
Args []string `json:"args"`
Command string `json:"command"`
EndTime int `json:"endTime"`
EndTimeStr string `json:"endTimeStr"`
ID int `json:"id"`
MultisyncCommand bool `json:"multisyncCommand"`
MultisyncHosts string `json:"multisyncHosts"`
Priority int `json:"priority"`
StartTime int `json:"startTime"`
StartTimeStr string `json:"startTimeStr"`
} `json:"items"`
}
type ScheduleEntries ¶
type ScheduleEntries []struct {
Enabled int `json:"enabled"`
Sequence int `json:"sequence"`
Day int `json:"day"`
StartTime string `json:"startTime"`
StartTimeOffset int `json:"startTimeOffset"`
EndTime string `json:"endTime"`
EndTimeOffset int `json:"endTimeOffset"`
Repeat int `json:"repeat"`
StartDate string `json:"startDate"`
EndDate string `json:"endDate"`
StopType int `json:"stopType"`
Playlist string `json:"playlist"`
Command string `json:"command,omitempty"`
Args []string `json:"args,omitempty"`
MultisyncCommand bool `json:"multisyncCommand,omitempty"`
}
type ScheduleResponse ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.