Device Notifications
Posted: 19 February 2009 08:17 AM   [ Ignore ]
Newbie
Rank
Total Posts:  9
Joined  2009-01-27

I might be missing it but is there a way to configure which notifications we want to see from devices? For exmaple, I really want a notification when a device goes offline. i’m not interested in notifications based on geofences. Is it possible for me to configure notifications to work this way?

Also, I noticed a table to track the notifications sent. In my case I would rather download the data from the table and have that display inside of my application instead of receiving e-mails. Is it possible to just trigger the notifications without having e-mails sent? If that is the case I would be fine with all of the notifications being triggered with rows being generated in the notifications table and no e-mails being sent.

question

Profile
 
 
Posted: 20 February 2009 05:59 AM   [ Ignore ]   [ # 1 ]
Administrator
RankRankRankRank
Total Posts:  249
Joined  2008-12-18

Currently we don’t support subscribing to certain notification types through the UI. Most of our customers want to know when devices go offline as well as when they enter/exit geofences. With that being said I can talk you through how to customize this yourself. Keep in mind that should you choose this approach we’ll need you to coordinate with our support team so you can get access to your code branch and go through our deployment process. Or you can choose the paid support option, which means we can do it for you.

On your Foundation server there’s a daemon file in /opt/ublip/rails/current/lib/daemons/notifier.rb. In this file you’ll see the following lines:

Notifier.send_geofence_notifications(logger)
Notifier.send_device_offline_notifications(logger)
Notifier.send_gpio_notifications(logger)
Notifier.send_speed_notifications(logger)

If you want just to receive offline notifications then you can comment out the appropriate lines. In Ruby, this would look like:

#Notifier.send_geofence_notifications(logger)
Notifier.send_device_offline_notifications(logger)
#Notifier.send_gpio_notifications(logger)
#Notifier.send_speed_notifications(logger)

Then you’ll need to restart your notifier process. More on that here:

http://dev.numerex.com/getting-started/article/starting-and-stopping-the-ruby-notifier-process/

To answer your question about not receiving emails for notifications can you explain a little more what you’re trying to do? Are you trying to obtain record of when a device goes offline without having your users receive emails? This should be possible, but I’d like to know for certain before I get into too much detail.

Profile
 
 
Posted: 20 February 2009 06:09 AM   [ Ignore ]   [ # 2 ]
Newbie
Rank
Total Posts:  9
Joined  2009-01-27

Since I’m downloading the data into our company database I would send them notifications using our internal messaging system based on the data downloaded. I’ll have a routine go through the downloaded notifications and send those messages internally to whomeever needs them based on the department of the vehicle, etc. I can also set up my own dashboard to display which vehicles are operational and which vehicles are down grouped by department.

How would I determine that a vehicle is back online once a notification has been sent? Will I need to compare dats of the the most recent reading versus the last notification that teh device was down to determine if it’s back online? Is there a notification that says a device is back online when it was previously offline?

Profile
 
 
   
 
 
‹‹ Wishlist items      Geofences Using Polygons ››