nodejs && npm
npm install
node walle.js
/Test : test folder
/backup : db backup files
app.js : smart car upload data, via json
calculate.js : use for generate db
data : some raw data(useless)
easymogo : connect to mongodb
http.js : api
utils.js : some useful tool function
walle.js : core js
Walle.js:
- getlocationAPI
- generateDBs
- carControl getlocationAPI:
url: /ibeacon or /wifi method: post data:
- ibeacon
{
"uuid_1":"rssi_1",
"uuid_2":"rssi_2",
"uuid_3":"rssi_3",
"..."
"uuid_n":"rssi_n"
}
- wifi
{
"mac_1":"rssi_1",
"mac_2":"rssi_2",
"mac_3":"rssi_3",
"..."
"mac_n":"rssi_n"
}
generateDBs(generate the ibeaconDB&&wifiDB)
this will regenerate some dbs, pay attention to use it
url:/ mothod: post data:
{
"task":"g"
}
carControl
url:/ctr mothod: post data:
{
"message":"control_content"
}