Skip to content

elevenetc/mobile-manager

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mobile Manager

Build Status Code Climate Test Coverage Issue Count

Node service for tracking devices in Slack.

Features

  • 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

Filtering examples

  • 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

Setup

  1. Add and configure Slack command
  2. Configure Google Cloud Messages / Firebase Messages
  3. Setup MySQL and create database
  4. Install npm module: npm install mobile-manager
  5. 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.

Run

node app.js

Add devices

Build, install and bind client

Licence

MIT

About

Node service for tracking devices in Slack

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published