Skip to main content

Posts

Showing posts with the label apache pulsar

FLiP-Py-Pi-GasThermal: Building an IoT Edge Application with Apache Pulsar and Python for TVOC and CO2 Ingest

  FLiP-Py-Pi-GasThermal Source:   https://github.com/tspannhw/FLiP-Py-Pi-GasThermal tags:  Apache Pulsar, Python, Raspberry Pi, Gas Sensor + Thermal Camera Sensors, Apache Flink, Trino/Presto SQL Sensors Pimoroni BreakoutGarden: SGP30 Sensiron SGP30 TVOC and eCO2 sensor (datasheet) TVOC sensing from 0-60,000 ppb (parts per billion) CO2 sensing from 400 to 60,000 ppm (parts per million) Pimoroni BreakoutGarden: MLX90640 Thermal Camera Architecture     Build bin/pulsar-admin topics create persistent://public/default/garden3 bin/pulsar-client consume "persistent://public/default/garden3" -s "garden3reader" -n 0 class Garden(Record): cpu = Float() diskusage = String() endtime = String() equivalentco2ppm = String() host = String() hostname = String() ipaddress = String() macaddress = String() memory = Float() rowid = String() runtime = Integer() starttime = String() systemtime = String() totalvocppb = String()

Five Sensors Real-Time with Pulsar and Python on a Pi (FLiP-Py-Pi-BreakoutGarden)

FLiP-Pi-BreakoutGarden FLiP-Py The easy way to build Python streaming applications from the edge to cloud. Code :   https://github.com/tspannhw/FLiP-Pi-BreakoutGarden Gear / Hardware Raspberry Pi 3 Model B Rev 1.2, Bullseye Raspian, armv71 Pimoroni Breakout Garden Hat 1.12" Mono OLED Breakout 128x128 White/Black Screen BME680 Air Quality, Temperature, Pressure, Humidity Sensor LWM303D 6D0F Motion Sensor (X, Y, Z Axes) BH1745 Luminance and Color Sensor LTR-559 Light and Proximity Sensor 0.01 lux to 64,000 lux VL53L1X Time of Flight (TOF) Sensor Software / Libraries Python 3.9 Pulsar Python Client 2.10 (avro) pip3 install pulsar-client[avro] Python Breakout Garden Python PSUTIL  https://pypi.org/project/psutil/ Python LUMA OLED pip3 install --upgrade luma.oled Libraries sudo apt-get install python3 python3-pip python3-pil libjpeg-dev zlib1g-dev libfreetype6-dev liblcms2-dev libopenjp2-7 libtiff5 -y StreamOps bin/pulsar-admin topics create "persistent://public/default/pi-sensors