Go to file
Sergiu Toma 4fbb80e9e9 Update 'README.md' 2020-04-09 17:14:15 +03:00
build LINXD-1312: Update simulator to use setting.testing_period if the option exists in config.settings 2020-04-09 17:02:44 +03:00
certs LINXD-1312: Update simulator to use setting.testing_period if the option exists in config.settings 2020-04-09 17:02:44 +03:00
config LINXD-1312: Update simulator to use setting.testing_period if the option exists in config.settings 2020-04-09 17:02:44 +03:00
sounds Added custom log name 2019-11-22 09:43:37 +00:00
src LINXD-1312: Update simulator to use setting.testing_period if the option exists in config.settings 2020-04-09 17:02:44 +03:00
.gitignore Update mumble reconnect error 2019-10-28 11:28:05 +02:00
README.md Update 'README.md' 2020-04-09 17:14:15 +03:00
createCA.sh Simulator first commit 2019-09-18 11:11:16 +03:00
createCerts.sh Simulator first commit 2019-09-18 11:11:16 +03:00
index.js LINXD-1312: Update simulator to use setting.testing_period if the option exists in config.settings 2020-04-09 17:02:44 +03:00
package-lock.json LINXD-1312: Update simulator to use setting.testing_period if the option exists in config.settings 2020-04-09 17:02:44 +03:00
package.json LINXD-1029: Add relative path to simulator 2019-11-07 15:11:05 +02:00

README.md

Tested with -ubuntu 16.04.6 -openssl: 1.0.2g -node: 8.16.0

Requirements

curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash - sudo apt-get install -y nodejs sudo apt-get install -y build-essential install python 2.7 rm package-lock.json && rm -rf node_modules && rm -rf ~/.node-gyp only (if package-lock.json/node_modules or node was installed) sudo apt-get install libasound2-dev sudo npm i -g node-gyp sudo npm install --unsafe-perm

Configuration

For the simulation to simulate in a period, we must put the testing_period setting in settings (the value is in milliseconds) Example in config:

[settings] max_fails = 3 send_voice = true send_gps = true gps_report_interval = 10000 gps_lng_start_point = 24.776126 testing_period = 7000 # we will simulate all the units in a period of 7 seconds

Start

node index.js --path="./config/stage" node ./index.js --path="./config/testing"