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 AudioRecordingHandler(config *goconfig.Config, w http.ResponseWriter, r *http.Request)
- func Audiobait(w http.ResponseWriter, r *http.Request)
- func Battery(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 Config(w http.ResponseWriter, r *http.Request)
- func DiskMemoryHandler(w http.ResponseWriter, r *http.Request)
- func DownloadBatteryCSV(w http.ResponseWriter, r *http.Request)
- func DownloadTemperatureCSV(w http.ResponseWriter, r *http.Request)
- func GenAudioRecordingHandler(config *goconfig.Config) func(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 Modem(w http.ResponseWriter, r *http.Request)
- func NetworkHandler(w http.ResponseWriter, r *http.Request)
- func Rename(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 AudioRecordingHandler ¶ added in v1.25.0
LocationHandler shows and updates the location of the device.
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 Config ¶ added in v1.7.0
func Config(w http.ResponseWriter, r *http.Request)
Config page to change devices config
func DiskMemoryHandler ¶
func DiskMemoryHandler(w http.ResponseWriter, r *http.Request)
DiskMemoryHandler shows disk space usage and memory usage
func DownloadBatteryCSV ¶ added in v1.21.0
func DownloadBatteryCSV(w http.ResponseWriter, r *http.Request)
func DownloadTemperatureCSV ¶ added in v1.34.0
func DownloadTemperatureCSV(w http.ResponseWriter, r *http.Request)
func GenAudioRecordingHandler ¶ added in v1.25.0
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 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.