Bug in the interactive mode of dump1090-fa

I found an error in dump1090-fa’s interactive mode. It seems easy to fix but is very annoying because its a format bug in the output.

In red, the numbers are ou of range because the format of the numbes are 1digit if less than 10, and 2 digits if greater. In the normal counting, no worries, but whem the count restarts, 1 become 10 to 19, 2 become 20 to 29, etc

In green, when the speed is greater than 1000, all data is pushed 1 character ahead

If someone could relay this bug to the developer, I’ll appreciate.

Thanks

Hi,

Not a fix, but a possible way of working around the issue.

Dump1090-fa does have the bug you mentioned in the timeout column.

However, instead of viewing the dump1090-fa in interactive mode, you could try instead using view1090-fa, which will then connect to that same copy of dump1090-fa which is already running.

View1090-fa does not have that bug, and the timeout counter works normally.

Here are the command options for view1090-fa. By default, it will automatically connect to 127.0.0.1:30005 and connect to dump1090-fa, assuming it is running on the same system. You can customize the other options to make it look however you like.

pi@raspberrypi:~ $ view1090-fa --help
-------------------------------------------------------------------------------------
| view1090 ModeS Viewer                            dump1090-fa 10.2~bpo11+1 |
-------------------------------------------------------------------------------------
--no-interactive         Disable interactive mode, print messages to stdout
--interactive-ttl <sec>  Remove from list if idle for <sec> (default: 60)
--interactive-show-distance   Show aircraft distance and bearing instead of lat/lon
                              (requires --lat and --lon)
--interactive-distance-units  Distance units ('km', 'sm', 'nm') (default: 'nm')
--interactive-callsign-filter Only callsigns that match the prefix or regex will be displayed
--modeac                 Enable decoding of SSR modes 3/A & 3/C
--net-bo-ipaddr <IPv4>   TCP Beast output listen IPv4 (default: 127.0.0.1)
--net-bo-port <port>     TCP Beast output listen port (default: 30005)
--lat <latitude>         Reference/receiver latitide for surface posn (opt)
--lon <longitude>        Reference/receiver longitude for surface posn (opt)
--max-range <distance>   Absolute maximum range for position decoding (in nm, default: 300)
--no-crc-check           Enable messages with broken CRC (discouraged)
--fix                    Enable single-bits error correction using CRC
                         (specify twice for two-bit error correction)
--no-fix                 Disable error correction using CRC
--metric                 Use metric units (meters, km/h, ...)
--show-only <addr>       Show only messages from the given ICAO on stdout
--help                   Show this help
```**strong text**

Regards,
-Dan

Dan,

Tested and… same error

It is just a matter of right justify with 2 digits

Regards,

Wilson

ps: I will try to update the version and see if it is solved

Dan,

Changing versions is taking longer because I guess I will have to change everything (reinstall new version of raspi)