Skip to main content

Used to perform predetermined function calls on IoT devices when a given value in Firebase RTDB is detected. Actions are performed asynchronously and delays/args can be used to customize responses.

Project description

Firebase Responder

PyPI version Build Test
Used to perform predetermined function calls on IoT devices when a given value in Firebase RTDB is detected. Actions are performed asynchronously and delays/args can be used to customize responses.

Usage

Initialize group of responses and pass handler() as callback function for Firebase listener.

responder = ResponderGroup(1, 3, "ok")
firebase_admin.db.reference('path/to/value').listen(responder.handler)

Add device along with sequence of functions to be called, delays, args etc.

# led1 init goes here
responder.add(ResponderCustom(3, 2, [led1.turn_on, led1.set_colour, led1.set_colour], [500, 500, 500],
                             [None, [255, 0, 0], [0, 0, 30]]))
responder.add(ResponderStatic("test", led2.turn_on, led2.turn_off, 1500)

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

firebase_responder-1.0.6.tar.gz (642.0 kB view details)

Uploaded Source

Built Distribution

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

firebase_responder-1.0.6-py3-none-any.whl (5.9 kB view details)

Uploaded Python 3

File details

Details for the file firebase_responder-1.0.6.tar.gz.

File metadata

  • Download URL: firebase_responder-1.0.6.tar.gz
  • Upload date:
  • Size: 642.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.5

File hashes

Hashes for firebase_responder-1.0.6.tar.gz
Algorithm Hash digest
SHA256 4e66a01c582614c23bb2c9e1ee313a072fb4c08d6758b345d1de527d4f402825
MD5 611825dea7ec22e5d3038266b649946d
BLAKE2b-256 0e5d0186f67035ceda979dd80dd17592db7a24bafffefef4b946126ce129beda

See more details on using hashes here.

File details

Details for the file firebase_responder-1.0.6-py3-none-any.whl.

File metadata

File hashes

Hashes for firebase_responder-1.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 f4dd348409abd793ac766919daa9e91c7e16047b255cbc61a4d3b8f33892ff7f
MD5 4223b747bf69ddc6e6de27da5b085c8d
BLAKE2b-256 e057a93f58955e7d027244c995abcef712e926e3819ae2a361b89fab350f23c9

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