- Mitglied seit
- 04. Sep 2008
- Beiträge
- 2.341
- Punkte für Reaktionen
- 14
- Punkte
- 84
that is a mistake in my script, please wait for a new version or you fix it yourself:
to this code
save the file and test the protocol.
- be sure that there are no outstanding notifications (e.g. device not reachable)
- log into your ds via telnet or ssh and use user root with password from admin
- navigate to /var/packages/net_notifier/target/bin/
- open notifyd with a suitable editor (e.g vi, pico, nano, mcedit)
- search for text "https://api.prowlapp.com/publicapi/add"
- a few rows under this text you see a line with "'body' => {"
Rich (BBCode):
'body' => {
'apikey' => $password,
'application' => uri_escape($app_name),
'event' => uri_escape($nfmessage[0]),
'description' => uri_escape(strftime("%Y-%m-%d %H:%M:%S", localtime($notify->{'time'}))."\n".$nfmessage[1]),
'priority' => $nfmessage[4]
}
Rich (BBCode):
'body' => {
'apikey' => $password,
'application' => $app_name,
'event' => $nfmessage[0],
'description' => strftime("%Y-%m-%d %H:%M:%S", localtime($notify->{'time'}))."\n".$nfmessage[1],
'priority' => $nfmessage[4]
}
save the file and test the protocol.