Geekzone: technology news, blogs, forums
Guest
Welcome Guest.
You haven't logged in yet. If you don't have an account you can register now.


kingdragonfly

5133 posts

Uber Geek


#238047 30-Jun-2018 20:51
Send private message

I have a simple need for monitoring, a black box.

It send an email when circuits changes from open/closed. I'd like to monitor three circuits at least.

Checking the circuits once every few second is plenty fast.

The black box should be robust, and cheap. It only needs to send emails, not receive.

My ISP is Voyager. For email, they use
* an IMAP server,
* that uses authentication
* non-default ports
* SSL

So the email client is a little complex. Anyone have suggestions?

My research has found these

Raspberry Pi and PiFace
http://www.rpilab.net/piface-simple-digital-inputoutput-and-control-for-the-raspberry-pi/
http://www.piface.org.uk/products/piface_digital_2/

Arduino
https://www.hackster.io/eani/diy-how-to-use-the-arduino-uno-to-send-an-email-or-sms-28ac4d

Not sure if these will work though.


Create new topic
richms
23683 posts

Uber Geek

Trusted
Subscriber

  #2046574 30-Jun-2018 21:39
Send private message

Chuck something like IFTTT in the mix and it can send using your google account or similar so not be at the mercy of the ISP. Plenty of tutorials out there on using an esp8266 wifi microcontroller to go the other way, but something from adafruit might show how to use it to trigger a rule rather than the internet triggering its outputs.





Richard rich.ms

lokeynz
101 posts

Master Geek


  #2046609 30-Jun-2018 23:34
Send private message

I've done this with Raspberry Pi and PiFace, sending emails via SMTP.
As far as I know, IMAP still sends email via SMTP so your provider should have an SMTP server available.

 

I've had 2 of these monitoring outputs and sending alerts for just shy of 2 years with no issues, I'm no programmer so the code isn't flash but happy to sanitise and share it if it will help.


 
 
 
 


kingdragonfly

5133 posts

Uber Geek


  #2046621 1-Jul-2018 07:52
Send private message

richms:

Chuck something like IFTTT in the mix and it can send using your google account or similar so not be at the mercy of the ISP. Plenty of tutorials out there on using an esp8266 wifi microcontroller to go the other way, but something from adafruit might show how to use it to trigger a rule rather than the internet triggering its outputs.



https://learn.adafruit.com/using-ifttt-with-adafruit-io/overview

Using IFTTT with Adafruit IO to Make an IoT Door Detector. Know who is comin'

Way cheaper than a guard dog who can use an iPhone, this project will show you how you can use an Adafruit HUZZAH ESP8266 WiFi microcontroller board with a door sensor to email/tweet/text you when your door has opened!

Adafruit.io + IFTTT

This tutorial will show building a full IoT project using Adafruit.IO and a Huzzah board, adding sensors, and then connecting it to IFTTT (if-this-then-that) an API gateway that can communicate with adafruit.io to give your project tons of connectivity options

https://www.androidcentral.com/what-hardware-works-ifttt

What hardware works with IFTTT?

All the things that can talk to all the things using IFTTT.

"IFTTT is an awesome service that lets smart things talk to other smart things. Even if the two smart things don't speak the same language!

Think of the service as a sort of messenger. Maybe you would tell your little brother or sister to go ask mom something when you were kids; IFTTT is like your little brother or sister and will carry a message from one thing to another and talk to both in a way they can understand. The magic behind it is super complicated and sometimes building a recipe that gets things working together can be, too. But because not every smart gadget supports every home assistant or smart hub, it's often the only way to get things working.

The best part is that a lot of companies build products that will work with the IFTTT service. You have the names you know, like Amazon, Google, LG, or Samsung as well as ones you've never heard of before. And just about every type of gadget is supported, from Wi-Fi routers to tea kettles, as well as the services that run on gadgets like Gmail or Cortana. Yes, you can use IFTTT to boil tea every time you get an email if you want."

https://www.hackster.io/PatelDarshil/things-you-should-know-before-using-esp8266-wifi-module-784001

Things You Should Know Before Using ESP8266 WiFi Module

Things you should know using ESP8266 WiFi module for its safety and easiness as it's very delicate module to use.

"ESP8266 is a 3V WiFi module very popular for its Internet of Things applications.

ESP 8266 maximum working Voltage is 3.6V and its very important to note. You must know how to power it, how to serial-connect it with Arduino safely, how to ping and many other things. "

kingdragonfly

5133 posts

Uber Geek


  #2046626 1-Jul-2018 08:45
Send private message

dup. Sorry

kingdragonfly

5133 posts

Uber Geek


  #2046628 1-Jul-2018 08:46
Send private message

This swiss guy's channel, BitlunisLab, has many videos about home automation, including automating a dumb washing machine.

https://www.youtube.com/user/bitlunislab/videos?disable_polymer=1

An advanced video, talking about creating a dashboard for several "Internet of things"

He uses "Node-RED"

You can skip to 3:20 to skip the setup


irongarment
281 posts

Ultimate Geek
Inactive user


  #2046664 1-Jul-2018 10:02
Send private message

Voyager has SMTP for you to submit email:

https://helpdesk.voyager.co.nz/index.php?/Knowledgebase/Article/View/62/28/email-server-settings

You don't mention what you are monitoring. A switch closure? An LED? Doesn't matter. I'll assume you have some circuit between your black box and a GPIO.

I recommend a Raspberry Pi running a simple Python script. It's a lot more versatile than an Arduino for this application.

kingdragonfly

5133 posts

Uber Geek


  #2046873 1-Jul-2018 15:45
Send private message

It's an infra-red "fence" used outdoors.

https://www.unifore.net/home-alarm-system/4-channel-active-infrared-fence-detector-for-perimeter-security.html

It's already wired up to my alarm, which sends me a text. However I have to keep a SIM in it, so I was looking for a cheaper long-term solution.

I thought I'd hook it up to my doorbell also.

 
 
 
 


kingdragonfly

5133 posts

Uber Geek


  #2048387 3-Jul-2018 16:00
Send private message

https://learn.adafruit.com/welcome-to-adafruit-io?view=all

"Want to make your project talk to the Internet? Connect your existing project to the Internet to log, stream, and interact with the data it produces? What about all this Internet-of-Things (IoT) stuff?

Adafruit IO is a platform designed (by us!) to display, respond, and interact with your project's data. We also keep your data private (data feeds are private by default) and secure (we will never sell or give this data away to another company) for you. It's the internet of things - for everyone!

Why We Built Adafruit IO

Here at Adafruit, we sell all of these amazing components, but we couldn't find a good way to interact with them over the Internet. There are certainly a lot of great services out there for datalogging, or communicating with your microcontroller over the web, but these services are either too complicated to get started, or they aren't particularly fun to use. So, we decided to experiment with our own system, and that's Adafruit IO.

Adafruit.io is a cloud service - that just means we run it for you and you don't have to manage it. You can connect to it over the Internet. It's meant primarily for storing and then retrieving data but it can do a lot more than just that!

What can Adafruit IO do for me?

Display your data in real-time, online

Make your project internet-connected: Control motors, read sensor data, and more!

Connect projects to web services like Twitter, RSS feeds, weather services, etc.

Connect your project to other internet-enabled devices

The best part? All of the above is do-able for free with Adafruit IO

Dashboards

Adafruit.io can handle and visualize multiple feeds of data. Want to display data from a temperature-humidity sensor alongside data from an air quality sensor and add a button to turn on the air-conditioner in your room?

No problem! Dashboards are a feature integrated into Adafruit IO which allow you to chart, graph, gauge, log, and display your data. You can view your dashboards from anywhere in the world.

Triggers

Use triggers in Adafruit IO to control and react to your data. Configure triggers to email you when your system goes offline, react to a temperature sensor getting too hot, and publish a message to a new feed. "

irongarment
281 posts

Ultimate Geek
Inactive user


  #2048444 3-Jul-2018 17:08
Send private message

Looks ok. It's in "The Cloud", which basically means "Someone Else's Computer". You'll still need hardware to interface to the fence sensor.

You could do it with an ESP8266 if you wanted something smaller and cheaper than a Pi. I'm pretty sure microPython does SMTP to send emails.

Create new topic





News »

Vodafone enables 5G roaming - for when international travel comes
Posted 30-Oct-2020 15:03


Spark awards funding to Kiwi businesses in 5G funding initiative
Posted 30-Oct-2020 14:58


Huawei launches IdeaHub Pro in New Zealand
Posted 27-Oct-2020 16:41


Southland-based IT specialist providing virtual services worldwide
Posted 27-Oct-2020 15:55


NASA discovers water on sunlit surface of Moon
Posted 27-Oct-2020 08:30


Huawei introduces new features to Petal Search, Maps and Docs
Posted 26-Oct-2020 18:05


Nokia selected by NASA to build first ever cellular network on the Moon
Posted 21-Oct-2020 08:34


Nanoleaf enhances lighting line with launch of Triangles and Mini Triangles
Posted 17-Oct-2020 20:18


Synology unveils DS16211+
Posted 17-Oct-2020 20:12


Ingram Micro introduces FootfallCam to New Zealand channel
Posted 17-Oct-2020 20:06


Dropbox adopts Virtual First working policy
Posted 17-Oct-2020 19:47


OPPO announces Reno4 Series 5G line-up in NZ
Posted 16-Oct-2020 08:52


Microsoft Highway to a Hundred expands to Asia Pacific
Posted 14-Oct-2020 09:34


Spark turns on 5G in Auckland
Posted 14-Oct-2020 09:29


AMD Launches AMD Ryzen 5000 Series Desktop Processors
Posted 9-Oct-2020 10:13









Geekzone Live »

Try automatic live updates from Geekzone directly in your browser, without refreshing the page, with Geekzone Live now.


Support Geekzone »

Our community of supporters help make Geekzone possible. Click the button below to join them.

Support Geezone on PressPatron



Are you subscribed to our RSS feed? You can download the latest headlines and summaries from our stories directly to your computer or smartphone by using a feed reader.

Alternatively, you can receive a daily email with Geekzone updates.