diff --git a/v2/content/posts/2022/garage-door-monitor-update/index.md b/v2/content/posts/2022/garage-door-monitor-update/index.md new file mode 100644 index 0000000..4fff345 --- /dev/null +++ b/v2/content/posts/2022/garage-door-monitor-update/index.md @@ -0,0 +1,51 @@ ++++ +title = "Garage Door Monitor Update" +date = 2022-10-17T15:04:44+10:00 + +#[extra] +#updated = 2022-04-21T09:07:57+10:00 ++++ + + +[The garage door monitor that I built earlier in the +year](@posts/2022/garage-door-monitor/index.md) has by all accounts been +running perfectly since I installed it. Recently I implemented a couple of new +features that I've wished for over the last few months. + + + +The first new feature is a bit more visibility into the state of the system. I +added uptime and memory info to the web page: + +{{ figure(image="posts/2022/garage-door-monitor-update/webpage.png", link="posts/2022/garage-door-monitor-update/webpage.png", alt="Screenshot of the web page served by the garage door monitor. It shows the state of the door, uptime of the device, and memory usage information.", caption="Screenshot of the web page now including uptime and memory info.", width=625) }} + +The second and more practical addition is a subsequent notification when the +door is closed again after it was left open for longer that the trigger time (5 +minutes). + +{{ figure(image="posts/2022/garage-door-monitor-update/new-mattermost-notification.png", link="posts/2022/garage-door-monitor-update/new-mattermost-notification.png", alt="Screenshot of the message posted to Mattermost by the garage door monitor. It reads: Garage door closed after 5 minutes open.", caption="The new notification", width=403, border=true) }} + +Since I set up the garage door monitor I haven't accidentally left it open. +However, I have triggered the notification when washing the car or packing for +a road trip. It's this latter scenario that I wanted to address. The issue is +that because the notification is triggered during packing if I did set off and +forget to close the door I wouldn't know. One way to deal with this would be +recurring notifications. I chose another option though. + +When the door is closed after notifying that it was left open, it sends another +message saying that it's now closed. The benefit of this approach is that the +message log now properly tracks the state of the door, so if I'm a few kms down +the road and wonder if I closed the door it's just a matter of checking the +channel in Mattermost. + +Before I powered it off to update the Buildroot image on the SD card I hooked +up a serial console and checked its uptime. I was pleased to see 100% uptime +since it was first installed: + +``` + 02:03:14 up 183 days, 20:26, load average: 0.00, 0.00, 0.00 +``` + +That's all for now, on to the next few hundred days of service! + +[Garage door monitor source on GitHub](https://github.com/wezm/garage-door-monitor) diff --git a/v2/content/posts/2022/garage-door-monitor-update/new-mattermost-notification.png b/v2/content/posts/2022/garage-door-monitor-update/new-mattermost-notification.png new file mode 100644 index 0000000..b8186e8 Binary files /dev/null and b/v2/content/posts/2022/garage-door-monitor-update/new-mattermost-notification.png differ diff --git a/v2/content/posts/2022/garage-door-monitor-update/webpage.png b/v2/content/posts/2022/garage-door-monitor-update/webpage.png new file mode 100644 index 0000000..05d7928 Binary files /dev/null and b/v2/content/posts/2022/garage-door-monitor-update/webpage.png differ diff --git a/v2/content/posts/2022/garage-door-monitor/index.md b/v2/content/posts/2022/garage-door-monitor/index.md index 3dd6831..a7a2dd9 100644 --- a/v2/content/posts/2022/garage-door-monitor/index.md +++ b/v2/content/posts/2022/garage-door-monitor/index.md @@ -3,7 +3,7 @@ title = "Monitoring My Garage Door With a Raspberry Pi, Rust, and a 13Mb Linux S date = 2022-04-20T06:38:27+10:00 [extra] -updated = 2022-04-21T09:07:57+10:00 +updated = 2022-10-17T15:51:20+10:00 +++ I've accidentally left our garage door open a few times. To combat this I built @@ -301,6 +301,9 @@ happens. All the code, hardware designs, and Buildroot configuration/overlay is available in [the git repository][repo] if you're interested. +[See part two](@posts/2022/garage-door-monitor-update/index.md) for a couple of new +features I added a few months later. + [app]: https://github.com/wezm/garage-door-monitor/tree/main/app [Awesome]: https://github.com/awesomeWM/awesome [FreeCAD]: https://www.freecadweb.org/