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.4.tar.gz (156.4 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.4-py3-none-any.whl (5.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: firebase_responder-1.0.4.tar.gz
  • Upload date:
  • Size: 156.4 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.4.tar.gz
Algorithm Hash digest
SHA256 bc2df47f850aaef6911aef2a0160959840412206828ab27ce00461eb5ce99743
MD5 bbf49e290ccad728e8be79af3a0efa30
BLAKE2b-256 c1e641cf2821b6d9efb733a3f74f58cda7d4008b0ed7ba5ed732158f473aec3e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for firebase_responder-1.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 39c14d32119c9cfe1e6f84ed1e384b2dba1f02e529de7f3839bc59a7e30a7e40
MD5 6b884e1eba40afd8c957df3916633ee0
BLAKE2b-256 ed406910908c06163d4384fc35ebe66ef8b54f734ef44ca9349a9f3b7077183e

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