Analyzing Wood Burning Stoves with FLaNK Stack:   MiNiFi, Flink, NiFi, Kafka, Kudu
Tags: 2020, apacheflink, apachekafka, apachenifi
Published: 2020-01-22 23:02:44

---
title: Analyzing Wood Burning Stoves with FLaNK Stack:   MiNiFi, Flink, NiFi, Kafka, Kudu
published: true
date: 2020-01-19 19:58:00 UTC
tags: 2020,apache-flink,apache-kafka,apache-nifi
canonical_url: 
---

## Analyzing Wood Burning Stoves with FLaNK Stack:   MiNiFi, Flink, NiFi, Kafka, Kudu (FLaNK Stack)

  

Winter has arrived, finally.   The 50-70 F days are over, it dropped below 30 F in Princeton, so time to light up the wood burning stove and burn some season cherry wood (We get cherry wood from a local tree service that removes dead trees for people and then season the wood.  Recycle!) .  It's great for camp fires, smoking meats and for heating up our house.  Also if you have no smelled cherry wood smoke it is amazing.   I wanted to see if having a fire that raised my houses temperature from 67 F to 87 F would produce noticeable sensor readings.   Fortunately, I have a thermal camera sensor ([Pimoroni](https://shop.pimoroni.com/) rocks! Add another thing to my list of thinks I love from Britain (Dr. Who, Jelly Babies, Pimoroni and my awesome boss Dan).  I also have Raspberry Pi sensors for temperature, humidity, light and various gas sensors.   Let's see what the numbers look like.    The temperatures and images start greeen and yellow and as they heat up turn red, purple and then pure white.   That's real hot.   Fortunately the Raspberry Pis didn't overheat, had to open a window when we got close to 90.   Yes, temperature regulation and maybe an automated wood feeder would be nice.

  

  

[![](https://1.bp.blogspot.com/--SllXxxp6Uc/XiM2wEVFkHI/AAAAAAAAZOo/bFnaWkex2dguQoXXfjZHQFQLEgrfZfFuwCLcBGAsYHQ/s400/mlx90640-2020-01-17-14-00-47.gif)](https://1.bp.blogspot.com/--SllXxxp6Uc/XiM2wEVFkHI/AAAAAAAAZOo/bFnaWkex2dguQoXXfjZHQFQLEgrfZfFuwCLcBGAsYHQ/s1600/mlx90640-2020-01-17-14-00-47.gif)
  

[![](https://1.bp.blogspot.com/-bSSxZrw9Wng/XiM2wIxEq1I/AAAAAAAAZOs/4lqeR-R4TOo9PizMPTi0YSlC0f00Vdz_gCLcBGAsYHQ/s400/mlx90640-2020-01-17-14-10-20.gif)](https://1.bp.blogspot.com/-bSSxZrw9Wng/XiM2wIxEq1I/AAAAAAAAZOs/4lqeR-R4TOo9PizMPTi0YSlC0f00Vdz_gCLcBGAsYHQ/s1600/mlx90640-2020-01-17-14-10-20.gif)
  

[![](https://1.bp.blogspot.com/-ixAUJijW4SU/XiM2wJ6J_II/AAAAAAAAZOw/W7vkRLRqEGwAxF5H4vQs6VEvHxtmiyovQCLcBGAsYHQ/s400/mlx90640-2020-01-17-17-34-35.gif)](https://1.bp.blogspot.com/-ixAUJijW4SU/XiM2wJ6J_II/AAAAAAAAZOw/W7vkRLRqEGwAxF5H4vQs6VEvHxtmiyovQCLcBGAsYHQ/s1600/mlx90640-2020-01-17-17-34-35.gif)

  

**Inside the Stove**
  

[![](https://1.bp.blogspot.com/-LVO_N4PmRbc/XiM3DCVMy5I/AAAAAAAAZPE/gR5EIKg_-c8Uu0FA8ZZTUdSQz_BzHTP3QCLcBGAsYHQ/s400/FIRESIDEIMG-7161.jpg)](https://1.bp.blogspot.com/-LVO_N4PmRbc/XiM3DCVMy5I/AAAAAAAAZPE/gR5EIKg_-c8Uu0FA8ZZTUdSQz_BzHTP3QCLcBGAsYHQ/s1600/FIRESIDEIMG-7161.jpg)
  

**Cherry Wood burning nice in stove, notice Fire on Cloudera T-Shirt**

[![](https://1.bp.blogspot.com/-_HEab2gS33w/XiM3DMrzudI/AAAAAAAAZO8/99OD_3pWsXQfu39KxiP3RhYV69ZI02afgCLcBGAsYHQ/s400/FIRESIDEIMG-7162.jpg)](https://1.bp.blogspot.com/-_HEab2gS33w/XiM3DMrzudI/AAAAAAAAZO8/99OD_3pWsXQfu39KxiP3RhYV69ZI02afgCLcBGAsYHQ/s1600/FIRESIDEIMG-7162.jpg)

  

**Four  USB PS3 Eye Cameras ($7!!!) attached to Raspberry Pi 3B+ and 4s.**
  

[![](https://1.bp.blogspot.com/-czHY3CCH794/XiM3DHuPlNI/AAAAAAAAZPA/0r4CZk5_4CMWhk3IqR5zUJnCoadcCjxRQCLcBGAsYHQ/s400/FIRESIDEIMG-7163.jpg)](https://1.bp.blogspot.com/-czHY3CCH794/XiM3DHuPlNI/AAAAAAAAZPA/0r4CZk5_4CMWhk3IqR5zUJnCoadcCjxRQCLcBGAsYHQ/s1600/FIRESIDEIMG-7163.jpg)

  

**A very organized professional assortment of Pis and sensors...**
  

[![](https://1.bp.blogspot.com/-RBfjKIYY5dQ/XiM3DmbetAI/AAAAAAAAZPI/Ic2et2SasfoufFAQGtHfXU8gst9HgrN4QCLcBGAsYHQ/s400/FIRESIDEMINIFI.jpg)](https://1.bp.blogspot.com/-RBfjKIYY5dQ/XiM3DmbetAI/AAAAAAAAZPI/Ic2et2SasfoufFAQGtHfXU8gst9HgrN4QCLcBGAsYHQ/s1600/FIRESIDEMINIFI.jpg)
  

  

  

  

** It's very easy to spot check my sensor values as they stream through Apache Kafka with Cloudera SMM.**  
  

[![](https://1.bp.blogspot.com/-4BPkYePwZSo/XiM3ExqxhMI/AAAAAAAAZPU/q4aA3-maLC0M8-5L-HdFJjRkOkqJiTOIACLcBGAsYHQ/s640/gassensorSMMExplorer.png)](https://1.bp.blogspot.com/-4BPkYePwZSo/XiM3ExqxhMI/AAAAAAAAZPU/q4aA3-maLC0M8-5L-HdFJjRkOkqJiTOIACLcBGAsYHQ/s1600/gassensorSMMExplorer.png)

  

**Some Sensor Readings:**

  

{"bme280\_tempf": " **93.78**", "uuid": "20200117195629\_104c9f2a-b5a8-43d2-8386-57b7bd05f55a", "systemtime": "01/17/2020 14:56:29", "bme280\_altitude": "-41.31", "memory": 92.1, " **max30105\_value**": "84.00", "end": "1579290989.4628081", "imgnamep": "images/bog\_image\_p\_20200117195629\_104c9f2a-b5a8-43d2-8386-57b7bd05f55a.jpg", "max30105\_temp": " **34.56**", "ipaddress": "192.168.1.251", "diskusage": "44726.6", "host": "garden2", "max30105timestamp": "20200117-145629-345697", "starttime": "01/17/2020 13:48:29", "bme280\_altitude\_feet": "-135.53", "max30105\_delta": "0.00", "max30105\_mean": "84.00", "max30105\_detected": "False", "bme280\_tempc": " **34.32**", "bme280\_pressure": " **1034.61**", "cputemp": 59, "te": "4079.87322807312", "imgname": "images/bog\_image\_20200117195629\_104c9f2a-b5a8-43d2-8386-57b7bd05f55a.jpg"}

  

  

[{"uuid":"sgp30\_uuid\_xyg\_20200117185015","ipaddress":"192.168.1.221","runtime":"0","host":"garden3","host\_name":"garden3","macaddress":"dc:a6:32:32:98:20","end":"1579287015.6653564","te":"0.025962352752685547","systemtime":"01/17/2020 13:50:15","cpu":55.0,"diskusage":"109290.8 MB","memory":29.7,"equivalentco2ppm":"  **400**","totalvocppb":"    **37**","id":"20200117185015\_b8fbd9c1-fa30-4f70-b20d-e43a2c703b18"}]

  

{"uuid": "rpi4\_uuid\_kse\_20200117222947", "ipaddress": "192.168.1.243", "host": "rp4", "host\_name": "rp4", "macaddress": "dc:a6:32:03:a6:e9", "systemtime": "01/17/2020 17:29:47", "cpu": 50.8, "diskusage": "46208.0 MB", "memory": 18.2, "id": "20200117222947\_e9299089-d56f-468b-8bac-897a2918307a", "temperature": " **48.96355155197982**", "pressure": " **1035.4460084255888**", "humidity": " **0.0**", "lux": " **49.0753**", "proximity": "0", "gas": "Oxidising: **30516.85** Ohms\nReducing: **194406.50** Ohms\nNH3: **104000.00** Ohms"}

  

{"host": "rp4", "cputemp": "72", "ipaddress": "192.168.1.243", "endtime": "1579293634.02", "runtime": "0.00", "systemtime": "01/17/2020 15:40:34", "starttime": "01/17/2020 15:40:34", "diskfree": "46322.7", "memory": "17.1", "uuid": "20200117204034\_99f49e71-7444-4fd7-b82e-7e03720c4c39", "image\_filename": "20200117204034\_d9f811a3-8582-4b47-b4b4-cb6ec51cca04.jpg"}

  

The next step is to have NiFi load the data to Kudu, Hive, HBase or Phoenix tables for analysis with Cloudera Data Science Work Bench and some machine learning analytics in Python 3 on either Zeppelin or Jupyter notebooks feeding CDSW.   Then I can host my final model on K8 within CDSW for a real edge to AI application and solve the issue of how much fire in my house is too much? 

  

This article is part of the FLaNK Stack series, highlighting using the **FL** (ink) **A** pache **N** iFi **K** afka Kudu stack for big data streaming development with IoT and AI applications.

  

[![](https://1.bp.blogspot.com/-smoYwE1z-uw/XiM3EaTht1I/AAAAAAAAZPQ/CRkmzITrFD4rjrUOSbcknJwByH_GLXZ_QCLcBGAsYHQ/s320/flankstacksticker.png)](https://www.flankstack.dev/)