Liking cljdoc? Tell your friends :D

ambient-weather-clj.core


amb-weather-urlclj

source

default-optsclj

source

device-dataclj

(device-data {:keys [app-key api-key mac-addr date limit :as query]})

Returns historical device data.

date - Data is stored in 5 or 30 min increments. This is the date of the most recent result to be returned by the query. The rest of the results are in descending order. date is milliseconds since epoch or a string formatted as https://momentjs.com/docs/#/parsing/string/ in UTC. If nil/empty, the query will start from the most recent set of data.

limit - max results returned. Defaults to 288

Returns historical device data.

date - Data is stored in 5 or 30 min increments.
This is the date of the most recent result to be
returned by the query. The rest of the results
are in descending order. date is milliseconds since epoch
or a string formatted as https://momentjs.com/docs/#/parsing/string/
in UTC.
If nil/empty, the query will start from the most recent
set of data.

limit - max results returned. Defaults to 288
sourceraw docstring

disconnect!clj

(disconnect! socket)
source

(print-event-fn & args)
source

source

socketclj

(socket app-key event-fns)

Creates and connects an IO socket. event-fns is a map of event name strs and fns to execute on receiving the event. The fn should take a variable list of args [& args]

Creates and connects an IO socket. event-fns is a map of event name strs
and fns to execute on receiving the event. The fn should take a variable
list of args [& args]
sourceraw docstring

subscribeclj

(subscribe api-keys socket)

Subscribe to data events for all users' devices. api-keys is an array of api-keys, each represent one user.

Subscribe to data events for all users' devices. api-keys
is an array of api-keys, each represent one user.
sourceraw docstring

unsubscribeclj

(unsubscribe api-keys socket)

Unsubscribe to data events for a user. api-keys is an array of api-keys, each represent one user.

Unsubscribe to data events for a user. api-keys
is an array of api-keys, each represent one user.
sourceraw docstring

user-devicesclj

(user-devices app-key api-key)

Returns all the user's devices along with their most recent data

Returns all the user's devices
along with their most recent data
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close