Smockeo API crawler
Project description
smockrawl
Basic Smockeo API crawler.
Usage:
####Initialisation:
mySmockeo = Smockeo(username, password, detectorId, loop, session)
Where loop
is an asyncio event loop and session
an aiohttp session. Have a look at the code in __main__.py
to
see how this can work.
####Authentication:
mySmockeo.authenticate()
####Poll the sensor:
mySmockeo.poll()
Following this, properties such as the sensor state, battery level or the last alarm can be read from the object.
An info reading can be printed with:
mySmockeo.print_status()
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
smockrawl-0.2.1.tar.gz
(4.6 kB
view hashes)
Built Distribution
Close
Hashes for smockrawl-0.2.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 822f6a04bebc190f93e208d7df000c3e3ff1785bc2c5de920c8372213b9d5756 |
|
MD5 | 39bf622907562cce6b2593b0dee6e723 |
|
BLAKE2b-256 | 241ab36470142a041443f62a853d8a777f0f5bd2cdd877365b04f515966237bf |