Using view1090-fa without internet

The browser has a localStorage for every webpage.
You can set stuff to certain values.
Either the website does it for you or you can do it on the browser console.

This would also work to change the map URL (because i coded it that way):
You visit this URL once and it saves the customTiles URL to local storage:
http://127.0.0.1/tar1090/?customTiles=http://127.0.0.1:8081/mymaps/{z}/{x}/{y}.png

Regarding the javascript console, the problem with anything gui is you need to know what to click. It wasnā€™t clear where to find this line to change it. However I changed the line as indicated in the early.js and it worked once it dawned on me to go to the map selector and click on custom tiles. (I knew something was up because I saw no error message in the nginx error log to access the maps.) As a QA check, I scrolled the map to the point where I had no local map tiles available.

Thanks for your help. Now I will address the other things you suggested.

Forgot to mention that, sorry :slight_smile:

But seems your project is coming along nicely!

There is a reason for logs. People need to use them before asking for help.

I have lots of things to clean up. The data file in the run tmpfs isnā€™t permanent. But stuff like that is googleable. There are few software related problems that someone hasnā€™t seen before.

Totally off topic but you sound like a person who might be effected by this:

Deadline is today. My recollection is this is only a Firefox issue. Spread the word. The gunzipped file is over 300Mbytes. The EFF servers must be smoking.

Heyā€¦I am a linux noob so please bare with me. I am doing something similar to the threadā€¦mobile setup - raspberry pi\GPS (location and time setting)\dump1090-fa\Pi setup as a wifi router etc. The concept is for a small unit which travels with me whilst offline (when home it would be online) and its for my-self and friends to connect to it and to see whats going on when we are in locations that do not have mobile phone coverage. After testing i have come to realize that after a few zooms (in & out) whilst offline the maps fail to render and therefore i need to make a change to store the maps locally on the Pi. As different devices will be connecting to it the change to store the maps needs to be on the Pi and i am wondering\trying to figure out how to do it. I have picked up from the thread that making a java change in the browser of the client would do the trick and would work once the map has been ā€œvisitedā€ previously which whilst a great idea for single client device its not ideal when one has different devices with different browsers connecting. Therefore what would I need to do (i am assuming I start with a code change in layers.js) to store maps for a specific area on the pi? Is it possible to cache maps on the pi similar to the client browser scenario or would i need to setup some sort of map server? Thanks and apologies if this question has been answered elsewhere.

Youā€™d have to make it some folder on the pi available via the lighttpd configuration.
Then load the tiles for your area ā€¦ which isnā€™t really liked because it often creates big load but they have a wiki on it: OpenLayers Local Tiles Example - OpenStreetMap Wiki

Then youā€™d change the URL for the OSM map to a relative URL and it should work.
Iā€™ve never tried to be honest.

I suppose you could set up mapproxy ā€¦ not sure if that will run well on a pi:
https://mapproxy.org/

Then you would only need to point a tile layer in layers.js to the mapproxy server and then visit once to cache all the zoom levels you need.

1 - Interactive (no arguments required in the command)

pi@piaware:~ $ view1090-fa  

 Hex    Mode  Sqwk  Flight   Alt    Spd  Hdg    Lat      Long   RSSI  Msgs  Ti \
qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq
 A258B7 S0                   36000  429  270                   -24.0     6  1
 A887FD S2    3575           36000  419  270   43.056  -78.639 -22.2    13  0
 C03CF6 S0          CFXCF     1625   95  027   43.064  -79.613 -21.0    10  1
 A51D23 S0                   29625                             -27.0     4  0
 C05185 S2    4744            3000  144  353                   -18.5    21  0
 C06CC2 S2    4757  CGPEV     1250   88  250   43.161  -79.640 -22.8    15  0
 C0193B S0    1066           34000  457  208                   -24.8     9  0
 A43100 S2                   33000  501  136   43.949  -78.541 -18.7    23  0
 C066DD S0                    1525  142  048                   -12.9     7  1
 C0104F S2    0507            8400  277  098   43.761  -79.406  -4.9    48  0

Ā 

2 - No interactive

pi@piaware:~ $ view1090-fa --no-interactive 

*8d8695c658c907a785196225322c;
CRC: 000000
RSSI: -24.6 dBFS
Time: 31554732847.83us
DF:17 AA:8695C6 CA:5 ME:58C907A7851962
 Extended Squitter Airborne position (barometric altitude) (11) (reliable)
  ICAO Address:  8695C6 (Mode S / ADS-B)
  Air/Ground:    airborne
  Baro altitude: 39000 ft
  CPR type:      Airborne
  CPR odd flag:  odd
  CPR latitude:  (119746)
  CPR longitude: (72034)
  CPR decoding:  none
  NIC-B:         0
  NACp:          8
  SIL:           2 (p <= 0.001%, unknown type)

*8da258b79915c1005008a3c8b06d;
CRC: 000000
RSSI: -27.3 dBFS
Time: 31554776138.25us
DF:17 AA:A258B7 CA:5 ME:9915C1005008A3
 Extended Squitter Airborne velocity over ground, subsonic (19/1) (reliable)
  ICAO Address:  A258B7 (Mode S / ADS-B)
  Air/Ground:    airborne
  Geom - baro:   -850 ft
  Ground track   270.1
  Groundspeed:   448.0 kt
  Baro rate:     64 ft/min
  NACv:          2

Ā 

3 - HELP

pi@piaware:~ $ view1090-fa --help
-----------------------------------------------------------------------------
| view1090 ModeS Viewer                                     dump1090-fa 4.0 |
-----------------------------------------------------------------------------
--no-interactive         Disable interactive mode, print messages to stdout
--interactive-ttl <sec>  Remove from list if idle for <sec> (default: 60)
--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           Disable 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

If someone has a raspberry pi with a 3.5 inch touch screen LCD hat, he can get the view1090-fa display on the hat by adding following line in file /etc/rc.local just above last line i.e. just above exit 0

sleep 10; view1090-fa

Save file, and reboot Pi.

NOTE: The sleep 10 provides 10 seconds delay to enable dump1090-fa to start up before view 1090-fa command is run.

Ā 

For ā€œno internetā€ scenario, an alternative to RPi + dump1090 is Windows Laptop with jetvisionā€™s RTL1090 decoder + adsbScope to display aircraft on a map. The map of adsbScope is very basic, is black and white with minimal details, but serves the purpose.

Download RTL1090 installer
https://www.jetvision.de/manuals/rtl1090imu.zip

Download adsbScope
https://www.sprut.de/electronic/pic/projekte/adsb/adsb_all.zip

adsbScope

Ā 

RTL1090 beta 3

rtl1090-beta3-list

I assume thatā€™s not what he wants to do:

I understand his approach. Thought about something similar while beeing away from home but without the need of running the computer all the time.
However a display is required anyhow.

I use an Androud tablet on which I have installed App Avare ADSB from Google Pkay store, and plugged a dongle using OTG adaptor C to USB. I run the tablet in Airplane mode, so no wifi or data connection, and I see the plane with map. Please see attached photo.

Note: I also tried it on Samsung Galaxy S8 phone, and it works ok. The only problem with phone is battery. With tablet I put it on the stand connected to charger, so battery is not an issue.

CLICK ON PHOTO TO SEE LARGER SIZE
CLICK AGAIN TO SEE FULL SIZE

1 Like

Very cool. I just installed Avare ADSB onto my phone, found my otg adapter I use for WSPR, weak signal propagation reporter (a mode used to test my ham radio antennas) and plugged antenna and dongle in. At first I didnā€™t think it was going to work because of an error message saying something about the dongle or otg adapter and permissions but I noticed it was receiving data. I switched to airplane mode on the phone and hit maps. Again I didnā€™t think it was going to work because of the blank screen I saw. So I disabled plane mode and a map appeared on my screen along with some planes. I enabled plane mode again and the planes and map remained on the screen and the planes remained active! Thanks for the info abcd567.


UPDATE: For some reason, the screen freezes. Then I saw a message about a timeout on new packages. The test version has a frame limit. If the pro version doesnā€™t have the limit, Iā€™ll spend the $ for it.
UPDATE: I purchased Avare ADSB Pro and it works great. Like you mentioned, it does eat up the battery so Iā€™ll have to find an Android tablet. I may have one.

1 Like

Gents, Thank you most kindly for the different tips. I will check them out.
Thank you kindly

abcd567, I can use my phone with the dongle but canā€™t with the Samsung tablet3 i have. I get an error message ā€œNo supported USB dongle found. Make sure your Android device supports OTG!ā€ Well, I guess it doesnā€™t. What model is the Lenovo your show in the pic? Tnx

Lenevo Smart Tab M10 10.3"

Purchased from Bestbuy Canada online in special offer about a month ago.

OKā€¦great. Thanks for the info.
All the best.

Hi everyone !

Iā€™m working on an adsb receiver based on tar1090 installed on a raspberry pi zero w, everythings work fine with an internet connection.
But I want to go offline, through a map downloaded on the raspberry pi. And so I want to know how I can achieve that (map file format? force tar1090 to read the downloaded map?)
Iā€™ve seen some ideas and starting points but never feedbacks from someone who succeed.

If someone could help me ? Thanks !

Itā€™s very very annoying and i never got it to work nicely.
Canā€™t help you.

You should still get the center dot and circles around it.

Iā€™ve found a solution !
Iā€™ve downloaded an app (android) with a basic offline map, which is able to decode the aircraft.json file from tar1090.
So I connect my phone to my pi zero through wifi, and it display the planes cought by the adsb dongle.

I can maybe open a topic on it for more detailled informations ?

What is the name of this android app?