|
105 | 105 | if kplex=='1': |
106 | 106 | subprocess.Popen('kplex') |
107 | 107 |
|
108 | | -subprocess.call(['pkill', '-9', 'aisdecoder']) |
109 | | -subprocess.call(['pkill', '-9', 'rtl_fm']) |
110 | | -if enable=='1': |
111 | | - frecuency='161975000' |
112 | | - if channel=='b': frecuency='162025000' |
113 | | - rtl_fm=subprocess.Popen(['rtl_fm', '-f', frecuency, '-g', gain, '-p', ppm, '-s', '48k'], stdout = subprocess.PIPE) |
114 | | - aisdecoder=subprocess.Popen(['aisdecoder', '-h', '127.0.0.1', '-p', '10110', '-a', 'file', '-c', 'mono', '-d', '-f', '/dev/stdin'], stdin = rtl_fm.stdout) |
115 | | - |
116 | 108 | subprocess.call(["pkill", '-9', "node"]) |
117 | 109 | if signalk=='1': |
118 | 110 | subprocess.Popen(home+'/.config/signalk-server-node/bin/nmea-from-10110', cwd=home+'/.config/signalk-server-node') |
119 | | - |
| 111 | + |
120 | 112 | if gps_time=='1': |
121 | 113 | subprocess.call(['sudo', 'python', currentpath+'/time_gps.py']) |
122 | 114 |
|
|
134 | 126 |
|
135 | 127 | subprocess.call(['pkill', '-f', 'monitoring.py']) |
136 | 128 | subprocess.Popen(['python',currentpath+'/monitoring.py']) |
| 129 | + |
| 130 | +subprocess.call(['pkill', '-9', 'aisdecoder']) |
| 131 | +subprocess.call(['pkill', '-9', 'rtl_fm']) |
| 132 | +if enable=='1': |
| 133 | + frecuency='161975000' |
| 134 | + if channel=='b': frecuency='162025000' |
| 135 | + rtl_fm=subprocess.Popen(['rtl_fm', '-f', frecuency, '-g', gain, '-p', ppm, '-s', '48k'], stdout = subprocess.PIPE) |
| 136 | + aisdecoder=subprocess.Popen(['aisdecoder', '-h', '127.0.0.1', '-p', '10110', '-a', 'file', '-c', 'mono', '-d', '-f', '/dev/stdin'], stdin = rtl_fm.stdout) |
0 commit comments