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

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

smockrawl-0.2.1-py3-none-any.whl (5.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: smockrawl-0.2.1.tar.gz
  • Upload date:
  • Size: 4.6 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.1.tar.gz
Algorithm Hash digest
SHA256 91fd7b6bcb49922dcb7eb9d232cf1c0c33308b2e59e9da55225546b576005d86
MD5 18c50d68af77340df4a7634d2e10b881
BLAKE2b-256 3f7e8e6013cb162c48d51a3e35c5831ff53a7c9b4fd48ad8ab6654497a8cde75

See more details on using hashes here.

File details

Details for the file smockrawl-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: smockrawl-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 5.4 kB
  • Tags: Python 3
  • 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 822f6a04bebc190f93e208d7df000c3e3ff1785bc2c5de920c8372213b9d5756
MD5 39bf622907562cce6b2593b0dee6e723
BLAKE2b-256 241ab36470142a041443f62a853d8a777f0f5bd2cdd877365b04f515966237bf

See more details on using hashes here.

Supported by

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