Update default.toml to include tests for gps units
This commit is contained in:
parent
12619dcd67
commit
bdfb8ba2c9
@ -12,20 +12,29 @@ use_secure = true
|
||||
accept_untrusted_certs = true
|
||||
|
||||
[settings]
|
||||
send_voice = true
|
||||
send_gps = false
|
||||
gps_report_interval = 4000 # The interval in which the GPS is sent
|
||||
send_voice = false
|
||||
send_gps = true
|
||||
gps_report_interval = 10000 # The interval in which the GPS is sent
|
||||
gps_lat_start_point = 46.217802
|
||||
gps_lng_start_point = 24.776126
|
||||
|
||||
[assets]
|
||||
#VOICE
|
||||
# ids = [1947]
|
||||
ids = [1947,1957]
|
||||
# ids = [1947,1957]
|
||||
# ids = [1947,1957,1967]
|
||||
# ids = [1947,1957,1967,1977,1987,1997,2007,2017,2027,2037] # colinde 0-10
|
||||
# ids = [2047,2057,2067,2077,2087,2097,2107,2117,2127,2137] # colinde 11-20
|
||||
# ids = [1947,1957,1967,1977,1987,1997,2007,2017,2027,2037,2047,2057,2067,2077,2087,2097,2107,2117,2127,2137] colinde 0-20
|
||||
|
||||
#GPS
|
||||
# 50 units
|
||||
ids = [3842,3843,3844,3845,3846,3847,3848,3849,3850,3851,3852,3853,3854,3855,3856,3857,3858,3859,3860,3861,3862,3863,3864,3865,3866,3867,3868,3869,3870,3871,3872,3873,3874,3875,3876,3877,3878,3879,3880,3881,3882,3883,3884,3885,3886,3887,3888,3889,3890,3891,3892]
|
||||
# 100 units
|
||||
# ids = [3842,3843,3844,3845,3846,3847,3848,3849,3850,3851,3852,3853,3854,3855,3856,3857,3858,3859,3860,3861,3862,3863,3864,3865,3866,3867,3868,3869,3870,3871,3872,3873,3874,3875,3876,3877,3878,3879,3880,3881,3882,3883,3884,3885,3886,3887,3888,3889,3890,3891,3892,3893,3894,3895,3896,3897,3898,3899,3900,3901,3902,3903,3904,3905,3906,3907,3908,3909,3910,3911,3912,3913,3914,3915,3916,3917,3918,3919,3920,3921,3922,3923,3924,3925,3926,3927,3928,3929,3930,3931,3932,3933,3934,3935,3936,3937,3938,3939,3940,3941,3942]
|
||||
# 300 units
|
||||
# ids = [3842,3843,3844,3845,3846,3847,3848,3849,3850,3851,3852,3853,3854,3855,3856,3857,3858,3859,3860,3861,3862,3863,3864,3865,3866,3867,3868,3869,3870,3871,3872,3873,3874,3875,3876,3877,3878,3879,3880,3881,3882,3883,3884,3885,3886,3887,3888,3889,3890,3891,3892,3893,3894,3895,3896,3897,3898,3899,3900,3901,3902,3903,3904,3905,3906,3907,3908,3909,3910,3911,3912,3913,3914,3915,3916,3917,3918,3919,3920,3921,3922,3923,3924,3925,3926,3927,3928,3929,3930,3931,3932,3933,3934,3935,3936,3937,3938,3939,3940,3941,3942],3893,3894,3895,3896,3897,3898,3899,3900,3901,3902,3903,3904,3905,3906,3907,3908,3909,3910,3911,3912,3913,3914,3915,3916,3917,3918,3919,3920,3921,3922,3923,3924,3925,3926,3927,3928,3929,3930,3931,3932,3933,3934,3935,3936,3937,3938,3939,3940,3941,3942,3943,3944,3945,3946,3947,3948,3949,3950,3951,3952,3953,3954,3955,3956,3957,3958,3959,3960,3961,3962,3963,3964,3965,3966,3967,3968,3969,3970,3971,3972,3973,3974,3975,3976,3977,3978,3979,3980,3981,3982,3983,3984,3985,3986,3987,3988,3989,3990,3991,3992,3993,3994,3995,3996,3997,3998,3999,4000,4001,4002,4003,4004,4005,4006,4007,4008,4009,4010,4011,4012,4013,4014,4015,4016,4017,4018,4019,4020,4021,4022,4023,4024,4025,4026,4027,4028,4029,4030,4031,4032,4033,4034,4035,4036,4037,4038,4039,4040,4041,4042,4043,4044,4045,4046,4047,4048,4049,4050,4051,4052,4053,4054,4055,4056,4057,4058,4059,4060,4061,4062,4063,4064,4065,4066,4067,4068,4069,4070,4071,4072,4073,4074,4075,4076,4077,4078,4079,4080,4081,4082,4083,4084,4085,4086,4087,4088,4089,4090,4091,4092,4093,4094,4095,4096,4097,4098,4099,4100,4101,4102,4103,4104,4105,4106,4107,4108,4109,4110,4111,4112,4113,4114,4115,4116,4117,4118,4119,4120,4121,4122,4123,4124,4125,4126,4127,4128,4129,4130,4131,4132,4133,4134,4135,4136,4137,4138,4139,4140,4141]
|
||||
|
||||
# audio-test-100 1947 colinde
|
||||
# audio-test-110 1957 colinde2
|
||||
# audio-test-120 1967 colinde3
|
||||
|
@ -133,11 +133,10 @@ class Asset {
|
||||
|
||||
// Disconnect event
|
||||
hub.on('disconnect', () => {
|
||||
this._log('Socket disconnected from hub address');
|
||||
utils.writeLog(`Asset ${this.id} disconnected from HUB`)
|
||||
});
|
||||
let err = (e) => {
|
||||
this._log('Hub connected? ' + hub.connected)
|
||||
this._log(`Connection error to ${hubAddress}: ${e}`);
|
||||
utils.writeLog(`Asset ${this.id} HUB connection error ${e}`)
|
||||
}
|
||||
hub.on('connect_timeout', err);
|
||||
hub.on('connect_error', err);
|
||||
@ -250,7 +249,6 @@ class Asset {
|
||||
}
|
||||
|
||||
if(this.configs.settings.send_gps) {
|
||||
console.log('send gps')
|
||||
this._sendGPS();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user