Tar1090

Discussion in 'Hardware' started by Colin Wellard, Jul 8, 2020.

  1. RichardG

    RichardG Member

    Bummer that you could not get your Pi 4 to work.... even running headless. I have 3 Pi4's and all seems to run fine, you must have just got a duffer!

    Good luck re-building your image. FYI - I also got all of those feeds coming from the ADSBEx image before I re-installed and built my own from the ground up
     
  2. Colin Wellard

    Colin Wellard Member

    Thanks Richard
     
  3. Colin Wellard

    Colin Wellard Member

    Hey Richard,
    I downloaded and installed Mobaxterm just now and quickly had a look at it and what a nice program, I don't think I'll be using ssh again, thanks for that, the only thing I have now is that my uploading pi thinks it's my monitoring pi, I re-named them (rasp1, raspi2 etc so I could tell which one I was on) and now all of a sudden they are both raspi2, which I think is what is lying at the core of my problems (I never noticed it until I tried Mobaxterm), I've also now got FR24 running as well as PF and adsbx, (thanks to abcd567 on FR24's site) all except for the the map showing my own a/c but they are uploading, well, everything from here looks that way.
    Just had a thought, I don't know now which one I am shutting down now when I shut everything off in my room, better check that before I finish up.
    Thanks again.
    Cheers
     
  4. RichardG

    RichardG Member

    Hey Colin

    Glad you got it running a bit better :)

    Did you by anychance mean Putty? Mobaxterm uses SSH to connect to the Pi's. Either way please you are having some success. Having two pi's must be a touch confusing? I usally monitor my feeder by loggin on to it using, if I can't log on I usually know that something else is wrong otherwise.

    Goog luck getting the local map sorted.

    Have you tried http://192.168.XXX.YYY:8080

    Just as an idea as that is far beyond my skills.
     
  5. Colin Wellard

    Colin Wellard Member

    Yeah of course, never know what to call it, Putty, ssh, (hope wiedehopf is not reading this I would have got a right b"&&"*%!>g) ;)either way it's a much better program, much easier to use, for me any way.
    I'm giving it a rest today, I'm on a roll at the moment, been trying to get a rear view camera working on my car for ages, went out to it today and bang, bang, bang, all done and working perfectly, my advice to anyone trying to fit a Chinese music centre come sat. nav. in a German car DON'T DO IT, it's been murder.
    Got all the dashboard all over the interior now to put back and get back to my pi's.
    It's funny how it got that way, I altered the name of one and the next time it was booted up both were the same, I ended up just making a ne sd card with Buster and so far they seem to be staying apart.
    I purchased a new case for the pi3 b+ a 'nespi case+' very nice but it has at least 3 circuit boards that were probably drawing power so I took that off and, although I had a 5.1 volt power supply on it I had extended the cable quite a bit and I suppose the power was dropping from the distance it had to travel and I was getting the lightening symbol again so I had another the same but not altered in any way and you'd be surprised at the difference it has made.
    I'm guessing that all these little things put together were making one big difference at the end.
    I'll try the ip address when I've finished the car and see what happens,
    Thanks for everything.
    Cheers.
     
  6. Colin Wellard

    Colin Wellard Member

    Hello Richard,
    No, the 192.168.1.180:8080 and I got the map marked for development only, and it froze, just for the devilment of it I tried 192.168.1.180:80 and the apache2 server page came up and it was telling me that all was working ok but before I go any further I should change a file from this:

    Alias /javascript /usr/share/javascript/
    <Directory "/user/share/javascript/">
    options FollowsSymLinks Multiviews
    </Directory>

    To this:

    /etc/apache2/
    | - - apache2.conf
    | ' - - ports.conf
    | - - mods-enabled
    | | - - *.load
    | ' - - *.conf
    | - - conf-enabled
    | ' - - *.conf
    | - - sites-enabled
    | ' - - * .conf

    I did this and the 192.168.1.180:8080 opened the same map but it didn't freeze but it still has the for development purposes only across the map.
    Incidentally if someone else is going try this the actual path to the file is 'cd /etc/apache2/conf-available' then 'sudo nano javascript-common.conf' and I would also advise (not that you need to be told) to copy and paste the new text, I'm not totally sure about the spacing but I have tried to set up as close as possible.
    That's it, I smell dinner.
     
  7. wiedehopf

    wiedehopf Administrator Staff Member

    Just because this thread is still titled tar1090 and that's my project i'll butt in (without any attitude i swear!).

    Tar1090 isn't made to work with apache but with lighttpd (which is more or less the default for Raspbian).
    sudo apt remove apache
    sudo apt remove apache2
    sudo apt install lighttpd

    Also you are likely running dump1090-mutability .... which isn't really great for tar1090 (though it can work).
    I'd recommend replacing it with readsb: https://github.com/wiedehopf/adsb-scripts/wiki/Automatic-installation-for-readsb

    If you decide to do either of those changes, just for good measure just rerun the tar1090 install script.

    Without further knowing what else is installed on the system, no clue if it's gonna work.
    Good luck!
     
  8. Colin Wellard

    Colin Wellard Member

    Thanks wiedehopf,
    I'm going to do that tonight, it's weird because I actually noticed a difference in the operation of the map, it didn't freeze up and opened quicker, still, I'll see how I get on.
    Unless lighttpd is installed with the pi OS (I'm working with a fresh OS install) it's not in there but I'll check it out and install it if I can't find it.
    I have already installed readsb a few times but I'll go at it in the order you have it in your post.
    Thanks for that wiedehopf, much appreciated.
     
  9. RichardG

    RichardG Member

    I believe, and correct me if I am wrong.... but I think that either that wiedehopf's auto install script for readsb or the script for tar1090 installs lighttpd (or checks if it there and installs if it is not). I do not think I remember installing it seperately when i rebuilt my feeder - that was 2 weeks ago and I'm open to being wrong. 7 months working in the NHS with no proper time off has fried my brain.

    Really glad at this point having read wiedehopfs post that I opted to install readsb over dump1090 :)
     
  10. wiedehopf

    wiedehopf Administrator Staff Member

    The automatic install script should automatically remove dump1090 ....
    I'm a bit confused why apache would be there on a fresh install :)
    Also having the development marked map on 8080 is a bit confusing .... that's some sort of older dump1090-mutability version (1.14 or so)

    I'm really confused, this doesn't seem like a fresh pi OS at all.
    Any more info on it would be appreciated ... but let's see how removing apache turns out.
     
  11. Colin Wellard

    Colin Wellard Member

    Hi,
    I've removed apache2 ( the computer said that it could not find apache so it will not be removed), I've reinstalled readsb and tar1090 but it is still no better.

    I have installed the 2020-02-13 raspbian-buster-light.img, must be about six months or so ago,
    I did a update and a upgrade and that's all that I put on a 32gb card.

    I have installed dump 1090 manualy but have been having problems installing it from Malcolm Robbs website in that it would not install the dump1090, ppup1090 and view1090.exe files, I had to find them somewhere else and just copy those files over, dump1090 has always worked ok though
    Originally the sd card had the adsbx.img file installed, I guess by now it should be considered a manual installation.

    Should I start over and re do the card as I did before?

    I've never to my knowledge installed dump1090 mutability. I am using a FA dongle and filter but I have never installed dump1090 from their site.

    I am going to ask a really dumb question now, I am installing all this on the uploading pi and not the monitoring pi, is that correct?:oops::confused:
     
  12. RichardG

    RichardG Member

  13. wiedehopf

    wiedehopf Administrator Staff Member

    I'm not quite sure why you would use 2 RPi.

    I guess you're also trying to do planeplotter stuff?
    This makes everything quite a bit more complicated as they do strange non-standard stuff and i'm not really familiar with what their instructions say.

    And yes you should start over with a fresh image.
    Maybe write down what you install so you can describe the image, that helps massively with at least guessing what any issue might be.
     
  14. Colin Wellard

    Colin Wellard Member

    Hi guys,
    That's where I've been putting it Richard, thank goodness for that, I would feel a bit of a dumbo if I was putting it in the the wrong one after putting you both through all this, thought I'd get that out of the way.
    No I haven't seen that one Richard, I'll certainly go that way.
    I use the two pi's wiedehopf because the uploader is in the loft and I need something down here to look at it now and again or repair it if it goes wrong, it's only because I have it that I use it, also for other things, experimenting with antennae and all sorts Linux or Raspberry pi things.
    Incidentally Richard I think you are correct in that one of wiedehopf programs installs lighttpd, when I tried to install it yesterday it came up with you already have the latest version installed, one less thing to worry about in my book.
    I was uploading to Plane Plotter wiedehopf but I stopped, thought it was time I moved on, cracking program though, I guess you got that from my reference to ppup1090 yesterday, when you install dump1090 from Malcolm Robbs website it puts two files in, coaa.h and coaa1090.obj, I was deleting them but they seem to be not doing any harm.
    That's what I'll do then start again from a fresh install, I'll have to do PF and FR24 over again but that shouldn't be a problem.
    One final question, can I wipe the card and re-install from down stairs? I guess I can but not too sure, with Mobaxterm now I would imagine it possible.
    Thanks I'll let you know how I get on.
     
  15. Colin Wellard

    Colin Wellard Member

    Hello Richard,
    My apologies I missed a part of one of your posts, off topic I know about working for the NHS, can I say a big thank you for all you do, at present my being here still, is all down to the NHS, I am one of those on the extremely at risk list and I haven't been out for four months.
    THANK YOU RICHARD (I was there for the clapping).
     
  16. wiedehopf

    wiedehopf Administrator Staff Member

  17. Colin Wellard

    Colin Wellard Member

    Right, I found another spare sd card so I put it in and installed the Latest Buster Lite OS, all went well.
    Put the sd card in the pi downstairs (my intentions are to swap out the pi not just the sd card, making the card downstairs and to save downtime on uploading) the pi will then be back on 192.168.1.131 and not 192.168.1.180.
    I installed readsb and again all went well.
    I installed tar1090 and got two message's at the end, 1. all done Webinterface can be found at 192.168.1.131/tar1090 and 2. "FAILED" could not find 'aircraft.json' so I went back and reinstalled readsb (I don't know why, just did) this time it ended with "Failed with result" exit-code.
    Tried 'sudo systemctl restart tar1090' and got 'Unit tar1090.service not found.
    Decided to start over
    Put the sd card back in my Win.10 computer and installed Buster Lite again.
    Installed readsb and all went fine and it ended with webinterface can be found at: 192.168.1.131/radar.
    Tried it and the map opened and worked ok (not frozen) but no a/c.
    Installed tar1090, ended with "Fatal could not find aircraft.json in any of the usual places"
    Tried the restart command and got "Failed to restart tar1090.service. tar1090.service not found" installed wiedehopf/dump1090`
    I still can't see dump1090 anywhere on the pi so I installed dump1090-fa.
    Still can't see dump1090 on the pi and still can't open the tar1090 web interface.
    Going to knock it on the head for tonight and will start afresh in the morning, will install as I had it when I first came to adsb Exchange and install Malcolm Robbs dump1090, get that working and then install adsb Exchange .image file.
    I'm obviously doing something wrong here.
    Cheers.
     
  18. RichardG

    RichardG Member

    Back into the loft for you my friend! Bring it all down and selotape your antenna to an upstairs window until you have it all sorted, then put it all back up into the loft. Althought if you are shielding right now then the exercise might me a good thing. Still not sure what your 2nd Pi does re-monitoring. I just log into my feeder via laptop, or desktop, or even over a VPN when outside my home net work (ok 2nd Pi used for a VPN, but that also runs NXFilter to keep a young teenager away from more inappropirate parts of the internet and to filter ads for the rest of us - with a few websites unblocked that are worth supporting)

    No worries, not exactly front line thankfully, but have been doing a lot back office wise to make sure COVID goes away.

    Good luck getting your SD card sorted - and yes very wise advice to list out each programme you install and the order in which it is done.
     
  19. RichardG

    RichardG Member

    Oh... cross over.

    If you are using the ADSBx image you dont need to install anything first.... Just blow the image to SD card, put co-ords and antenna height in the pre-req place. Slap your wifi details into the wpa.suplicant file and shove in the boot folder. Plug it all in and go. Should all just work (may be you are jinxed with IT like my partner??)
     
  20. wiedehopf

    wiedehopf Administrator Staff Member

    There are gonna be some errors if you don't have an SDR plugged in.

    That's expected.