Prowl notifications and Status Pin errors in v2.4

General support questions and discussions.

Re: Prowl notifications and Status Pin errors in v2.4

Postby PTB » Fri Mar 13, 2015 5:54 am

Ok will give that a go.

The IP address for api.prowlapp.com is 209.20.72.170 .... correct ?

So change....
char prowlServerName[] = "api.prowlapp.com";
to
char prowlServerName[] = "209.20.72.170 ";

Do I need to show it with commas like the other IP addresses in the code which seem to be a different data type

Will try tomorrow

Sorry for the dumb questions but me and networking just don't seem to get on.
Its a good learning experience though :lol:

Cheers

PTB
PTB
 
Posts: 11
Joined: Wed Jan 28, 2015 7:38 am

Re: Prowl notifications and Status Pin errors in v2.4

Postby support » Sun Mar 15, 2015 9:44 am

The format you have it in (String) should be fine ...
support
Site Admin
 
Posts: 384
Joined: Thu Aug 22, 2013 7:30 pm

Re: Prowl notifications and Status Pin errors in v2.4

Postby PTB » Sun Apr 19, 2015 3:28 am

Hi,

Thanks for help so far, but I am still struggling getting prowl to work.

I've pulled the setup off the garage door and now have it on my desk where it is a lot easier to try different things.
Still to no avail.

The rest of it works great..... I'm really happy with that part.

Anyway... I uncommented some of the Debug defines and this is what I am seeing soon as I open the circuit on A3.

*** Push - server name: '209.20.72.170' - apiKey: 'edited_out_for_forum' - subject: 'MyDoorOpener Notification' - body: 'A door or device has just been opened.' ***
*** Push - completed ***

There was no notification on prowl on my phone.

As that didn't work I put the server back to api.prowlapp.com and tried again
*** Push - server name: 'api.prowlapp.com' - apiKey: 'edited_out_for_forum' - subject: 'MyDoorOpener Notification' - body: 'A door or device has just been opened.' ***
*** Push - completed ***
*** Push - server name: 'api.prowlapp.com' - apiKey: 'edited_out_for_forum' - subject: 'MyDoorOpener Notification' - body: 'A door or device has been opened for more than 1 minute(s).' ***
*** Push - completed ***

Again nothing on the phone.

I again did a test email from my pc to prowl and my phone relayed the message via prowl, so the api key is ok.

I looked through the code and noticed that the serial monitor never said the following message

Serial.println(F("*** Push - connection established ***"));

So the line
if (pushClient.connect(prowlServerName, prowlServerPort))

must be failing, I think

Any other suggestions I can try ?

Thanks

PTB
PTB
 
Posts: 11
Joined: Wed Jan 28, 2015 7:38 am

Re: Prowl notifications and Status Pin errors in v2.4

Postby PTB » Fri Apr 24, 2015 10:25 pm

Just another thought, so I know where to direct my attention.

Is it possible for this prowl issue to be .....

a) router related

or

b) arduino related.

I'm on the verge of buying a new router with more features but I would rather not.

Thanks

PTB
PTB
 
Posts: 11
Joined: Wed Jan 28, 2015 7:38 am

Re: Prowl notifications and Status Pin errors in v2.4

Postby support » Tue Apr 28, 2015 7:02 pm

I doubt it's router related (at least I don't think so). Have you tried adding some extra info to your Ethernet begin() call, such as Gateway, DNS, etc? Other threads
exist on this topic on our forums, and this has resolved such connectivity issues for others in the past.
support
Site Admin
 
Posts: 384
Joined: Thu Aug 22, 2013 7:30 pm

Re: Prowl notifications and Status Pin errors in v2.4

Postby PTB » Mon May 11, 2015 6:55 am

Hi,

First up..... thanks for your help so far.

Well I've been trying different things.

I ended up buying a new router with more features. It wasn't just for this, I had a couple of other reasons as well. Anyway the new router allowed me to port forward
to a different port number internally which the old one would not. So I have gone back to internal port of 80.

Reconfigured the app and the arduino and was working again. So back to the prowl problem.

I tried many different settings including using

char prowlServerName[] = "209.20.72.170";
char prowlServerName[] = "http://209.20.72.170";

uint8_t myDns[4] = { 8, 8, 8, 8 };
uint8_t myGateway[4] = { ?, ?, ?, ? }; <= from router status page
MyDoorOpenerServer myDoorOpenerServer(password, mac, ip, myDns, myGateway);

But all those things never got me anything that said "connection established" in the serial monitor

However only when I used

Code: Select all
char prowlServerName[] = "api.prowlapp.com";

coupled with

Code: Select all
MyDoorOpenerServer myDoorOpenerServer(password, mac, ip);


Did I get the much more promising messages of

-------------------------------
*** Push - server name: 'api.prowlapp.com' - apiKey: 'Valid Key Removed' - subject: 'MyDoorOpener Notification' - body: 'A door or device has just been opened.' ***
*** Push - connection established ***
*** Push - connection stopped ***
*** Push - completed ***
*** Push - server name: 'api.prowlapp.com' - apiKey: 'Valid key Removed' - subject: 'MyDoorOpener Notification' - body: 'A door or device has been opened for more than 1 minute(s).' ***
*** Push - connection established ***
*** Push - connection stopped ***
*** Push - completed ***
------------------------------------------

This shows its getting to this bit of code which should work.

Code: Select all
if (pushClient.connect(prowlServerName, prowlServerPort))
  {
    #if defined(PUSH_SERIAL_DEBUGGING)
      Serial.println(F("*** Push - connection established ***"));
    #endif

    pushClient.print(F("GET "));

    pushClient.print(prowlApiBaseUrl);
    pushClient.print(F("?apikey="));
    pushClient.print(prowlApiKey);
    pushClient.print(F("&application=MyDoorOpener"));
    pushClient.print(F("&url=mydooropener%3A%2F%2Fstatus"));

    char encodedBuffer[100] = "";

    pushClient.print(F("&event="));
    memset(encodedBuffer, 0, 100);
    getUrlEncoded(subject, encodedBuffer);
    pushClient.print(encodedBuffer);

    pushClient.print(F("&description="));
    memset(encodedBuffer, 0, 100);
    getUrlEncoded(body, encodedBuffer);
    pushClient.print(encodedBuffer);

    pushClient.println(F(" HTTP/1.1"));

    pushClient.print(F("Host: "));
    pushClient.println(prowlServerName);

    pushClient.print(F("Accept: *"));
    pushClient.print(F("/"));
    pushClient.println(F("*"));
    pushClient.println(F("Connection: close"));

    pushClient.println();

    pushClient.stop();

    #if defined(PUSH_SERIAL_DEBUGGING)
      Serial.println(F("*** Push - connection stopped ***"));
    #endif
  }

---------------------------------------------------
This problem seems to be the exact same as tiga31328 was having in this post

http://forums.mydooropener.com/viewtopic.php?f=2&t=309&start=40#p836

As always.... any help appreciated.

Cheers

PTB
PTB
 
Posts: 11
Joined: Wed Jan 28, 2015 7:38 am

Re: Prowl notifications and Status Pin errors in v2.4

Postby support » Mon May 11, 2015 8:47 pm

Have you tried a very basic sketch that simply does the Prowl API call ? This would maybe make it easier to confirm there's no Arduino memory corruption or anything of that nature going on ... Just a thought.
support
Site Admin
 
Posts: 384
Joined: Thu Aug 22, 2013 7:30 pm

Re: Prowl notifications and Status Pin errors in v2.4

Postby PTB » Fri May 15, 2015 7:21 am

Hi,

I've tried all sorts of things tonight. Even different versions of arduino. Currently on Arduino 1.6.4

tried all sorts of different combos from

Code: Select all
MyDoorOpenerServer myDoorOpenerServer(password, mac, ip);

to the following in MyDoorOpenerServer.cpp setup with new variables;

Code: Select all
Ethernet.begin(PTB_Mac,PTB_Ip,PTB_Dns,PTB_Gwy,PTB_Subnet);

None of these combos would connect..... I can only ever get a connect via the setup in my previous email

Do you have a copy of a basic sketch that does the prowl api call I could modify with my details to try ?

Or even a snippet of code with the prowl api call hard coded.

Thanks

PTB
PTB
 
Posts: 11
Joined: Wed Jan 28, 2015 7:38 am

Re: Prowl notifications and Status Pin errors in v2.4

Postby support » Sun May 17, 2015 9:35 am

The code is right there in the notifyViaPush() method. Just remove mostly everything else and have that method called in a standalone sketch.
support
Site Admin
 
Posts: 384
Joined: Thu Aug 22, 2013 7:30 pm

Re: Prowl notifications and Status Pin errors in v2.4

Postby slime » Fri Jul 31, 2015 5:15 am

Did you ever get a solution? My prowl api calls seem to work fine for about 4 or 5 times and then stop. The door opener still works at least but prowls stop (from the door opener - I can still send from the prowl web site) until I reset the Arduino :(

Thanks
slime
 
Posts: 5
Joined: Tue Jun 09, 2015 10:13 am

PreviousNext

Return to Support



cron