Skip to main content

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)

Uploaded Source

Built Distribution

smockrawl-0.3.0-py3-none-any.whl (5.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page