Skip to content
This repository was archived by the owner on Dec 31, 2019. It is now read-only.

Commit b43cf2d

Browse files
committed
Merge pull request #8 from sailoog/new_layout
New layout
2 parents 7ce261b + 3a1672e commit b43cf2d

File tree

10 files changed

+2208
-1394
lines changed

10 files changed

+2208
-1394
lines changed
2.69 KB
Binary file not shown.

locale/ca/LC_MESSAGES/openplotter.po

Lines changed: 497 additions & 244 deletions
Large diffs are not rendered by default.
0 Bytes
Binary file not shown.

locale/en/LC_MESSAGES/openplotter.po

Lines changed: 407 additions & 180 deletions
Large diffs are not rendered by default.
2.69 KB
Binary file not shown.

locale/es/LC_MESSAGES/openplotter.po

Lines changed: 498 additions & 246 deletions
Large diffs are not rendered by default.

openplotter.conf

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,25 @@
11
[GENERAL]
2-
version = 1.0.0
2+
version = 0.2.0
33
lang = en
44

55
[AIS-SDR]
66
gain = 49.6
7-
ppm = 45
7+
ppm = 35
88
enable = 0
9+
channel = a
10+
gsm_channel =
911

1012
[STARTUP]
1113
opencpn = 0
1214
opencpn_no_opengl = 0
13-
opencpn_fullscreen = 0
15+
opencpn_fullscreen = 1
1416
kplex = 1
15-
x11vnc = 0
17+
x11vnc = 1
1618
gps_time = 1
1719
iivbw = 0
1820

1921
[WIFI]
2022
enable = 0
21-
device = wlan0
22-
password = 12345678
23+
device =
24+
password =
2325

openplotter.py

Lines changed: 787 additions & 714 deletions
Large diffs are not rendered by default.

startup.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
enable=data_conf.get('AIS-SDR', 'enable')
3535
gain=data_conf.get('AIS-SDR', 'gain')
3636
ppm=data_conf.get('AIS-SDR', 'ppm')
37+
channel=data_conf.get('AIS-SDR', 'channel')
3738

3839
wifi_server=data_conf.get('WIFI', 'enable')
3940
wlan=data_conf.get('WIFI', 'device')
@@ -53,7 +54,9 @@
5354
if opencpn=='1' and len(opencpn_commands)==1: subprocess.Popen('opencpn')
5455

5556
if enable=='1':
56-
rtl_fm=subprocess.Popen(['rtl_fm', '-f', '161975000', '-g', gain, '-p', ppm, '-s', '48k'], stdout = subprocess.PIPE)
57+
frecuency='161975000'
58+
if channel=='b': frecuency='162025000'
59+
rtl_fm=subprocess.Popen(['rtl_fm', '-f', frecuency, '-g', gain, '-p', ppm, '-s', '48k'], stdout = subprocess.PIPE)
5760
aisdecoder=subprocess.Popen(['aisdecoder', '-h', '127.0.0.1', '-p', '10110', '-a', 'file', '-c', 'mono', '-d', '-f', '/dev/stdin'], stdin = rtl_fm.stdout)
5861
else:
5962
subprocess.call(['pkill', '-9', 'aisdecoder'])

waterfall.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -166,16 +166,20 @@ def start(self):
166166

167167
def main():
168168

169-
ppm=sys.argv[1]
169+
gin=sys.argv[1]
170+
ppm=sys.argv[2]
171+
chn=sys.argv[3]
170172
if ppm=='0': ppm='1'
173+
if chn=='a': frc=161.975e6
174+
if chn=='b': frc=162.025e6
171175

172176
sdr = RtlSdr()
173177
wf = Waterfall(sdr)
174178

175179
# some defaults
176180
sdr.rs = 1e6
177-
sdr.fc = 161.975e6
178-
sdr.gain = 40
181+
sdr.fc = frc
182+
sdr.gain = float(gin)
179183
sdr.freq_correction = int(ppm)
180184

181185
wf.start()

0 commit comments

Comments
 (0)