Documentation
¶
Overview ¶
Package dropcam implements a basic library to access DropCam cameras.
Index ¶
Constants ¶
View Source
const ( NexusBase = "https://nexusapi.dropcam.com" ApiBase = "https://www.dropcam.com" ApiPath = "api/v1" Devel = false )
Constants
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Cameras ¶
The Cameras type contains all of the user-owned dropcams associated with the Drocpam object
func (*Cameras) GetEvents ¶
The GetEvents method will return an array of Events for the given timeframe
type Dropcam ¶
type Dropcam struct {
LoginPath string
CamerasGet string
CamerasUpdate string
CamerasGetVisible string
CamerasGetImagePath string
EventPath string
EventGetClipPath string
PropertiesPath string
Creds UserCreds
Cookie string
}
The DropCam type lists the URL acess points and contains the credentials and session cookie
type Events ¶
type Events struct {
}
The Events type contains events for a specific camera over a defined epoch
type Items ¶
type Items struct {
Owned []Owned `json:"owned"`
Subscribed []interface{} `json:"subscribed"`
}
type Owned ¶
type Owned struct {
Capabilities []string `json:"capabilities"`
Description string `json:"description"`
DownloadHost string `json:"download_host"`
HasBundle bool `json:"has_bundle"`
HoursOfRecordingMax float64 `json:"hours_of_recording_max"`
Id int64 `json:"id"`
IsConnected bool `json:"is_connected"`
IsOnline bool `json:"is_online"`
IsPublic bool `json:"is_public"`
IsStreaming bool `json:"is_streaming"`
IsStreamingEnabled bool `json:"is_streaming_enabled"`
IsTrialMode bool `json:"is_trial_mode"`
IsTrialWarning bool `json:"is_trial_warning"`
LastLocalIp string `json:"last_local_ip"`
LiveStreamHost string `json:"live_stream_host"`
Location interface{} `json:"location"`
MacAddress string `json:"mac_address"`
Name string `json:"name"`
NestStructureId interface{} `json:"nest_structure_id"`
OwnerId string `json:"owner_id"`
PublicToken string `json:"public_token"`
Timezone string `json:"timezone"`
TimezoneUtcOffset int64 `json:"timezone_utc_offset"`
Title string `json:"title"`
TrialDaysLeft int64 `json:"trial_days_left"`
Type int64 `json:"type"`
Uuid string `json:"uuid"`
Where string `json:"where"`
}
The Owned type contains the attribuetes associated with a users dropcam
Click to show internal directories.
Click to hide internal directories.