Documentation
¶
Index ¶
- func GetNetworkInterfaces() networkState
- type CalibrationInfo
- type ManagementAPI
- func (api *ManagementAPI) CheckForUpdate(w http.ResponseWriter, r *http.Request)
- func (api *ManagementAPI) CheckSaltConnection(w http.ResponseWriter, r *http.Request)
- func (api *ManagementAPI) ClearConfigSection(w http.ResponseWriter, r *http.Request)
- func (api *ManagementAPI) DeleteEvents(w http.ResponseWriter, r *http.Request)
- func (api *ManagementAPI) DeleteRecording(w http.ResponseWriter, r *http.Request)
- func (api *ManagementAPI) FrameMetadata(w http.ResponseWriter, r *http.Request)
- func (api *ManagementAPI) GetCalibration(w http.ResponseWriter, r *http.Request)
- func (api *ManagementAPI) GetClock(w http.ResponseWriter, r *http.Request)
- func (api *ManagementAPI) GetConfig(w http.ResponseWriter, r *http.Request)
- func (api *ManagementAPI) GetDeviceInfo(w http.ResponseWriter, r *http.Request)
- func (api *ManagementAPI) GetEventKeys(w http.ResponseWriter, r *http.Request)
- func (api *ManagementAPI) GetEvents(w http.ResponseWriter, r *http.Request)
- func (api *ManagementAPI) GetNetworkInfo(w http.ResponseWriter, r *http.Request)
- func (api *ManagementAPI) GetRecording(w http.ResponseWriter, r *http.Request)
- func (api *ManagementAPI) GetRecordings(w http.ResponseWriter, r *http.Request)
- func (api *ManagementAPI) GetSignalStrength(w http.ResponseWriter, r *http.Request)
- func (api *ManagementAPI) GetUsb0Addr(w http.ResponseWriter, r *http.Request)
- func (api *ManagementAPI) GetVersion(w http.ResponseWriter, r *http.Request)
- func (api *ManagementAPI) PostClock(w http.ResponseWriter, r *http.Request)
- func (api *ManagementAPI) PostReleaseChannel(w http.ResponseWriter, r *http.Request)
- func (api *ManagementAPI) Reboot(w http.ResponseWriter, r *http.Request)
- func (api *ManagementAPI) Reregister(w http.ResponseWriter, r *http.Request)
- func (api *ManagementAPI) RunFFC(w http.ResponseWriter, r *http.Request)
- func (api *ManagementAPI) SaveCalibration(w http.ResponseWriter, r *http.Request)
- func (api *ManagementAPI) SetLocation(w http.ResponseWriter, r *http.Request)
- func (api *ManagementAPI) TakeRawSnapshot(w http.ResponseWriter, r *http.Request)
- func (api *ManagementAPI) TakeSnapshot(w http.ResponseWriter, r *http.Request)
- func (api *ManagementAPI) Update(w http.ResponseWriter, r *http.Request)
- type NetworkConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetNetworkInterfaces ¶ added in v0.0.7
func GetNetworkInterfaces() networkState
Types ¶
type CalibrationInfo ¶ added in v0.2.0
type CalibrationInfo struct { ThermalRefTemp float32 TemperatureCelsius float32 SnapshotValue float32 ThresholdMinFever float32 SnapshotTime int64 Top float32 Left float32 Right float32 Bottom float32 CalibrationBinaryVersion string UuidOfUpdater int64 PlayNormalSound bool PlayWarningSound bool PlayErrorSound bool }
type ManagementAPI ¶
type ManagementAPI struct { AppVersion string `json:"appVersion"` BinaryVersion string `json:"binaryVersion"` LatestCalibration map[string]interface{} Mode string // contains filtered or unexported fields }
func (*ManagementAPI) CheckForUpdate ¶ added in v0.6.10
func (api *ManagementAPI) CheckForUpdate(w http.ResponseWriter, r *http.Request)
func (*ManagementAPI) CheckSaltConnection ¶ added in v0.5.3
func (api *ManagementAPI) CheckSaltConnection(w http.ResponseWriter, r *http.Request)
func (*ManagementAPI) ClearConfigSection ¶
func (api *ManagementAPI) ClearConfigSection(w http.ResponseWriter, r *http.Request)
ClearConfigSection will delete the config from a section so the default values will be used.
func (*ManagementAPI) DeleteEvents ¶
func (api *ManagementAPI) DeleteEvents(w http.ResponseWriter, r *http.Request)
DeleteEvent takes an array of event keys ([]uint64) and will delete all given events.
func (*ManagementAPI) DeleteRecording ¶
func (api *ManagementAPI) DeleteRecording(w http.ResponseWriter, r *http.Request)
DeleteRecording deletes the given cptv file
func (*ManagementAPI) FrameMetadata ¶
func (api *ManagementAPI) FrameMetadata(w http.ResponseWriter, r *http.Request)
func (*ManagementAPI) GetCalibration ¶ added in v0.0.7
func (api *ManagementAPI) GetCalibration(w http.ResponseWriter, r *http.Request)
func (*ManagementAPI) GetClock ¶
func (api *ManagementAPI) GetClock(w http.ResponseWriter, r *http.Request)
func (*ManagementAPI) GetConfig ¶
func (api *ManagementAPI) GetConfig(w http.ResponseWriter, r *http.Request)
GetConfig will return the config settings and the defaults
func (*ManagementAPI) GetDeviceInfo ¶
func (api *ManagementAPI) GetDeviceInfo(w http.ResponseWriter, r *http.Request)
GetDeviceInfo returns information about this device
func (*ManagementAPI) GetEventKeys ¶
func (api *ManagementAPI) GetEventKeys(w http.ResponseWriter, r *http.Request)
GetEventKeys will return an array of the event keys on the device
func (*ManagementAPI) GetEvents ¶
func (api *ManagementAPI) GetEvents(w http.ResponseWriter, r *http.Request)
GetEvents takes an array of keys ([]uint64) and will return a JSON of the results.
func (*ManagementAPI) GetNetworkInfo ¶ added in v0.0.7
func (api *ManagementAPI) GetNetworkInfo(w http.ResponseWriter, r *http.Request)
func (*ManagementAPI) GetRecording ¶
func (api *ManagementAPI) GetRecording(w http.ResponseWriter, r *http.Request)
GetRecording downloads a cptv file
func (*ManagementAPI) GetRecordings ¶
func (api *ManagementAPI) GetRecordings(w http.ResponseWriter, r *http.Request)
GetRecordings returns a list of cptv files in a array.
func (*ManagementAPI) GetSignalStrength ¶
func (api *ManagementAPI) GetSignalStrength(w http.ResponseWriter, r *http.Request)
func (*ManagementAPI) GetUsb0Addr ¶ added in v0.6.10
func (api *ManagementAPI) GetUsb0Addr(w http.ResponseWriter, r *http.Request)
func (*ManagementAPI) GetVersion ¶
func (api *ManagementAPI) GetVersion(w http.ResponseWriter, r *http.Request)
func (*ManagementAPI) PostClock ¶
func (api *ManagementAPI) PostClock(w http.ResponseWriter, r *http.Request)
func (*ManagementAPI) PostReleaseChannel ¶ added in v0.6.10
func (api *ManagementAPI) PostReleaseChannel(w http.ResponseWriter, r *http.Request)
func (*ManagementAPI) Reboot ¶
func (api *ManagementAPI) Reboot(w http.ResponseWriter, r *http.Request)
Reboot will reboot the device after a delay so a response can be sent back
func (*ManagementAPI) Reregister ¶
func (api *ManagementAPI) Reregister(w http.ResponseWriter, r *http.Request)
Reregister can change the devices name and gruop
func (*ManagementAPI) RunFFC ¶ added in v0.4.0
func (api *ManagementAPI) RunFFC(w http.ResponseWriter, r *http.Request)
func (*ManagementAPI) SaveCalibration ¶ added in v0.0.7
func (api *ManagementAPI) SaveCalibration(w http.ResponseWriter, r *http.Request)
func (*ManagementAPI) SetLocation ¶
func (api *ManagementAPI) SetLocation(w http.ResponseWriter, r *http.Request)
SetLocation is for specifically writing to location setting.
func (*ManagementAPI) TakeRawSnapshot ¶
func (api *ManagementAPI) TakeRawSnapshot(w http.ResponseWriter, r *http.Request)
TakeRawSnapshot will request a new raw snapshot to be taken by thermal-recorder
func (*ManagementAPI) TakeSnapshot ¶
func (api *ManagementAPI) TakeSnapshot(w http.ResponseWriter, r *http.Request)
TakeSnapshot will request a new snapshot to be taken by thermal-recorder
func (*ManagementAPI) Update ¶ added in v0.6.10
func (api *ManagementAPI) Update(w http.ResponseWriter, r *http.Request)
type NetworkConfig ¶ added in v0.0.7
type NetworkConfig struct {
Online bool `yaml:"online"`
}
NetworkConfig is a struct to store our network configuration values in.