Documentation ¶
Index ¶
Constants ¶
View Source
const (
BaseURL = "https://mypagesapi.sectoralarm.net"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { BaseURL *url.URL HTTPClient *http.Client // contains filtered or unexported fields }
func (*Client) GetOverview ¶
func (*Client) GetPanelList ¶
func (*Client) GetTemperatures ¶
func (c *Client) GetTemperatures(panelID string) (temperatures []Temperature, err error)
type Overview ¶
type Overview struct { Panel Panel `json:"Panel"` Locks []interface{} `json:"Locks"` Smartplugs []Smartplug `json:"Smartplugs"` Temperatures []Temperature `json:"Temperatures"` Cameras []interface{} `json:"Cameras"` Photos []interface{} `json:"Photos"` Access []string `json:"Access"` }
type Panel ¶
type Panel struct { PartialAvalible bool `json:"PartialAvalible"` PanelQuickArm bool `json:"PanelQuickArm"` PanelCodeLength int `json:"PanelCodeLength"` LockLanguage int `json:"LockLanguage"` SupportsApp bool `json:"SupportsApp"` SupportsInterviewServices bool `json:"SupportsInterviewServices"` SupportsPanelUsers bool `json:"SupportsPanelUsers"` SupportsTemporaryPanelUsers bool `json:"SupportsTemporaryPanelUsers"` SupportsRegisterDevices bool `json:"SupportsRegisterDevices"` CanAddDoorLock bool `json:"CanAddDoorLock"` CanAddSmartPlug bool `json:"CanAddSmartPlug"` HasVideo bool `json:"HasVideo"` Wifi struct { WifiExist bool `json:"WifiExist"` Serial string `json:"Serial"` } `json:"Wifi"` PanelID string `json:"PanelId"` ArmedStatus string `json:"ArmedStatus"` PanelDisplayName string `json:"PanelDisplayName"` StatusAnnex string `json:"StatusAnnex"` PanelTime string `json:"PanelTime"` AnnexAvalible bool `json:"AnnexAvalible"` IVDisplayStatus bool `json:"IVDisplayStatus"` DisplayWizard bool `json:"DisplayWizard"` BookedStartDate string `json:"BookedStartDate"` BookedEndDate string `json:"BookedEndDate"` InstallationStatus int `json:"InstallationStatus"` InstallationAddress interface{} `json:"InstallationAddress"` WizardStep int `json:"WizardStep"` AccessGroup int `json:"AccessGroup"` SessionExpires string `json:"SessionExpires"` IsOnline bool `json:"IsOnline"` }
type Smartplug ¶
type Smartplug struct { Consumption interface{} `json:"Consumption"` DisplayScenarios bool `json:"DisplayScenarios"` ID string `json:"Id"` Label string `json:"Label"` PanelID interface{} `json:"PanelId"` SerialNo string `json:"SerialNo"` Scenarios interface{} `json:"Scenarios"` Status string `json:"Status"` TimerActive bool `json:"TimerActive"` TimerEvents interface{} `json:"TimerEvents"` TimerEventsSchedule interface{} `json:"TimerEventsSchedule"` }
type Temperature ¶
Click to show internal directories.
Click to hide internal directories.