6brain is the core of the 6element sensors. It is responsible for data collection and transmission. It dependes on 6sense for affluence data collection. 6bin for user interface
Juste use node index.js
to start everything. You should create a file called PRIVATE.json
with this pattern:
{
"mqttToken": "zzzzzz", #token for mqtt auth
"sim": "xxxxxxxxx", #id for auth
"host":"xx.xx.xx.xx", #ip address of mqtt broker
"port":... #for mqtt,
"PIN": 0000
}
6brain not only push datas, it can respond to MQTT stimuli:
Here is a list of all commands supported.