-
Notifications
You must be signed in to change notification settings - Fork 57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Notification function #24
Conversation
Added a Docker container for notification purpose (based on temperature only for the moment)
Updated the instructions for notification feature configuration
Updated the "Notification function" instructions
Hi @jeremyfritzen |
- Based notification image build on the ivadim/fruitnanny image - Changed the way the container will retrieve the temperature.py script (mounted volume instead of a COPY)
You're right! Thanks for your advice. It works like a charm :) |
- Created a "configuration" file for notification feature - Added "motion detection" to Notification feature (being notified when a motion is detected)
- Fixed the type of temp_min and temp_max variables - Uncommented the loop
also of potential interest: https://gitlab.com/PushFish |
Thanks! |
@@ -16,7 +16,7 @@ services: | |||
|
|||
gstreamer-video: | |||
image: ivadim/fruitnanny-gstreamer | |||
restart: always | |||
restart: "no" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is the reason to set restart to "no"?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's actually a mistake, sorry.
I changed it for my tests because I didn't want containers to be restarted after a RPi reboot.
Thank you 🙇 |
Hi @jeremyfritzen
cd /opt/fruitnanny
docker-compose up -d
cd /opt/fruitnanny
docker-compose -f docker-compose.yml -f docker-compose.notification.yml up -d |
Added a Notification feature to notify the user when the temperature is outside a range.
The user is notified by Pushbullet service.