Hi Frank,
the first argument to getnpush() should be the absolute path on your server running wordpress. On the pastbin code it shows a URL instead of a path.
Please let me know if this fixes it!
Perhaps it’s ugly, but i got it working. Perhaps this is something for inclusion in the next release?
[Code moderated as per the Forum Rules. Please use the pastebin]