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 details)
Built Distribution
File details
Details for the file smockrawl-0.3.0.tar.gz
.
File metadata
- Download URL: smockrawl-0.3.0.tar.gz
- Upload date:
- Size: 4.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.10.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 39c5e9c2c2e055cf9755fbec46f7dfecd231624cc14e2c3f946f7ed02fcf3ca5 |
|
MD5 | 26c33b85b85518340a8855a17e90832f |
|
BLAKE2b-256 | f7572107c15c512f157de9681d83996ffb1d050d887b116ff8487944db2694c5 |
File details
Details for the file smockrawl-0.3.0-py3-none-any.whl
.
File metadata
- Download URL: smockrawl-0.3.0-py3-none-any.whl
- Upload date:
- Size: 5.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.10.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 77569031c296d10f5e315f194a9bd64b979f9469b0a0aee638f87be2f5d61712 |
|
MD5 | 30045122d703500806b50f976275ad03 |
|
BLAKE2b-256 | 226e7b3260b7afb912a5ed3aa0d221b407704a8dead25e3dc5fc8cedb5ab8363 |