Node service for tracking devices in Slack.
- track location of devices
- track online/offline state of a device
- track battery state
- see info about device:
os version
,fingerprint
,bluetooth
,nfc
,screen info
,current wifi network
,cpu info
- filter devices
- filter by battery level:
/devices battery:>50
or/devices battery:10
or/devices battery:<90
- filter by os:
/devices os:6.*.*
or/devices os:6
or/devices os:*.*.2
- filter devices which support ble:
/devices ble:true
- filter by cpu architecture:
/devices cpuArch:aarch64
- filter by num of cores:
/devices cpuCoreNum:2
or/devices cpuCoreNum:>2
- mix any filters:
/devices ble:true,os:4
- see verbose info:
/devices v:true
- Add and configure Slack command
- Configure Google Cloud Messages / Firebase Messages
- Setup
MySQL
and create database - Install npm module:
npm install mobile-manager
- Create
app.js
const MobileManager = require('mobile-manager');
new MobileManager({
dbFile: 'database name',
dbUser: 'database user name',
dbPass: 'database password',
port: 6666,
pingTimeout: 1000 * 60,
keys:{
googleCloud: 'google cloud key',
slack: 'slack key'
},
logLevel: 'trace'
}).start();
And add database name
, database user name
, database password
, port
, google cloud key
and slack slash command key
.
pingTimeout
is time in milliseconds which defines how often server sends push messages to devices.
node app.js