Philips Hue with Python
Tim Richardson has been experimenting with the Philips Hue range of connected lights. He’s got a set out in his
shed Cabin and he wanted them to be controlled remotely from another Raspberry Pi (primarily so that people in the main house could ‘call him in’). He struck upon the idea of using a Pimoroni Touch pHat in the main house so that different colours were triggered in the Cabin when the buttons were pressed. This gives granularity over how urgent the ‘call’ is. He’s used and adapted the phue library and developed some custom scripts. All the instructions, and the code, are available on Github. You can get hold of Hues by doing a quick search on Amazon! They’re not cheap, but they’re great fun!
Evghenii has developed a system that automates the process of recognising cars and opening gates based on who they are. The system, which uses a Raspberry Pi, an IP camera and some relays plus a mixture of Python (including OpenCV), shell scripting (I can feel a headache building already) and Telegram messaging has the following principles of operation:
- The car drives up to the gates.
- Camera reads the car plate numbers.
- Checks the read number with the database; if it finds one, then it opens the gate and lets the car pass.
- Each car at the gates is photographed, then a photo is sent to the Telegram application with the car plate number and its status.
- Telegram bot has the ability to open and close the gates, take a current photo and add an unknown car to the database.