Monday, 17 October 2016
Change color and dim the lights when playing on steam.
Dim my lights and set the hue to blue when i start a game in my steam account.
This was a bit tricky because i have to make a fake sensor make a automation on the game value instead of the state=online. It works very fastm, max delay from i start or end a game is around 1 minutt.
Thursday, 13 October 2016
Easy steam scraping with BeautifulSoup
I wanted to make a sensor for my steam account to use for future projects. After some googling i found BeautifulSoup. I framework to search with in text/html and xml. After some fiddling i got it working. To get steam working you need a working public profile page.
Install BeautifulSoup
sudo apg-get update -y && sudo atp-get upgrade -y && sudo apt-get install python-bs4 -ySteam scraper
Will return blank if Im not playing anything or the name of the game if im playing.Referance
https://www.crummy.com/software/BeautifulSoup/bs4/doc/
Raspian commandline network speedtest
To check internet speed on your raspberry do the following steps.
Then simply type speedtest-cli and you will get something like this
- sudo apg-get update
- sudo apt-get upgrade
- sudo apt-get install python-pip
- sudo easy_install speedtest-cli
Then simply type speedtest-cli and you will get something like this
Monday, 10 October 2016
Smartify a simple heater
I needed to make a controller for my cheap and simple heater. It don't have any termostat and the setting are really strange and I could not find the correct settings, either too hot or too cold. I connected a 433 sender to a raspberry pi and made a flask web API. I then added a switch in Home Assistant that run a curl command to the other pi.
Hardware
Parts
- 5Pcs 433Mhz RF transmitter and receiver link kit for Arduino/ARM/MCU WL
- Raspberry Pi kit
- 120Pcs Male Female Dupont wire cables jumpers 10/20/30cm
- 3pack nexa switches(Norwegian link)
Wiring
- VCC -> pin 1 3,3Volt
- Gnd -> pin 6 Gnd
- Date/Data/signdal -> GPIO 17 (pin11)
Software
Flask code
Homeassistant
Referances
Wednesday, 5 October 2016
NodeMCU Rgb controller
I made a easy IR controller for my generic RGB light strip. You can simply use curl(like http://IP-ADDR/rgbon) to turn on/off, dim the light or do some silly effects.
Arduino code:
Pinlayout:
Vin(USB 5v): Vcc
Gnd: Gnd
D3: Signal
Parts:
Home Assistant Implentation
Simple 3d printed prototype box with everything mounted
Subscribe to:
Posts (Atom)