Got my NX Witness integrated with Pushover.net for notificiations!
AnsweredHi,
Using the latest 3.2x version I managed to configure Pushover.net into the server for notifications. So far I am impressed with the results (except for false motion alerts due to shadows from trees or rain). I will mention what could be improved as I go along :-).
First, I bought Pushover.net for my Android devices and Chrome desktop... a dirt cheap application in the scheme of things.
This is how I integrated into the Server... with "Do HTTP Request" action".
The URL that is launched is to my NX Cloud portal. You will have to determine the GUI'ds of the camera from your system.
ENHANCEMENT IDEA #1 : The ability to pass metadata into an HTTP request like %Camera, %System would be good.
ENHANCEMENT IDEA #2 : The ability to pass an image based on the motion event so that the Push notification could have a little screenshot and get attached as multi-part media.
The results look like this on my phone.
First, the notification as it comes in:
When I click on it it goes to the detail.
When I click the URL it launches nxvms to the right camera - but to a LIVE view.
ENHANCEMENT IDEA #2 : Ability to pass an exact time of the alert in a nxvms launch URL to position the camera at the right part of the recording. It's not easy on a phone to get to the exact point.
If you have any questions - I will monitor this thread.
Enjoy.
/dan
-
Official comment
Hi Dan,
Thank you for posting this integration with our community. This what we like to see happening in our community, users sharing their integrations and solutions with other community members to learn from each other and share experiences.I will inform our team, regarding the enhancements you proposed, and will ask them to look into this and explain how and if it can be done and if not, give it in consideration for future releases.
For Enhancement 2; you could try to add the following string to your HTTP request;
{"cameraRefs":["3A4AD4EA-9269-4B1F-A7AA-2CEC537D0248","3A4AD4EA-9269-4B1F-A7AA-2CEC537D0240"]}
Not sure if it will work with pushover.net, but with many other applications it does.
The cameraRefs are the cameraIDs which can be found in the 'Advanced' tab in the 'Camera Settings menu, or with the server API call ending at:
/ec2/getCamerasEx or /ec2/getCameras?extraFormatting).Comment actions -
Thanks Norman,
I already have my URL launching to the right camera - that is not the issue.
Before I bother you any further - I do plan to update to 4.0 Beta as there have been some improvements in the Do HTTP Request area and I do not want to ask for something that is already there.
I will put together some thoughtful ideas. But bottom line, what I could not accomplish:
1) Start the playback in nxvms.com at the right time (perhaps rewinding 10 seconds) from the time of the Motion Alert. It is painful in this GUI to adjust the time - it is not a problem with the Desktop GUI or the Android GUI because of the Motion Search. This may require some new query string options to be added to the nxvms pages and a way from the HTTP Do Post to use (%%alert-time%%-10) or something like this so that the URL can be populated automatically without me writing code.
2) Every motion alert is for a different camera and it would nice to be able to pass the right data. NOTE: the GUID from Nx Witness camera data is totally different from the URL format used today. This is not a big bother as I do have the right camera launching - and I only have 4 now :-).
3) The Pushover.net accepts an image attachment - so, if I could refer an image from the time of the Motion Alert that somehow added in the Do HTTP Post as multi-part mime that would be great. The only other way to do this is for me to create my own middleware daemon that accepts an HTTP request from Nx Witness then uses the REST API to Nx Witness to gather all the data needed and then send the request to Pushover.net. Possible yes. I could certainly do that but it would take some time.
If Nx Witness develops their own Push notification to another solution that would be fine by me too, in the meantime my integration was very low cost and about 75% to where I want it.
/dan
-
Hi, this do not work in 4.0. Has anyone got pushover working in 4.0? I have only got pushover mailgateway working but its not as good. Have anyone a solution for sending a link to a arc over sia to get the video in to the arc? Sia can only be 48 characters so wavesync link is to long. Can anyone say how to get the link for opening nx client on the machine instead of opening wavesync homepage? Br Jimmy
-
Hi Jimmy,
Pushover.net is still working fine for me. I first implemented it on 3.2 then used two 4.0 beta versions before it went GA and it worked there as well. I did nothing to my configuration and it is still working with the final 4.0 version.
I can post some additional details to help you, just let me know what you need - the trickiest part was getting the POST data in JSON format set correctly.
/dan
Please sign in to leave a comment.
Comments
5 comments