![]() Once done, I updated pip3, the Python installer thing:Īnd finally, I installed the Ruuvitag sensor package:īecause the Raspberry Pi Zero is quite poor in performance, it took more than an hour for these commands to complete. First, I installed the bluez and bluez-hcidump – the Linux Bluetooth System: Once there, I installed Python 3 and the necessary libraries for the Ruuvitag. Now that the hard part is done, I provisioned a fresh Raspbian OS to the Raspberry Pi Zero. I replaced the battery to ensure my solution will run for years. I live in an apartment complex, so we have a mail flap on the door. In Finland, you have a real mailbox if you live in a house. I taped the Ruuvitag beacon on my mailbox. Implementationīefore any real project can start, you really have to start with the hardware. It’s a small, battery-powered device that can measure humidity, temperature – and acceleration. I’ve previously used the Ruuvitag beacons in numerous projects see the other builds here. I researched the sensor before realizing that the sensors I already use – the Ruuvitag beacons – have a built-in accelerometer. It also has Bluetooth, which is critical so that it can ping or poll the wireless sensor. It’s powered with a regular Micro-USB adapter, and it connects to my internal network with Wi-Fi. ![]() I already had the Raspberry Pi Zero, and the exact model is the Raspberry Pi Zero WH – and I paid about 20 € ($25) for it. Logic Apps notifies me – perhaps via email, or as a message via Microsoft Teams.Raspberry Pi calls Logic Apps with relevant data.Raspberry Pi polls the sensor (or the sensor pings the Raspberry Pi device) in return.It’s a versatile service, very affordable, and well suited for a task such as this. For alerting, I plan on using Azure Logic Apps. ![]() The purpose of the solution is clear – have some mechanism to detect when paper mail is inserted through the mailbox in my front door and alert or notify me accordingly. Why this model of the Raspberry Pi? Because I have one I’m not using, and it’s small enough to be left in the entryway of our home. There are numerous solutions like this already out there, but I had semi-specific requirements: it would have to be wireless, and it has to work on a Raspberry Pi Zero. I’ve wanted to build a solution that detects when I get regular mail. We have a sticker on the door to avoid getting spam, so usually, it’s something we are either expecting or something useful. ![]() Thanks for reading my blog! If you have any questions or need a second opinion with anything Microsoft Azure, security or Power Platform related, don't hesitate to contact me.ĭoes anyone use the term ‘snail mail’ anymore? Anyway, I still use it to refer to regular posts and mail I seem to be getting each day through my door. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |