Skip to content

Retrieval of e-mail, extraction of image attachments, resizing and creation of slideshow for MQTT

License

Notifications You must be signed in to change notification settings

filipnet/nodered-securitycam

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nodered-securitycam

Retrieval of e-mail, extraction of image attachments, resizing and creation of slideshow for MQTT

If your security cam only sends e-mail attachments, there is the possibility to deal with ONFIV or to process these e-mails further.

Node-RED flow

FEATURES

  • Connect to IMAP server
  • Retrieval unread e-mail of security cams from dedicated mailbox
  • Mark already processed e-mails as read
  • Split by securitycam (only necessary if there are several cams)
  • Extract attachments (images) out of e-mail
  • Shrink the images to 400px width (configuration in flow variable)
  • Write each single image to folder
  • Endless loop, which outputs the images in an interval of 10s
  • Show output in Node-RED preview
  • Send output to MQTT topic

REQUIREMENTS

ADDITIONAL NODES

  • node-red-node-email
  • node-red-contrib-image-tools

CONFIGURATION

  • Configure a dedicated mailbox for the security cams, otherwise you have to separate this emails in your flow
  • Make sure the user that runs the Node-RED process has read and write access to the folder for the images

EXAMPLE

You can find an example in the GitHUB repository: flows-nodered-securitycam.json

REMARKS

If you decide to use flow- or global variables instead of writing the images to a folder, take care of your heap memory. More information in CHANGELOG.md

LICENSE

nodered-securitycam and all individual scripts are under the BSD 3-Clause license unless explicitly noted otherwise. Please refer to the LICENSE

About

Retrieval of e-mail, extraction of image attachments, resizing and creation of slideshow for MQTT

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published