Tar1090 -- improved webinterface for dump1090-fa and readsb

Brilliant, thanks for the quick response. That’s consistent because it was a more recent install where I don’t have the bar. Not a problem at all.

Many thanks for an excellent development of Skyview

Oh well.

I just included an option to re-enable that bar and the default colors.

For anyone who wants default colors:
Remove the config.js to get the new version:

sudo rm /usr/local/share/tar1090/html/config.js

Then reinstall tar1090.

sudo nano /usr/local/share/tar1090/html/config.js

Find disabledColorByAlt and remove the disabled to restore the default colors.

What are the web color codes you are using for your colors?
I want to set my receiver range plots to match the plane altitude colors.

Can you add a function to return the map orientation to North?
Tar1090 has an inbuilt icon for bookmarks but graphs1090 does not. Can that be added?

1 Like

Actually it does have an icon about for the same timespan tar1090 has had it.

Put this on your browser web console:

PlanesOrdered[0].getAltitudeColor(10000)

You’ll have to convert the individual numbers to hex.

Would it be possible to get the “Heading” column back on the list on the right?

Thank you for all the work you do for the members here.

I like the RSSI column better and i don’t want to add any more columns.
But if you want to add it, you can open this file

sudo nano /usr/local/share/tar1090/html/script.js

find this line

showColumn(infoTable, "#track", !mapIsVisible);                                                                               

and put to slashes in front of it //

//showColumn(infoTable, "#track", !mapIsVisible);                                                                               

I don’t really care to add a config option right now, so you’ll have to repeat that change when you update.
But it shouldn’t be too hard.

1 Like

Done, works great. Thank you.

Created a fork and pull request for colored receiver range rings. I got them fairly close.

I saw.

I’ll add an option for custom colors, but your pull request doesn’t work.
I don’t want the current look changed for example for me :wink:

Quite a few other people also only have one or 2 range outlines.

Ah, gotcha.
Should be pretty easy to add a conditional based on the number of rings, and draw the colors based on that.
Maybe assume default alt numbers for 1, 2, 5 outlines, etc, whatever value are most popular.

You’ll have to just add your preference of coloring them by altitude to the config file: /usr/local/share/tar1090/html/config.js

Add this line to enable coloring them by altitude:

range_outline_colored_by_altitude = true;

You can also just chose one color for all outlines if coloring by altitude is disabled.

range_outline_color = '#0000DD';
range_outline_width = 1.7;

No matter the color, you can also set the line width.

Ever since I installed tar1090 on a RPi zero, every night at around 05:30 there is a spike in CPU and disk IO usage, that lasts for some time.
There is nothing in cron.
Is it some housekeeping that takes place, or should I be worried?

system-localhost-disk_io_octets-24h

tar1090 doesn’t read from or write to the disk.

Also it doesn’t do anything scheduled at any time of day, it runs the same all the time.
Only varying CPU is from the number of aircrafts present.

Try checking the journal:

sudo journalctl -S 05:25

If that doesn’t help, i’d suggest using htop during that time window.
6 in the morning isn’t such a bad time to check :slight_smile:

The graphs also don’t produce a load like that.

I have something similar at 03:00 in the morning (not a good time for checking)

It’s caused by this (replaced IPv6 adress with xxxx) maybe you find something similar

Aug 14 03:08:15 piaware avahi-daemon[321]: Registering new address record for xxxx1 on eth0.*.
Aug 14 03:08:15 piaware avahi-daemon[321]: Withdrawing address record for xxxx on eth0.

Details here:

It could also be this, one minute later. Hard to determine on the 24 hour graph.
But for this a CRON entry should be there

Aug 14 03:09:00 piaware systemd[1]: Starting Clean php session files...
Aug 14 03:09:01 piaware systemd[1]: Started Clean php session files.
Aug 14 03:09:01 piaware CRON[1614]: pam_unix(cron:session): session opened for user root by (uid=0)
Aug 14 03:09:01 piaware CRON[1618]: (root) CMD (  [ -x /usr/lib/php/sessionclean ] && if [ ! -d /run/systemd/system ]; then /usr/lib/php/sessionclean; fi)
Aug 14 03:09:01 piaware CRON[1614]: pam_unix(cron:session): session closed for user root

It may be that the DHCP address lease is being updated.

Apologies if I’ve missed the explanation somewhere but what do the ‘M’ and ‘R’ buttons do?

The ‘R’ button seems to alter my viewing location but I’m not sure of what the connection is.

Geoff

multiple selection and random.

2 Likes

Thank you for prompt rely.

Geoff

Probably a false alarm. The log shows the wifi disconnecting for some reason, and the log is filled with the retry attempts, hence the spike in disk usage. It happened three nights in a row, at the same time, so I got worried. Turns out there is something wrong with the access point, which stops responding at that time. I’ll look into it. In the meanwhile, sorry for hijacking the thread.