Page 1 of 1

Portal not sending alerts

Posted: Fri Jun 12, 2015 4:26 pm
by AlanM
I have an alert configured in portal settings for when my LowATO goes to off or 0. I caused it to trigger on purpose, verified by looking at the portal that it was set to 0. Verified with the app that it was set to 0. But I never got an email from the portal. What should I try to debug it?

Re: Portal not sending alerts

Posted: Fri Jun 12, 2015 6:48 pm
by rimai
Do you get other types of alerts correctly?

Re: Portal not sending alerts

Posted: Sat Jun 13, 2015 6:56 am
by AlanM
Nope. I just dropped the skimmate locker sensor into the sump and left it there for a minute or so to see if that one, on HighATO would cause an alert when it went to 0 either. It did do the action on the RA, which was to shut off the skimmer recirc pump, but I didn't get any email.

Re: Portal not sending alerts

Posted: Sat Jun 13, 2015 6:58 am
by AlanM
I am getting data to the portal, but I did recently enable portal key. The key must be correct because it is getting pH and temp and relay box status every 5 minutes. Does the portal key interfere with portal alerts?

Re: Portal not sending alerts

Posted: Sat Jun 13, 2015 10:30 am
by lnevo
You should start with sending an http request to see if its working as expected. You could also check serial monitor to see if it's triggering the http request. Check the wifialert class code to see the url syntax or look at serial monitor first.

Re: Portal not sending alerts

Posted: Sat Jun 13, 2015 10:47 am
by AlanM
I haven't played with any wifialert class functions in my info file. I assumed it happened automatically once you add alerts in the portal. . Does it not? What http requests would I send to the portal to simulate one?

Re: Portal not sending alerts

Posted: Sat Jun 13, 2015 11:44 am
by lnevo
Oh if your just doing portal alerts it should be fine but it may only trigger when the portal receives not when querying live data

Re: Portal not sending alerts

Posted: Sat Jun 13, 2015 12:27 pm
by AlanM
Ah, so does it wait to contact the portal with the alert until the regular 5 minute checkin time? That could explain it.

So where is wifialert documented? I have seen references to it in threads but no how to.

Re: Portal not sending alerts

Posted: Sat Jun 13, 2015 2:56 pm
by lnevo
I have a thread somewhere with example api. It's pretty straight forward. By default it will only send one alert every 15 minutes per instance of the class. Take a look at the header file it should make sense. The only danger is the potential to flood yourself if you don't pay attention

Re: Portal not sending alerts

Posted: Sun Jun 14, 2015 5:25 am
by binder