{"id":4698,"date":"2020-09-04T11:41:59","date_gmt":"2020-09-04T09:41:59","guid":{"rendered":"https:\/\/grodansparadis.com\/wordpress\/?p=4698"},"modified":"2020-09-04T11:41:59","modified_gmt":"2020-09-04T09:41:59","slug":"howto-notification-when-mail-arrives","status":"publish","type":"post","link":"https:\/\/grodansparadis.com\/wordpress\/?p=4698","title":{"rendered":"howto: Notification when mail arrives"},"content":{"rendered":"\n<figure class=\"wp-block-image size-large\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"580\" height=\"170\" data-attachment-id=\"4699\" data-permalink=\"https:\/\/grodansparadis.com\/wordpress\/?attachment_id=4699\" data-orig-file=\"https:\/\/i0.wp.com\/grodansparadis.com\/wordpress\/wp-content\/uploads\/2020\/09\/Screenshot-from-2020-09-04-09-34-09.png?fit=718%2C210&amp;ssl=1\" data-orig-size=\"718,210\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"Screenshot-from-2020-09-04-09-34-09\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/grodansparadis.com\/wordpress\/wp-content\/uploads\/2020\/09\/Screenshot-from-2020-09-04-09-34-09.png?fit=580%2C170&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/grodansparadis.com\/wordpress\/wp-content\/uploads\/2020\/09\/Screenshot-from-2020-09-04-09-34-09.png?resize=580%2C170&#038;ssl=1\" alt=\"\" class=\"wp-image-4699\" srcset=\"https:\/\/i0.wp.com\/grodansparadis.com\/wordpress\/wp-content\/uploads\/2020\/09\/Screenshot-from-2020-09-04-09-34-09.png?w=718&amp;ssl=1 718w, https:\/\/i0.wp.com\/grodansparadis.com\/wordpress\/wp-content\/uploads\/2020\/09\/Screenshot-from-2020-09-04-09-34-09.png?resize=300%2C88&amp;ssl=1 300w\" sizes=\"auto, (max-width: 580px) 100vw, 580px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Remember the <a href=\"Howto: Snailmail sensor\">Howto: Snailmail sensor<\/a>?  Of course I need a notification on my phone when mail arrives so I can use my old legs and go out and get it. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">I use email and Telegram for this. I also have added a SMS message to but this costs money (to much really) and I like &#8220;free&#8221;.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The setup is simple.<\/p>\n\n\n\n<h5 class=\"wp-block-heading\">Common<\/h5>\n\n\n\n<p class=\"wp-block-paragraph\">The first to do is to listen for incoming events from the VSCP daemon where the mailbox thing delivers them.  I could have used a MQTT broker here but have chosen to stick to an all VSCP solution for this.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The server is the local machine in this case as I have node-red installed on it as well. Well I have about twelve (last count) node-red installations running here so there are machines to choose from.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The setup is simple<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"343\" height=\"344\" data-attachment-id=\"4700\" data-permalink=\"https:\/\/grodansparadis.com\/wordpress\/?attachment_id=4700\" data-orig-file=\"https:\/\/i0.wp.com\/grodansparadis.com\/wordpress\/wp-content\/uploads\/2020\/09\/Screenshot-from-2020-09-04-09-43-34.png?fit=343%2C344&amp;ssl=1\" data-orig-size=\"343,344\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"Screenshot-from-2020-09-04-09-43-34\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/grodansparadis.com\/wordpress\/wp-content\/uploads\/2020\/09\/Screenshot-from-2020-09-04-09-43-34.png?fit=343%2C344&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/grodansparadis.com\/wordpress\/wp-content\/uploads\/2020\/09\/Screenshot-from-2020-09-04-09-43-34.png?resize=343%2C344&#038;ssl=1\" alt=\"\" class=\"wp-image-4700\" srcset=\"https:\/\/i0.wp.com\/grodansparadis.com\/wordpress\/wp-content\/uploads\/2020\/09\/Screenshot-from-2020-09-04-09-43-34.png?w=343&amp;ssl=1 343w, https:\/\/i0.wp.com\/grodansparadis.com\/wordpress\/wp-content\/uploads\/2020\/09\/Screenshot-from-2020-09-04-09-43-34.png?resize=300%2C300&amp;ssl=1 300w, https:\/\/i0.wp.com\/grodansparadis.com\/wordpress\/wp-content\/uploads\/2020\/09\/Screenshot-from-2020-09-04-09-43-34.png?resize=150%2C150&amp;ssl=1 150w\" sizes=\"auto, (max-width: 343px) 100vw, 343px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">The localhost is setup as<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"341\" height=\"322\" data-attachment-id=\"4701\" data-permalink=\"https:\/\/grodansparadis.com\/wordpress\/?attachment_id=4701\" data-orig-file=\"https:\/\/i0.wp.com\/grodansparadis.com\/wordpress\/wp-content\/uploads\/2020\/09\/Screenshot-from-2020-09-04-09-47-20.png?fit=341%2C322&amp;ssl=1\" data-orig-size=\"341,322\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"Screenshot-from-2020-09-04-09-47-20\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/grodansparadis.com\/wordpress\/wp-content\/uploads\/2020\/09\/Screenshot-from-2020-09-04-09-47-20.png?fit=341%2C322&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/grodansparadis.com\/wordpress\/wp-content\/uploads\/2020\/09\/Screenshot-from-2020-09-04-09-47-20.png?resize=341%2C322&#038;ssl=1\" alt=\"\" class=\"wp-image-4701\" srcset=\"https:\/\/i0.wp.com\/grodansparadis.com\/wordpress\/wp-content\/uploads\/2020\/09\/Screenshot-from-2020-09-04-09-47-20.png?w=341&amp;ssl=1 341w, https:\/\/i0.wp.com\/grodansparadis.com\/wordpress\/wp-content\/uploads\/2020\/09\/Screenshot-from-2020-09-04-09-47-20.png?resize=300%2C283&amp;ssl=1 300w\" sizes=\"auto, (max-width: 341px) 100vw, 341px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">I use a standard setup, just listen on all traffic (no filter), no interface.  So at this point I get a lot of events.  I could have added a filter here to ease the work for node-red and let the VSCP Daemon do the filtering. But I like when my applications work hard so node-red take care of that task.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Filtering is the next state. The filter looks like this<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"342\" height=\"277\" data-attachment-id=\"4702\" data-permalink=\"https:\/\/grodansparadis.com\/wordpress\/?attachment_id=4702\" data-orig-file=\"https:\/\/i0.wp.com\/grodansparadis.com\/wordpress\/wp-content\/uploads\/2020\/09\/Screenshot-from-2020-09-04-09-52-22.png?fit=342%2C277&amp;ssl=1\" data-orig-size=\"342,277\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"Screenshot-from-2020-09-04-09-52-22\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/grodansparadis.com\/wordpress\/wp-content\/uploads\/2020\/09\/Screenshot-from-2020-09-04-09-52-22.png?fit=342%2C277&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/grodansparadis.com\/wordpress\/wp-content\/uploads\/2020\/09\/Screenshot-from-2020-09-04-09-52-22.png?resize=342%2C277&#038;ssl=1\" alt=\"\" class=\"wp-image-4702\" srcset=\"https:\/\/i0.wp.com\/grodansparadis.com\/wordpress\/wp-content\/uploads\/2020\/09\/Screenshot-from-2020-09-04-09-52-22.png?w=342&amp;ssl=1 342w, https:\/\/i0.wp.com\/grodansparadis.com\/wordpress\/wp-content\/uploads\/2020\/09\/Screenshot-from-2020-09-04-09-52-22.png?resize=300%2C243&amp;ssl=1 300w\" sizes=\"auto, (max-width: 342px) 100vw, 342px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">I filter on <a href=\"https:\/\/docs.vscp.org\/spec\/latest\/#\/.\/class1.information?id=type29\">CLASS1.INFORMATION \/VSCP_TYPE_INFORMATION_WOKEN_UP<\/a> which is sent when the lid of the postbox is opened. I also filter on the GUID from the postbox device. The GUID from the device is a good example of a GUID derived from a devices MAC address. It is built from a template like this<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">FF:FF:FF:FF:FF:FF:FF:FE:YY:YY:YY:YY:YY:YY:XX:XX<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">where YY is the MAC address of the device and XX is something the designer can use the way he\/she likes. <a href=\"https:\/\/docs.vscp.org\/spec\/latest\/#\/.\/vscp_globally_unique_identifiers?id=predefined-vscp-guid39s\">Read more about this here<\/a> if you are interested.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">After the filter we now only get an event when the Woken up event is sent. <\/p>\n\n\n\n<h5 class=\"wp-block-heading\">Email<\/h5>\n\n\n\n<p class=\"wp-block-paragraph\">The email setup is using the standard email tool (<a href=\"https:\/\/flows.nodered.org\/node\/node-red-node-email\">node-red-node-email<\/a>). Nothing special with this setup. Just plain old mail delivery. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Before the email node I specify the mail content<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"431\" height=\"298\" data-attachment-id=\"4704\" data-permalink=\"https:\/\/grodansparadis.com\/wordpress\/?attachment_id=4704\" data-orig-file=\"https:\/\/i0.wp.com\/grodansparadis.com\/wordpress\/wp-content\/uploads\/2020\/09\/Screenshot-from-2020-09-04-10-00-52.png?fit=431%2C298&amp;ssl=1\" data-orig-size=\"431,298\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"Screenshot-from-2020-09-04-10-00-52\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/grodansparadis.com\/wordpress\/wp-content\/uploads\/2020\/09\/Screenshot-from-2020-09-04-10-00-52.png?fit=431%2C298&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/grodansparadis.com\/wordpress\/wp-content\/uploads\/2020\/09\/Screenshot-from-2020-09-04-10-00-52.png?resize=431%2C298&#038;ssl=1\" alt=\"\" class=\"wp-image-4704\" srcset=\"https:\/\/i0.wp.com\/grodansparadis.com\/wordpress\/wp-content\/uploads\/2020\/09\/Screenshot-from-2020-09-04-10-00-52.png?w=431&amp;ssl=1 431w, https:\/\/i0.wp.com\/grodansparadis.com\/wordpress\/wp-content\/uploads\/2020\/09\/Screenshot-from-2020-09-04-10-00-52.png?resize=300%2C207&amp;ssl=1 300w\" sizes=\"auto, (max-width: 431px) 100vw, 431px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">I think it is pretty clear from the above picture where all fields go in the email. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Nothing more to it. An email is now sent when physical post arrives.<\/p>\n\n\n\n<h5 class=\"wp-block-heading\">Telegram<\/h5>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/telegram.org\/\">Telegram<\/a> is a perfect (and free) way to deliver\/receive messages. There are apps and tools available for every platform. One just set up a bot (channel) and then subscribe to it on devices that should get the message.  Download telegram first for your platform(s) (computer, tablet or phone).<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/docs.microsoft.com\/en-us\/azure\/bot-service\/bot-service-channel-connect-telegram?view=azure-bot-service-4.0\">Microsoft have a good walk through here<\/a> on how to create a new bot. No need for me to repeat the steps. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">In node-red I use the <a href=\"https:\/\/flows.nodered.org\/node\/node-red-contrib-telegrambot\">node-red-contrib-telegrambot<\/a> node (<strong>telegram sender<\/strong> in this case). There are many other packages around but this one worked fine so I stick to it. My setup is like this<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"341\" height=\"172\" data-attachment-id=\"4705\" data-permalink=\"https:\/\/grodansparadis.com\/wordpress\/?attachment_id=4705\" data-orig-file=\"https:\/\/i0.wp.com\/grodansparadis.com\/wordpress\/wp-content\/uploads\/2020\/09\/Screenshot-from-2020-09-04-10-18-49.png?fit=341%2C172&amp;ssl=1\" data-orig-size=\"341,172\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"Screenshot-from-2020-09-04-10-18-49\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/grodansparadis.com\/wordpress\/wp-content\/uploads\/2020\/09\/Screenshot-from-2020-09-04-10-18-49.png?fit=341%2C172&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/grodansparadis.com\/wordpress\/wp-content\/uploads\/2020\/09\/Screenshot-from-2020-09-04-10-18-49.png?resize=341%2C172&#038;ssl=1\" alt=\"\" class=\"wp-image-4705\" srcset=\"https:\/\/i0.wp.com\/grodansparadis.com\/wordpress\/wp-content\/uploads\/2020\/09\/Screenshot-from-2020-09-04-10-18-49.png?w=341&amp;ssl=1 341w, https:\/\/i0.wp.com\/grodansparadis.com\/wordpress\/wp-content\/uploads\/2020\/09\/Screenshot-from-2020-09-04-10-18-49.png?resize=300%2C151&amp;ssl=1 300w\" sizes=\"auto, (max-width: 341px) 100vw, 341px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">and<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"495\" height=\"614\" data-attachment-id=\"4706\" data-permalink=\"https:\/\/grodansparadis.com\/wordpress\/?attachment_id=4706\" data-orig-file=\"https:\/\/i0.wp.com\/grodansparadis.com\/wordpress\/wp-content\/uploads\/2020\/09\/telegram.png?fit=495%2C614&amp;ssl=1\" data-orig-size=\"495,614\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"telegram\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/grodansparadis.com\/wordpress\/wp-content\/uploads\/2020\/09\/telegram.png?fit=495%2C614&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/grodansparadis.com\/wordpress\/wp-content\/uploads\/2020\/09\/telegram.png?resize=495%2C614&#038;ssl=1\" alt=\"\" class=\"wp-image-4706\" srcset=\"https:\/\/i0.wp.com\/grodansparadis.com\/wordpress\/wp-content\/uploads\/2020\/09\/telegram.png?w=495&amp;ssl=1 495w, https:\/\/i0.wp.com\/grodansparadis.com\/wordpress\/wp-content\/uploads\/2020\/09\/telegram.png?resize=242%2C300&amp;ssl=1 242w\" sizes=\"auto, (max-width: 495px) 100vw, 495px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">The token is the token you get from the setup.  It looks something like this<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"580\" height=\"271\" data-attachment-id=\"4707\" data-permalink=\"https:\/\/grodansparadis.com\/wordpress\/?attachment_id=4707\" data-orig-file=\"https:\/\/i0.wp.com\/grodansparadis.com\/wordpress\/wp-content\/uploads\/2020\/09\/Screenshot-from-2020-09-04-10-27-23.png?fit=628%2C293&amp;ssl=1\" data-orig-size=\"628,293\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"Screenshot-from-2020-09-04-10-27-23\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/grodansparadis.com\/wordpress\/wp-content\/uploads\/2020\/09\/Screenshot-from-2020-09-04-10-27-23.png?fit=580%2C271&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/grodansparadis.com\/wordpress\/wp-content\/uploads\/2020\/09\/Screenshot-from-2020-09-04-10-27-23.png?resize=580%2C271&#038;ssl=1\" alt=\"\" class=\"wp-image-4707\" srcset=\"https:\/\/i0.wp.com\/grodansparadis.com\/wordpress\/wp-content\/uploads\/2020\/09\/Screenshot-from-2020-09-04-10-27-23.png?w=628&amp;ssl=1 628w, https:\/\/i0.wp.com\/grodansparadis.com\/wordpress\/wp-content\/uploads\/2020\/09\/Screenshot-from-2020-09-04-10-27-23.png?resize=300%2C140&amp;ssl=1 300w\" sizes=\"auto, (max-width: 580px) 100vw, 580px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">The message needs to be defined here also and that is done in the stage before the <strong>telegram sender<\/strong> node. This is how I set it up<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"426\" height=\"274\" data-attachment-id=\"4708\" data-permalink=\"https:\/\/grodansparadis.com\/wordpress\/?attachment_id=4708\" data-orig-file=\"https:\/\/i0.wp.com\/grodansparadis.com\/wordpress\/wp-content\/uploads\/2020\/09\/Screenshot-from-2020-09-04-10-30-35.png?fit=426%2C274&amp;ssl=1\" data-orig-size=\"426,274\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"Screenshot-from-2020-09-04-10-30-35\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/grodansparadis.com\/wordpress\/wp-content\/uploads\/2020\/09\/Screenshot-from-2020-09-04-10-30-35.png?fit=426%2C274&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/grodansparadis.com\/wordpress\/wp-content\/uploads\/2020\/09\/Screenshot-from-2020-09-04-10-30-35.png?resize=426%2C274&#038;ssl=1\" alt=\"\" class=\"wp-image-4708\" srcset=\"https:\/\/i0.wp.com\/grodansparadis.com\/wordpress\/wp-content\/uploads\/2020\/09\/Screenshot-from-2020-09-04-10-30-35.png?w=426&amp;ssl=1 426w, https:\/\/i0.wp.com\/grodansparadis.com\/wordpress\/wp-content\/uploads\/2020\/09\/Screenshot-from-2020-09-04-10-30-35.png?resize=300%2C193&amp;ssl=1 300w\" sizes=\"auto, (max-width: 426px) 100vw, 426px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Now if you have installed Telegram on your phone\/computer\/tablet or whatever you will never miss the post delivery again and if you are fast enough you may even have time to wave to the postman\/postgirl.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Here is the node-red code for this setup<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n&#x5B;{&quot;id&quot;:&quot;8387a5b3.258038&quot;,&quot;type&quot;:&quot;vscp-tcp-in&quot;,&quot;z&quot;:&quot;5ffcb26.533894c&quot;,&quot;name&quot;:&quot;Localhost&quot;,&quot;host&quot;:&quot;eaaa0283.83ca08&quot;,&quot;username&quot;:&quot;admin&quot;,&quot;password&quot;:&quot;secret&quot;,&quot;filter&quot;:&quot;&quot;,&quot;keyctx&quot;:&quot;vscp2&quot;,&quot;x&quot;:140,&quot;y&quot;:120,&quot;wires&quot;:&#x5B;&#x5B;&quot;9fe6d87d.7e56d&quot;]]},{&quot;id&quot;:&quot;9fe6d87d.7e56d&quot;,&quot;type&quot;:&quot;vscpfilter&quot;,&quot;z&quot;:&quot;5ffcb26.533894c&quot;,&quot;vscppriority&quot;:&quot;&quot;,&quot;vscpclass&quot;:&quot;20&quot;,&quot;vscptype&quot;:&quot;29&quot;,&quot;vscpguid&quot;:&quot;FF:FF:FF:FF:FF:FF:FF:FE:5C:CF:7F:07:76:03:00:00&quot;,&quot;name&quot;:&quot;Filter on Woken Up from mailbox&quot;,&quot;x&quot;:420,&quot;y&quot;:120,&quot;wires&quot;:&#x5B;&#x5B;&quot;b237b908.eb9ee8&quot;,&quot;e6bf6581.256c98&quot;]]},{&quot;id&quot;:&quot;b8a49e5b.388688&quot;,&quot;type&quot;:&quot;inject&quot;,&quot;z&quot;:&quot;5ffcb26.533894c&quot;,&quot;name&quot;:&quot;&quot;,&quot;props&quot;:&#x5B;{&quot;p&quot;:&quot;payload&quot;},{&quot;p&quot;:&quot;topic&quot;,&quot;vt&quot;:&quot;str&quot;}],&quot;repeat&quot;:&quot;&quot;,&quot;crontab&quot;:&quot;&quot;,&quot;once&quot;:false,&quot;onceDelay&quot;:0.1,&quot;topic&quot;:&quot;&quot;,&quot;payload&quot;:&quot;Post&quot;,&quot;payloadType&quot;:&quot;str&quot;,&quot;x&quot;:430,&quot;y&quot;:220,&quot;wires&quot;:&#x5B;&#x5B;&quot;b237b908.eb9ee8&quot;,&quot;e6bf6581.256c98&quot;]]},{&quot;id&quot;:&quot;b237b908.eb9ee8&quot;,&quot;type&quot;:&quot;function&quot;,&quot;z&quot;:&quot;5ffcb26.533894c&quot;,&quot;name&quot;:&quot;Define message&quot;,&quot;func&quot;:&quot;msg = {\\n payload : &#039;There is post to collect in the mailbox&#039;,\\n topic : &#039;There is post&#039;,\\n to : &#039;akhe@grodansparadis.com&#039;,\\n from: &#039;akhe@grodansparadis.com&#039;\\n}\\nreturn msg;&quot;,&quot;outputs&quot;:1,&quot;noerr&quot;:0,&quot;initialize&quot;:&quot;&quot;,&quot;finalize&quot;:&quot;&quot;,&quot;x&quot;:820,&quot;y&quot;:120,&quot;wires&quot;:&#x5B;&#x5B;&quot;ccf59966.89df9&quot;]]},{&quot;id&quot;:&quot;ccf59966.89df9&quot;,&quot;type&quot;:&quot;e-mail&quot;,&quot;z&quot;:&quot;5ffcb26.533894c&quot;,&quot;server&quot;:&quot;mailhost.ljusnet.se&quot;,&quot;port&quot;:&quot;25&quot;,&quot;secure&quot;:false,&quot;tls&quot;:false,&quot;name&quot;:&quot;akhe@grodansparadis.com&quot;,&quot;dname&quot;:&quot;Ljusnet&quot;,&quot;x&quot;:1000,&quot;y&quot;:120,&quot;wires&quot;:&#x5B;]},{&quot;id&quot;:&quot;17d730fb.949a3f&quot;,&quot;type&quot;:&quot;telegram sender&quot;,&quot;z&quot;:&quot;5ffcb26.533894c&quot;,&quot;name&quot;:&quot;telegram&quot;,&quot;bot&quot;:&quot;42a44e6b.b2fde&quot;,&quot;x&quot;:1000,&quot;y&quot;:220,&quot;wires&quot;:&#x5B;&#x5B;]]},{&quot;id&quot;:&quot;e6bf6581.256c98&quot;,&quot;type&quot;:&quot;function&quot;,&quot;z&quot;:&quot;5ffcb26.533894c&quot;,&quot;name&quot;:&quot;Define message&quot;,&quot;func&quot;:&quot;\\nmsg.payload = {};\\nmsg.payload.chatId = \\&quot;1105118733\\&quot;;\\nmsg.payload.type = \\&quot;message\\&quot;;\\nmsg.payload.content = \\&quot;There are post to collect in the mailbox\\&quot;;\\nreturn msg;&quot;,&quot;outputs&quot;:1,&quot;noerr&quot;:0,&quot;initialize&quot;:&quot;&quot;,&quot;finalize&quot;:&quot;&quot;,&quot;x&quot;:820,&quot;y&quot;:220,&quot;wires&quot;:&#x5B;&#x5B;&quot;17d730fb.949a3f&quot;]]},{&quot;id&quot;:&quot;eaaa0283.83ca08&quot;,&quot;type&quot;:&quot;vscp-tcp-config-host&quot;,&quot;z&quot;:&quot;&quot;,&quot;name&quot;:&quot;Localhost&quot;,&quot;host&quot;:&quot;localhost&quot;,&quot;port&quot;:&quot;9598&quot;,&quot;timeout&quot;:&quot;10000&quot;,&quot;interface&quot;:&quot;&quot;,&quot;keepalive&quot;:&quot;&quot;},{&quot;id&quot;:&quot;42a44e6b.b2fde&quot;,&quot;type&quot;:&quot;telegram bot&quot;,&quot;z&quot;:&quot;&quot;,&quot;botname&quot;:&quot;pi11_bot&quot;,&quot;usernames&quot;:&quot;brattberg_pi11_bot&quot;,&quot;chatids&quot;:&quot;1234&quot;,&quot;baseapiurl&quot;:&quot;&quot;,&quot;updatemode&quot;:&quot;polling&quot;,&quot;pollinterval&quot;:&quot;300&quot;,&quot;usesocks&quot;:false,&quot;sockshost&quot;:&quot;&quot;,&quot;socksport&quot;:&quot;6667&quot;,&quot;socksusername&quot;:&quot;anonymous&quot;,&quot;sockspassword&quot;:&quot;&quot;,&quot;bothost&quot;:&quot;&quot;,&quot;localbotport&quot;:&quot;8443&quot;,&quot;publicbotport&quot;:&quot;8443&quot;,&quot;privatekey&quot;:&quot;&quot;,&quot;certificate&quot;:&quot;&quot;,&quot;useselfsignedcertificate&quot;:false,&quot;sslterminated&quot;:false,&quot;verboselogging&quot;:false}]\n<\/pre><\/div>\n\n\n<h5 class=\"wp-block-heading\">Talk<\/h5>\n\n\n\n<p class=\"wp-block-paragraph\">If you want your computer to say &#8220;<em>post is delivered<\/em>&#8221; when mail arrives, add this<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"377\" height=\"81\" data-attachment-id=\"4709\" data-permalink=\"https:\/\/grodansparadis.com\/wordpress\/?attachment_id=4709\" data-orig-file=\"https:\/\/i0.wp.com\/grodansparadis.com\/wordpress\/wp-content\/uploads\/2020\/09\/Screenshot-from-2020-09-04-11-36-09.png?fit=377%2C81&amp;ssl=1\" data-orig-size=\"377,81\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"Screenshot-from-2020-09-04-11-36-09\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/grodansparadis.com\/wordpress\/wp-content\/uploads\/2020\/09\/Screenshot-from-2020-09-04-11-36-09.png?fit=377%2C81&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/grodansparadis.com\/wordpress\/wp-content\/uploads\/2020\/09\/Screenshot-from-2020-09-04-11-36-09.png?resize=377%2C81&#038;ssl=1\" alt=\"\" class=\"wp-image-4709\" srcset=\"https:\/\/i0.wp.com\/grodansparadis.com\/wordpress\/wp-content\/uploads\/2020\/09\/Screenshot-from-2020-09-04-11-36-09.png?w=377&amp;ssl=1 377w, https:\/\/i0.wp.com\/grodansparadis.com\/wordpress\/wp-content\/uploads\/2020\/09\/Screenshot-from-2020-09-04-11-36-09.png?resize=300%2C64&amp;ssl=1 300w\" sizes=\"auto, (max-width: 377px) 100vw, 377px\" \/><\/figure>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n&#x5B;{&quot;id&quot;:&quot;cb6535fa.e7dc38&quot;,&quot;type&quot;:&quot;function&quot;,&quot;z&quot;:&quot;5ffcb26.533894c&quot;,&quot;name&quot;:&quot;Define message&quot;,&quot;func&quot;:&quot;msg.payload = \\&quot;Post has been delivered\\&quot;;\\nreturn msg;\\n&quot;,&quot;outputs&quot;:1,&quot;noerr&quot;:0,&quot;initialize&quot;:&quot;&quot;,&quot;finalize&quot;:&quot;&quot;,&quot;x&quot;:820,&quot;y&quot;:300,&quot;wires&quot;:&#x5B;&#x5B;&quot;6d1af59f.bb754c&quot;]]},{&quot;id&quot;:&quot;6d1af59f.bb754c&quot;,&quot;type&quot;:&quot;ui_audio&quot;,&quot;z&quot;:&quot;5ffcb26.533894c&quot;,&quot;name&quot;:&quot;sound&quot;,&quot;group&quot;:&quot;b5541ba5.781d38&quot;,&quot;voice&quot;:&quot;en-GB&quot;,&quot;always&quot;:true,&quot;x&quot;:990,&quot;y&quot;:300,&quot;wires&quot;:&#x5B;]},{&quot;id&quot;:&quot;b5541ba5.781d38&quot;,&quot;type&quot;:&quot;ui_group&quot;,&quot;z&quot;:&quot;&quot;,&quot;name&quot;:&quot;Temperatures&quot;,&quot;tab&quot;:&quot;b0073866.5d3d68&quot;,&quot;order&quot;:1,&quot;disp&quot;:true,&quot;width&quot;:&quot;6&quot;,&quot;collapse&quot;:false},{&quot;id&quot;:&quot;b0073866.5d3d68&quot;,&quot;type&quot;:&quot;ui_tab&quot;,&quot;z&quot;:&quot;&quot;,&quot;name&quot;:&quot;Home&quot;,&quot;icon&quot;:&quot;dashboard&quot;,&quot;disabled&quot;:false,&quot;hidden&quot;:false}]\n<\/pre><\/div>\n\n\n<p class=\"wp-block-paragraph\"><strong>Have fun!<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Remember the Howto: Snailmail sensor? Of course I need a notification on my phone when mail arrives so I can use my old legs and go out and get it. I use email and Telegram for this. I also have added a SMS message to but this costs money (to much really) and I like [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_crdt_document":"","jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[83,13],"tags":[],"class_list":["post-4698","post","type-post","status-publish","format-standard","hentry","category-node-red","category-vscp"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p4raCZ-1dM","jetpack_sharing_enabled":true,"jetpack_likes_enabled":true,"jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/grodansparadis.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/4698","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/grodansparadis.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/grodansparadis.com\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/grodansparadis.com\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/grodansparadis.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4698"}],"version-history":[{"count":2,"href":"https:\/\/grodansparadis.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/4698\/revisions"}],"predecessor-version":[{"id":4710,"href":"https:\/\/grodansparadis.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/4698\/revisions\/4710"}],"wp:attachment":[{"href":"https:\/\/grodansparadis.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4698"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/grodansparadis.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4698"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/grodansparadis.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4698"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}