138
What's a unique customization on your Linux machine you think no one else has?
(discuss.tchncs.de)
From Wikipedia, the free encyclopedia
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.
Community icon by Alpár-Etele Méder, licensed under CC BY 3.0
I've got a RPI running a full-screen 'kiosk' view from homeassitant that turns an external display on/off based on a motion sensor.
So basically it's showing current temperatures, thermostat control, etc. but I have the display turn off after X minutes of no movement and turn on when there has been movement so it's only on when you're in the room.
I'd love to see your implementation specs, code, pr any other technical details you'd like to share. I'm setting up home assistant and one of the things I want it to do is replace the functions of my thermostat and add some additional details.
I used to have a Nest Thermostat, but my furnace needed to be replaced a couple of months back and I got a Mitsubishi heat pump, but their thermostat sucks, and it isnt compatible with Nest because it's all wireless. I installed the WiFi add-on to the furnace so I can use the app, too, but it also sucks pretty bad. Plus I miss the functionality of it turning down the heat when I'm away to save money and turning it back on before I get home.
So I'm planning to implement my own solution and documenting and open sourcing everything. But it's going to be several months before I get to doing it due to other more urgent projects. So, I'm looking at everything available. I definitely will be setting up a small display to replace the thermostat and having motion detectors to turn on the display when you approach it to see the temperature and such and to supplement the home/away detection.
Anyway, I would love to see your implementation to see how you did this piece of it.
It's really quite simple - but works pretty well. There are 3 components:
Kiosk service
A simple systemd service that starts a kiosk script.
Kiosk script
The script in /home/pi/kiosk.sh just starts a web browser in full-screen mode pointed at my home assistant instance:
Display service
I have a very simple python/flask service that runs and exposes an endpoint that lets you turn on/off the display. It's called by a homeassistant automation for when the motion detector senses or hasn't sensed movement.
Here's the python - I have this started from another "kiosk.service" systemd service as well.
You can then have the HA rest action call this with "http://pidisplay:3000/display/on" or off.