pkg

package
v1.0.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 28, 2021 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckArgContent added in v0.6.0

func CheckArgContent(selected string, allowedArgs []string) bool

func CheckAvailableNewVersion added in v0.6.0

func CheckAvailableNewVersion() (bool, string)

func CheckConnectivity added in v0.8.0

func CheckConnectivity(apiKey string, url string, alternateUrl string, jeedomApiUrlSuffix string, debugMode bool) (string, string)

func Find

func Find(slice []string, val string) (int, bool)

func GetApiResult added in v0.6.0

func GetApiResult(apiKey string, url string, method string, debugMode bool) (map[string]interface{}, error)

func GetCurrentVersion added in v0.6.0

func GetCurrentVersion() string

func GetJeedomGlobalStatus added in v1.0.0

func GetJeedomGlobalStatus(apiKey string, url string, jeedomVersion string, debugMode bool) map[string]string

func GetJeedomGlobalStatus40 added in v1.0.0

func GetJeedomGlobalStatus40(apiKey string, url string, debugMode bool) map[string]string

func GetJeedomGlobalStatus41 added in v1.0.0

func GetJeedomGlobalStatus41(apiKey string, url string, debugMode bool) map[string]string

func GetJeedomMessage added in v1.0.0

func GetJeedomMessage(apiKey string, url string, debugMode bool) int

func GetJeedomUpdates added in v1.0.0

func GetJeedomUpdates(apiKey string, url string, debugMode bool) int

func GetLatestOnlineVersionNumber added in v0.6.0

func GetLatestOnlineVersionNumber() (string, error)

func GetLatestOnlineVersionUrl added in v0.6.0

func GetLatestOnlineVersionUrl() (string, error)

func GetLatestVersion added in v0.6.0

func GetLatestVersion() (bool, string)

func GetVersion added in v0.9.0

func GetVersion(apiKey string, url string, debugMode bool) (string, error)

func ReadLastCheckedVersion added in v0.6.0

func ReadLastCheckedVersion(lastCheckVersionFile string) string

func StoreLastVersion added in v0.6.0

func StoreLastVersion(lastCheckVersionFile string, version string) bool

Types

type JeedomCurrentStatus added in v1.0.0

type JeedomCurrentStatus struct {
	JeedomUrl          string
	JeedomApiUrl       string
	JeedomVersion      string
	JeedomApiKey       string
	JeedomGlobalStatus map[string]string
	JeedomUpdates      int
	JeedomMessages     int
	BarsType           string
	Style              string
	DebugMode          bool
}

func BuildGlobalStatus added in v1.0.0

func BuildGlobalStatus(reachableUrl string, apiKey string, urlApi string, jeedomVersion string, selectedStyle string, selectedBarType string, debugMode bool) JeedomCurrentStatus

type JeedomEquipmentsBatteryStatus added in v1.0.0

type JeedomEquipmentsBatteryStatus struct {
	BatteryWarning int
	BatteryDanger  int
}

func GetJeedomBatteryInfo added in v1.0.0

func GetJeedomBatteryInfo(apiKey string, url string, ignoreBatteryWarning bool, debugMode bool) JeedomEquipmentsBatteryStatus

type JeedomSummary

type JeedomSummary struct {
	Alarm       string
	Battery     string
	Door        string
	Humidity    string
	Light       string
	Luminosity  string
	Motion      string
	Outlet      string
	Power       string
	Security    string
	Shutter     string
	Temperature string
	Updates     string
	Windows     string
}

func JeedomSummaryEmojiIcons

func JeedomSummaryEmojiIcons() JeedomSummary

func JeedomSummaryFontsIcons

func JeedomSummaryFontsIcons() JeedomSummary

func JeedomSummaryNerdFontsIcons added in v0.5.0

func JeedomSummaryNerdFontsIcons() JeedomSummary

func JeedomSummaryNoIcons added in v0.5.0

func JeedomSummaryNoIcons() JeedomSummary

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL