-->
Page 1 of 2

get notification message if device goes offline

PostPosted: Sun May 28, 2017 1:24 pm
by danluanodemcu
hello,

is there anyway to get a notification message using IFTTT or blynk if my nodemcu loses power or internet connectivity?


i use the arduino ide.

Re: get notification message if device goes offline

PostPosted: Mon May 29, 2017 4:47 am
by Cosmic Mac
I have no idea concerning IFTTT or blynk, but maybe the principle of the "dead man's switch" would apply to your case?
Just send a bit of information to a supervisor system on a regular basis, and let this one alert you if he did not receive the information as expected.

If you're interested, I can explain you how to do with Thingspeak.

Re: get notification message if device goes offline

PostPosted: Mon May 29, 2017 11:45 am
by danluanodemcu
thanks for the reply Cosmic Mac. yes, i'd like to know.

Re: get notification message if device goes offline

PostPosted: Mon May 29, 2017 1:00 pm
by Cosmic Mac
Well, it's easy.

Assuming you already have a ThingSpeak account, and a channel receiving some data on a regular basis...

  1. In the Apps section, create a ThingTweet action (to get notified by a tweet)
    or a ThingHTTP action (if you have access to a messaging API, or created your own script to transform a GET request into email, for example)

  2. Now, create a React with following parameters:
    • Condition Type: No Data Check
    • Test frequency: Every 10 minutes
    • Condition: If channel <your channel> has not been updated for <10> minutes
    • Action: <type of action, either ThingHTTP or ThingTweet> then perform <name of your action, as defined in #1>
    • Options: Run action only the first time the condition is met