Documentation ¶
Index ¶
- func AboutHandler(w http.ResponseWriter, r *http.Request, conf *goconfig.Config)
- func AboutHandlerGen(conf *goconfig.Config) func(http.ResponseWriter, *http.Request)
- func AdvancedMenuHandler(w http.ResponseWriter, r *http.Request)
- func AudiobaitHandler(w http.ResponseWriter, r *http.Request, conf *goconfig.Config)
- func AudiobaitHandlerGen(conf *goconfig.Config) func(http.ResponseWriter, *http.Request)
- func AudiobaitLogEntriesHandler(w http.ResponseWriter, r *http.Request)
- func CameraHandler(w http.ResponseWriter, r *http.Request)
- func CameraSnapshot(w http.ResponseWriter, r *http.Request)
- func CheckInterfaceHandler(w http.ResponseWriter, r *http.Request)
- func DiskMemoryHandler(w http.ResponseWriter, r *http.Request)
- func GenLocationHandler(config *goconfig.Config) func(w http.ResponseWriter, r *http.Request)
- func IndexHandler(w http.ResponseWriter, r *http.Request)
- func LocationHandler(config *goconfig.Config, w http.ResponseWriter, r *http.Request)
- func NetworkHandler(w http.ResponseWriter, r *http.Request)
- func Rename(w http.ResponseWriter, r *http.Request)
- func SpeakerStatusHandler(w http.ResponseWriter, r *http.Request)
- func SpeakerTestHandler(w http.ResponseWriter, r *http.Request)
- func TimeHandler(w http.ResponseWriter, r *http.Request)
- func WifiNetworkHandler(w http.ResponseWriter, r *http.Request)
- type NetworkConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AboutHandler ¶
AboutHandler shows the currently installed packages on the device.
func AboutHandlerGen ¶
AboutHandlerGen is a wrapper for the AboutHandler function.
func AdvancedMenuHandler ¶
func AdvancedMenuHandler(w http.ResponseWriter, r *http.Request)
AdvancedMenuHandler is a screen to more advanced settings.
func AudiobaitHandler ¶
AudiobaitHandler shows the status and details of audiobait being played on the device.
func AudiobaitHandlerGen ¶
AudiobaitHandlerGen is a wrapper for the AudiobaitHandler function.
func AudiobaitLogEntriesHandler ¶
func AudiobaitLogEntriesHandler(w http.ResponseWriter, r *http.Request)
AudiobaitLogEntriesHandler returns recent log entries for the audiobait process
func CameraHandler ¶
func CameraHandler(w http.ResponseWriter, r *http.Request)
CameraHandler will show a frame from the camera to help with positioning
func CameraSnapshot ¶
func CameraSnapshot(w http.ResponseWriter, r *http.Request)
CameraSnapshot - Still image from Lepton camera
func CheckInterfaceHandler ¶
func CheckInterfaceHandler(w http.ResponseWriter, r *http.Request)
CheckInterfaceHandler checks an interface to see if it is up or down. To do this the ping command is used to send data to Cloudfare at 1.1.1.1
func DiskMemoryHandler ¶
func DiskMemoryHandler(w http.ResponseWriter, r *http.Request)
DiskMemoryHandler shows disk space usage and memory usage
func GenLocationHandler ¶
func IndexHandler ¶
func IndexHandler(w http.ResponseWriter, r *http.Request)
IndexHandler is the root handler.
func LocationHandler ¶
LocationHandler shows and updates the location of the device.
func NetworkHandler ¶
func NetworkHandler(w http.ResponseWriter, r *http.Request)
NetworkHandler - Show the status of each network interface
func Rename ¶
func Rename(w http.ResponseWriter, r *http.Request)
Rename page to change device name and group
func SpeakerStatusHandler ¶ added in v0.12.1
func SpeakerStatusHandler(w http.ResponseWriter, r *http.Request)
SpeakerStatusHandler attempts to play a sound on connected speaker(s).
func SpeakerTestHandler ¶ added in v0.12.1
func SpeakerTestHandler(w http.ResponseWriter, r *http.Request)
SpeakerTestHandler will show a frame from the camera to help with positioning
func TimeHandler ¶
func TimeHandler(w http.ResponseWriter, r *http.Request)
func WifiNetworkHandler ¶
func WifiNetworkHandler(w http.ResponseWriter, r *http.Request)
WifiNetworkHandler show the wireless networks listed in the wpa_supplicant configuration
Types ¶
type NetworkConfig ¶
type NetworkConfig struct {
Online bool `yaml:"online"`
}
NetworkConfig is a struct to store our network configuration values in.