{"_id":"6brain","_rev":"4-eea3dd14802fcc8c553dd0405966fc05","name":"6brain","dist-tags":{"latest":"0.0.2"},"versions":{"0.0.1":{"name":"6brain","version":"0.0.1","description":"","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"author":{"name":"ants","email":"contact@ants.builders","url":"http://ants.builders"},"license":"MIT","dependencies":{"6sense":"0.0.5","quipu":"0.0.3"},"gitHead":"64d35cbda5311393726b2c7a4d65c716bce523b0","_id":"6brain@0.0.1","_shasum":"1d541d2ef50f74103c9753bd4847fd0542bbd91e","_from":".","_npmVersion":"2.10.0","_nodeVersion":"0.10.38","_npmUser":{"name":"ants","email":"contact@ants.builders"},"dist":{"shasum":"1d541d2ef50f74103c9753bd4847fd0542bbd91e","tarball":"https://registry.npmjs.org/6brain/-/6brain-0.0.1.tgz","integrity":"sha512-SftPLfV59LlFLPXh7aaMKZepnjuPPbUBdR9lcBYJEtJDrtG4t9l4WkN87Cml0MRrnYSWtGCG5m0Hi5PMNQ5c1Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIG2XJTMAP4rK0zzm5NY18nAikW1Dqu+4LwsOdOAk2qpWAiEApD56PMLp/A7gMuaRsoeVxsLFNvuXwQDgFmRI6UCEmvg="}]},"maintainers":[{"name":"ants","email":"contact@ants.builders"}]},"0.0.2":{"name":"6brain","version":"0.0.2","description":"6brain is the core of the 6element sensors. It is responsible for data collection and transmission. It depense on [6sense](https://github.com/anthill/6sense) for data collection and [quipu](https://github.com/anthill/quipu) for transmission through sms.","main":"index.js","scripts":{"postinstall":"if [ -d .git ]; then cp ./git-hooks/pre-commit ./.git/hooks/pre-commit; chmod a+x ./.git/hooks/pre-commit; fi","lint":"eslint ./","test":"echo \"Error: no test specified\" && exit 1"},"author":{"name":"ants","email":"contact@ants.builders","url":"http://ants.builders"},"license":"MIT","dependencies":{"6sense":"0.1.1","node-schedule":"^0.2.6","quipu":"0.1.5","request":"^2.58.0","serialport":"~1.7.4","machina":"~1.1.2","es6-promise":"~2.3.0"},"devDependencies":{"eslint":"^0.21.0"},"gitHead":"8621024cd3f2123d9bfa1808f04e6de68857fda1","_id":"6brain@0.0.2","_shasum":"cb6e1a634525e12e18d7682f193d17f7c665e4e4","_from":"./","_npmVersion":"1.4.28","_npmUser":{"name":"ants","email":"contact@ants.builders"},"maintainers":[{"name":"ants","email":"contact@ants.builders"}],"dist":{"shasum":"cb6e1a634525e12e18d7682f193d17f7c665e4e4","tarball":"https://registry.npmjs.org/6brain/-/6brain-0.0.2.tgz","integrity":"sha512-3R9tCfC0jmq/yCMBnQtJk69AXrICZQpxnGMAA3bNV6i4X074lDhQaKMon2rUz+L+IBCUsUdyuNY5xw5VUGmtOg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDk6Pxy6L8CTKE1f0R06AOZAwcu+VdmIfJwtGOCD7VGGAiEA6zY6oMaonqvZt58jcDXsSjSxrs1vmJko69GLnYpXgjY="}]}}},"readme":"# 6brain\n\n6brain is the core of the 6element sensors. It is responsible for data collection and transmission. It depense on [6sense](https://github.com/anthill/6sense) for data collection and [quipu](https://github.com/anthill/quipu) for transmission through sms.\n\nJuste use `node index.js` to start everything. You should create a file called `PRIVATE.json` with this pattern:\n\n```\n{\n    \"connectInfo\":\n    {\n        \"host\":\"127.0.0.1\",\n        \"port\":1111,\n        \"name\":\"+33600000000\",\n        \"smsServer\":\"+33611111111\",\n        \"authorizedNumbers\":[\"+33611111111\", \"+33622222222\"],\n        \"smsMonitoring\":false\n    },\n    \"PIN\":0000\n}\n\n\n```\n* connectInfo :\n\n\t* host : the tcp server which you want to connect to\n\n\t* port : the port of the tcp server\n\n\t* name : name of the sensor (phone number in the case of 6element)\n\n\t* smsServer : the phone number you want to send data to when smsMonitoring is true\n\n\t* authorizedNumbers : phone numbers which can send command to the sensor\n\n\t* smsMonitoring : true = send data by TCP + SMS, false = only TCP\n\n* PIN :\n\n\tThe PIN number of the SIM card.\n\n\n## Commands\n\n6brain not only pushed the data, it can respond to sms stimuli:\n\n- `status` send back a message with the current status\n- `ip` sends back the ip\n- `openTunnel:2222:9632:kerrigan` opens a reverse ssh tunnel toward `kerrigan` (must be set in `~/.ssh/config`) and send a message once the tunnel is up.\n\n\n## Dockerizing\n\nYou can run everything in a container if you like. **Careful the image is build for arm7 devices.**\n\n```\ndocker build -t=ants/6brain:v1 .\ndocker run -d --restart=always --privileged --net=host -v /dev:/dev ants/6brain:v1\n```","maintainers":[{"name":"ants","email":"contact@ants.builders"}],"time":{"modified":"2022-06-12T14:08:21.122Z","created":"2015-06-03T13:46:42.387Z","0.0.1":"2015-06-03T13:46:42.387Z","0.0.2":"2015-08-18T09:36:21.965Z"},"author":{"name":"ants","email":"contact@ants.builders","url":"http://ants.builders"},"license":"MIT","readmeFilename":"README.md","description":"6brain is the core of the 6element sensors. It is responsible for data collection and transmission. It depense on [6sense](https://github.com/anthill/6sense) for data collection and [quipu](https://github.com/anthill/quipu) for transmission through sms."}