New Pi setup, running into json error

35 views
Skip to first unread message

Brian

unread,
Aug 28, 2024, 8:52:08 AMAug 28
to aprs.fi
I'm setting up a new pi and when after in install the ais_json script and update the last part of the code, I get this error:

~/ais_json $ ./ais_json.py
  File "/home/pi/ais_json/./ais_json.py", line 82
    post = json.dumps(output)
IndentationError: unexpected indent

Any ideas?

Thanks,
Brian

Jay M

unread,
Sep 1, 2024, 1:43:06 PMSep 1
to aprs.fi
Where did you get this python script and what does it look like?

Me, I run rtl-ais to decode AIS messages and send its output to a named pipe which acts as a virtual audio file, then run gnu-ais configured to take the named pipe's contents and send them to aprs.fi.  (I'm using a Nooelec SMArt RTL-SDR USB dongle as my AIS receiver as it has a smaller footprint than most SDR dongles and doesn't cover the other USB ports on my Pi, plus I already had it. I also use the Pi as an APRS digipeater and Igate and needed room for a Digirig Mobile's USB cable to be plugged in.)  You can see the results if you zoom in the map to Cebu, central Philippines.
Reply all
Reply to author
Forward
0 new messages