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.3.0.tar.gz
(4.9 kB
view hashes)
Built Distribution
Close
Hashes for smockrawl-0.3.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 77569031c296d10f5e315f194a9bd64b979f9469b0a0aee638f87be2f5d61712 |
|
MD5 | 30045122d703500806b50f976275ad03 |
|
BLAKE2b-256 | 226e7b3260b7afb912a5ed3aa0d221b407704a8dead25e3dc5fc8cedb5ab8363 |