Web API: scanner example updates

pull/154/head
f4exb 2018-03-22 09:18:49 +01:00
rodzic 1204734b58
commit ee027eda6a
2 zmienionych plików z 3 dodań i 1 usunięć

Wyświetl plik

@ -183,6 +183,8 @@ Simple AM and NFM scanner with multiple equally spaced channels. Stops whenever
Requires numpy
☞ Try to first run with the `-m` (mock) option to see what the scanner parameters will be. In particular pay attention to the computed sample rate that should be within range for your hardware. For devices with fixed or discrete rates make sure the computed sample rate does not exceed the unique device sample rate or the highest possible sample rate.
In addition to some APIs being used in other script it uses:
- Get channels reports:

Wyświetl plik

@ -198,7 +198,7 @@ def checkScanning(fc, options):
if reportKey in channel["report"]:
if channel["report"][reportKey]["squelch"] == 1:
f_channel = channel["deltaFrequency"]+fc
if f_channel not in options.excl_flist:
if round(f_channel) not in options.excl_flist:
print("Stopped at %d Hz" % f_channel)
return False # stop scanning
return True # continue scanning