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.2.tar.gz
(4.6 kB
view hashes)
Built Distribution
Close
Hashes for smockrawl-0.2.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 34ae50238cb7ef3a5814507fa42beb1a491253ea0213727627290a194f95967f |
|
MD5 | 9aca8ff3b0e2fc21b34ff0d85e87da30 |
|
BLAKE2b-256 | 7b36d37384a3f4602bdb7acb273e1dbf5943980a7eab8252a914acb6f95550ba |