项目作者: guillain

项目描述 :
Cisco Spark integration with SigFox button
高级语言: JavaScript
项目地址: git://github.com/guillain/digitalDelegation.git
创建时间: 2017-03-22T21:17:21Z
项目社区:https://github.com/guillain/digitalDelegation

开源协议:GNU General Public License v3.0

下载


digitalDelegation

Cisco Spark integration with SigFox button

What is it?

  • Bt.tn / Sigfox button as trigger
  • Cisco Spark as Space for human and data
  • => When the Button is pushed Cisco Spark space is created and people are added

Based on

  • sparky (nodejs + express)
  • bt.tn (can also provide simulator)

HowTo

  • Clone localy

git clone https://github.com/guillain/digitalDelegation.git

  • Go into the folder

cd digitalDelegation

  • Install dependencies

npm install

  • Config your bt.tn with:
    • action: HTTP
    • HTTP URL: your url
    • HTTP Method: POST
    • Arguments: application/json
      1. {"ID":"<ID>","EID":"<EID>","DEVICEID":"<DEVICEID>","counter":"<COUNTER>","date":"<DATE>", "time": "<TIME>","name":"<NAME>","user":"<USER>","location":"<LOCATION>","emailaddress":"<EMAILADDRESS>"}
  • Config your app with your spark bot

cp config.js.default config.js
vi config.js

  • Run the application, two configuration availables

  • 1/ For the dev, node is used

./app manual

  • 2/ For the prod, pm2 is used (install also this dependency)

./app [start|stop|restart|show|staus|log]

  • Push your button!!!
  • Check what happen on your Cisco Spark app

Have fun