Steve_M
TVWBB Guru
This is meant to be a brainstorming post, so bear with me.
One of the biggest changes happening right now in the linux world is the adoption of containers, with Docker leading the charge. It occurred to me that there might be a benefit in containerizing the heatermeter OpenWrt install, which could allow for a more modular system.
By running a generic, docker-enabled version of linux, such as this or this on the Raspberry Pi, you get access to pretty much every USB wifi dongle, as the base linux OS is now taking care of bringing up the network stack, you no longer have to hack this into the OpenWRT install.
The LinkMeter OpenWRT docker container image would be started with access to the serial port and SPI bus, allowing for communication to/from the heatermeter board.
Next up, run a second container with something like nginx or apache, acting as a web proxy to the luci web server on the OpenWRT image. This would allow you more flexibility in terms of being able to install and manage SSL certs, or create a config where you can create more advanced authorization methods, such as not needing a username & password if you're at home, only if you're coming from a remote IP.
You could run another container running a database like mysql that is being used to store all of the historical cook data.
We're no longer limited by the constraints of what OpenWrt can do, we're limited by the available resources of the Raspberry Pi.
Here's a neat blog post showing 2500 containers running on a Raspberry Pi 2!
http://blog.loof.fr/2015/10/how-to-run-2500-webservers-on-raspberry.html
One of the biggest changes happening right now in the linux world is the adoption of containers, with Docker leading the charge. It occurred to me that there might be a benefit in containerizing the heatermeter OpenWrt install, which could allow for a more modular system.
By running a generic, docker-enabled version of linux, such as this or this on the Raspberry Pi, you get access to pretty much every USB wifi dongle, as the base linux OS is now taking care of bringing up the network stack, you no longer have to hack this into the OpenWRT install.
The LinkMeter OpenWRT docker container image would be started with access to the serial port and SPI bus, allowing for communication to/from the heatermeter board.
Next up, run a second container with something like nginx or apache, acting as a web proxy to the luci web server on the OpenWRT image. This would allow you more flexibility in terms of being able to install and manage SSL certs, or create a config where you can create more advanced authorization methods, such as not needing a username & password if you're at home, only if you're coming from a remote IP.
You could run another container running a database like mysql that is being used to store all of the historical cook data.
We're no longer limited by the constraints of what OpenWrt can do, we're limited by the available resources of the Raspberry Pi.
Here's a neat blog post showing 2500 containers running on a Raspberry Pi 2!
http://blog.loof.fr/2015/10/how-to-run-2500-webservers-on-raspberry.html
Last edited: