Update 'README.md'
This commit is contained in:
parent
e5d3d8d5be
commit
1afcef5750
38
README.md
38
README.md
@ -2,26 +2,26 @@
|
|||||||
|
|
||||||
## Requirements
|
## Requirements
|
||||||
|
|
||||||
> curl -sL [https://deb.nodesource.com/setup_8.x](https://deb.nodesource.com/setup_8.x) | sudo -E bash -
|
> curl -sL [https://deb.nodesource.com/setup_8.x](https://deb.nodesource.com/setup_8.x) | sudo -E bash -<br/>
|
||||||
> sudo apt-get install -y nodejs
|
> sudo apt-get install -y nodejs<br/>
|
||||||
> sudo apt-get install -y build-essential
|
> sudo apt-get install -y build-essential<br/>
|
||||||
> install python 2.7
|
> install python 2.7<br/>
|
||||||
> rm package-lock.json && rm -rf node_modules && rm -rf ~/.node-gyp only **(if package-lock.json/node_modules or node was installed)**
|
> rm package-lock.json && rm -rf node_modules && rm -rf ~/.node-gyp only **(if package-lock.json/node_modules or node was installed)**<br/>
|
||||||
> sudo apt-get install libasound2-dev
|
> sudo apt-get install libasound2-dev<br/>
|
||||||
> sudo npm i -g node-gyp
|
> sudo npm i -g node-gyp<br/>
|
||||||
> sudo npm install --unsafe-perm
|
> sudo npm install --unsafe-perm<br/>
|
||||||
|
|
||||||
## Configuration
|
## Configuration
|
||||||
**For the simulation to simulate in a period**, we must put the **testing_period setting in settings** (the value is in milliseconds)
|
**For the simulation to simulate in a period**, we must put the **testing_period setting in settings** (the value is in milliseconds) <br/>
|
||||||
Example in **config**:
|
Example in **config**:<br/>
|
||||||
> [settings]
|
> [settings]<br/>
|
||||||
> max_fails = 3
|
> max_fails = 3<br/>
|
||||||
> send_voice = true
|
> send_voice = true<br/>
|
||||||
> send_gps = true
|
> send_gps = true<br/>
|
||||||
> gps_report_interval = 10000
|
> gps_report_interval = 10000<br/>
|
||||||
> gps_lng_start_point = 24.776126
|
> gps_lng_start_point = 24.776126<br/>
|
||||||
> testing_period = 7000 **# we will simulate all the units in a period of 7 seconds**
|
> testing_period = 7000 **# we will simulate all the units in a period of 7 seconds**<br/>
|
||||||
|
|
||||||
## Start
|
## Start
|
||||||
> node index.js --path="./config/stage" node ./index.js --path="./config/testing"
|
> node index.js --path="./config/stage" node ./index.js --path="./config/testing"<br/>
|
||||||
|
<br/>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user