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.2.3.tar.gz (4.7 kB view details)

Uploaded Source

File details

Details for the file smockrawl-0.2.3.tar.gz.

File metadata

  • Download URL: smockrawl-0.2.3.tar.gz
  • Upload date:
  • Size: 4.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.20.1 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.7.4

File hashes

Hashes for smockrawl-0.2.3.tar.gz
Algorithm Hash digest
SHA256 fbcfd6f71cb3743d8990ffb3ecfe81b74d568467f8bb7c1689291fdcbac362bc
MD5 0bb34ef21db8e90826e39fa858b9936e
BLAKE2b-256 cfeb018ef4bc1660fc8f551b141d6fffdc0270ec2cefc6758cf5f6296812ba30

See more details on using hashes here.

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