Webhook Forwarder

51 views
Skip to first unread message

AndyH

unread,
Jun 3, 2010, 3:38:17 PM6/3/10
to growl for windows
Hi,

just tried to get the Webhook Forwarder Plugin working, but no luck :-
(
It seems that no data gets POSTed to my PHP-Script?
I am using Growl 2.0.3.5

Anything I could be missing?

Andy

Brian Dunnington

unread,
Jun 3, 2010, 3:46:01 PM6/3/10
to growl-fo...@googlegroups.com
couple of things to try:

1. enable logging -
http://groups.google.com/group/growl-for-windows/browse_thread/thread/1c17687b801efff0/038d1645921177c3?hl=en&lnk=gst&q=logging#038d1645921177c3
- then when you receive a notification that should be forwarded, check
the log to make sure it was forwarded properly

2. after you enable logging and do some tests, check the debug.txt
file (located in the same location as the log files above, but up one
level from the 'Logs' folder) and see what it reports. i think that if
the response is not 200 (404 or 500 or whatever), that will get
logged.

lastly, make sure the forwarder is enabled and that forwarding in
general is enabled (check the 'Forward notifications to other
computers' box). make sure the application and notification type you
are sending are enabled as well.

try those out and let me know what you find and we can go from there.

> --
> You received this message because you are subscribed to the Google Groups "growl for windows" group.
> To post to this group, send email to growl-fo...@googlegroups.com.
> To unsubscribe from this group, send email to growl-for-wind...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/growl-for-windows?hl=en.
>
>

AndyH

unread,
Jun 3, 2010, 4:12:51 PM6/3/10
to growl for windows
Enabled logging, but no "debug.txt" file is created (only "GNTP_*.txt"
files in the "Log" Directory)...
The forwarder calls my script as I get the email it sends, but no
$_POST variables are passed along.

Andy

On 3 Jun., 21:46, Brian Dunnington <briandunning...@gmail.com> wrote:
> couple of things to try:
>
> 1. enable logging -http://groups.google.com/group/growl-for-windows/browse_thread/thread...
> - then when you receive a notification that should be forwarded, check
> the log to make sure it was forwarded properly
>
> 2. after you enable logging and do some tests, check the debug.txt
> file (located in the same location as the log files above, but up one
> level from the 'Logs' folder) and see what it reports. i think that if
> the response is not 200 (404 or 500 or whatever), that will get
> logged.
>
> lastly, make sure the forwarder is enabled and that forwarding in
> general is enabled (check the 'Forward notifications to other
> computers' box). make sure the application and notification type you
> are sending are enabled as well.
>
> try those out and let me know what you find and we can go from there.
>

Brian Dunnington

unread,
Jun 3, 2010, 4:18:09 PM6/3/10
to growl-fo...@googlegroups.com
On Thu, Jun 3, 2010 at 1:12 PM, AndyH <a.o.h...@googlemail.com> wrote:
> Enabled logging, but no "debug.txt" file is created (only "GNTP_*.txt"
> files in the "Log" Directory)...
> The forwarder calls my script as I get the email it sends, but no
> $_POST variables are passed along.

ah. i thought it wasnt even being called. let me do some debugging
here to make sure there is not obvious bug and then maybe we can
figure out what is going on.

(sorry about the 'debug.txt' - i forgot that debug logging is not
enabled automatically when you enable notification logging. to enable
debug logging, launch Growl.exe with the following switch:

Growl.exe /debug:true

Brian Dunnington

unread,
Jun 3, 2010, 4:34:07 PM6/3/10
to growl-fo...@googlegroups.com
bleh - there was a problem with the Webhook version that i uploaded
that didnt have the correct content-type header. i uploaded the
correct version, so you can re-install it from here:
http://www.growlforwindows.com/gfw/forwarders/webhook

make sure GfW is not running and then click the 'Install Now' link and
GfW will download and install the updated plugin and then you should
be all set.

thanks for finding that and reporting it.

AndyH

unread,
Jun 3, 2010, 5:30:22 PM6/3/10
to growl for windows
Whoohoo!
Works like a charm!

Is there any way to pass the notification icon to the webhook?

Andy

On 3 Jun., 22:34, Brian Dunnington <briandunning...@gmail.com> wrote:
> bleh - there was a problem with the Webhook version that i uploaded
> that didnt have the correct content-type header. i uploaded the
> correct version, so you can re-install it from here:http://www.growlforwindows.com/gfw/forwarders/webhook
>
> make sure GfW is not running and then click the 'Install Now' link and
> GfW will download and install the updated plugin and then you should
> be all set.
>
> thanks for finding that and reporting it.
>
> On Thu, Jun 3, 2010 at 1:18 PM, Brian Dunnington
>
> <briandunning...@gmail.com> wrote:

Brian Dunnington

unread,
Jun 3, 2010, 6:32:57 PM6/3/10
to growl-fo...@googlegroups.com
On Thu, Jun 3, 2010 at 2:30 PM, AndyH <a.o.h...@googlemail.com> wrote:
> Whoohoo!
> Works like a charm!
>
> Is there any way to pass the notification icon to the webhook?
>
> Andy

glad it is now working - sorry about the inconvenience.

right now, there is no way to pass the icon to the webhook. some icons
are url-based, but some are files on the local machine, and some
others are just raw binary data. as such, there is currently no way to
pass all types.

however, i *might* be able to grab the raw data for all icon types and
then send that in the post, much like any other multipart form post
(like when uploading a file). the biggest downside is that there would
be a big overhead each time as an arbitrarily large amount of data
would be passed each time. i suppose i could make it a preference of
the plugin ('Include Image in POST' or something) so people could
selectively send it, but it wouldnt be on a
notification-by-notification basis.

i have thought about this a bit but havent settled on anything
definite yet. if anybody has any ideas, i am always open to hearing
them.

Reply all
Reply to author
Forward
0 new messages