Skip to content


Subversion checkout URL

You can clone with
Download ZIP
This is a ping presence driver for your own Ninja Block (
Branch: master

Reverted back to the original ping repo

I made a pullrequest to the original ping repo. He fixed a problem so I can use the original again.
latest commit 191c0059af
@svrooij authored
Failed to load latest commit information.
LICENSE Initial commit ReadMe improved
index.js Fix default logging
package.json Reverted back to the original ping repo
test.js First public release


This is a ping presence driver for your own Ninja Block (

This driver will create two devices, one with the raw data as devices respond to a ping. And one generic state device with three states, 'NobodyHome' , 'SomeoneHome' , 'EveryoneHome'. So you should be able to use those in your rules!!

After enabling this driver a Generic state device should show up, but it won't have any states (i don't know how to create them) but if you create them manually you should be able to use them, and they should start changing state automaticly.

For everyone who likes this driver, you can also use this widget (

Easy installation (Ninja toolbelt required)

To install the easy way you'll need the ninja toolbelt. ( for instructions)

install commando: ninja install

Git installation

  1. SSH to your ninjablock ssh ubuntu@192.168.?.? default password temppwd
  2. Elevate rights sudo su and typ the password
  3. Go to the correct folder cd /opt/ninja/drivers
  4. Clone the repository git clone
  5. Go to the directory and install the dependencies cd ninja-presence-ping && npm install


  • Create a gist for display
  • Add state device for using the presence in the rules engine
  • Enable configuration of host trough the settings, instead of the 'edit the index.js file' way
  • Rewrite the sub driver
  • Moved main state logic to ninja-presence-base
  • Add a device per host, for even better control of the rules
Something went wrong with that request. Please try again.