Browse Source

Bug fixes and typos.

dev
Franco Masotti 3 years ago
parent
commit
7c33a6333f
Signed by: frnmst
GPG Key ID: 24116ED85666780A
  1. 12
      _posts/2018-11-06-the-stupid-smart-doorbell.md

12
_posts/2018-11-06-the-stupid-smart-doorbell.md

@ -1,7 +1,7 @@
---
title: A stupid smart doorbell system
tags: [doorbell, debian, ssh, fswebcam, bash, shell, microphone, webcam, raspberry pi, thinkpad]
updated: 2018-11-06 23:00
updated: 2019-07-01 11:16
description: A stupid smart doorbell that mails you a photo of who rang
---
@ -197,7 +197,7 @@ CAMERA="/dev/video0"
RESOLUTION="640x480"
CAPTURE_FRAMES="1"
SKIP_FRAMES="50"
BRIGHNESS="100%"
BRIGHTNESS="100%"
CONTRAST="100%"
LOG_FILE="/var/log/doorbell.log"
MAIL_SUBJECT="doorbell"
@ -220,7 +220,7 @@ pid="$!"
# Below: put generic commands.
# Speak out.
espeak -s 125 -v it "Campanello" &
espeak -s 125 -v it "Doorbell" &
# Keep a log file.
echo "${MESSAGE}" >> "${LOG_FILE}" &
@ -228,7 +228,7 @@ echo "${MESSAGE}" >> "${LOG_FILE}" &
wait "${pid}"
# Below: put commands which need the photo as dependency.
echo "${MESSAGE}" | s-nail \
echo "${MESSAGE}" | mail \
-r "${MAIL_SENDER}" \
-s "${MAIL_SUBJECT}" \
-a "${PICTURE_FILE}" \
@ -254,7 +254,7 @@ popd
- Add a user and its password
```
# useradd -m -s /bin/bash doorbell
# useradd -U -m -s /bin/bash doorbell
# passwd doorbell
# exit
```
@ -346,7 +346,7 @@ web_extras=""
# alsactl store
```
## Possible roadmeap
## Possible roadmap
- Version 0.0: this version.
- Version 0.1: discontinue the Thinkpad A31 and use the Raspberry PI instead

Loading…
Cancel
Save