sensor.envirophat

class platypush.backend.sensor.envirophat.SensorEnvirophatBackend(temperature=True, pressure=True, altitude=True, luminosity=True, analog=True, accelerometer=True, magnetometer=True, qnh=1020, **kwargs)[source]

Backend to poll analog sensor values from an enviroPHAT sensor pHAT (https://shop.pimoroni.com/products/enviro-phat)

Requires:

  • envirophat (pip install envirophat)

Triggers:

__init__(temperature=True, pressure=True, altitude=True, luminosity=True, analog=True, accelerometer=True, magnetometer=True, qnh=1020, **kwargs)[source]
Parameters
  • temperature – Enable temperature sensor polling

  • pressure – Enable pressure sensor polling

  • altitude – Enable altitude sensor polling

  • luminosity – Enable luminosity sensor polling

  • analog – Enable analog sensors polling

  • accelerometer – Enable accelerometer polling

  • magnetometer – Enable magnetometer polling

  • qnh – Base reference for your sea level pressure (for altitude sensor)