Bake your own cake. Follow the steps described in one of posts above. Add Grafana, Prometheus and dump1090-exporter (James and I can help). Own cake taste the best
Umm ... delete 4 characters ... and add 4 characters ... Delete the ones around color by alt ColorByAlt = { unknown : { h: 0, s: 0, l: 40 }, ground : { h: 120, s: 100, l: 30 }, air : { h: [ { alt: 2000, val: 20 }, // orange { alt: 10000, val: 140 }, // light green { alt: 40000, val: 300 } ], // magenta s: 85, l: 50, }, selected : { h: 0, s: -10, l: +20 }, stale : { h: 0, s: -10, l: +30 }, mlat : { h: 0, s: -10, l: -10 } }; put ones around mono chrome /* For a monochrome display try this: ColorByAlt = { unknown : { h: 0, s: 0, l: 40 }, ground : { h: 0, s: 0, l: 30 }, air : { h: [ { alt: 0, val: 0 } ], s: 0, l: 50 }, selected : { h: 0, s: 0, l: +30 }, stale : { h: 0, s: 0, l: +30 }, mlat : { h: 0, s: 0, l: -10 } }; */ https://github.com/mutability/dump1090/blob/master/public_html/config.js Do you know how to use developer tools in Chrome? I guarantee you've got a syntax error, or a typo, or a permissions problem. JavaScript console in the browser should show you the error. Are you actually editing this in linux? how are you changing files?
No, I'm not proficient in developer tools. Never used it. I'm not a programmer or have a background that deals with programming in general. I was using Nano and editing the file via SSH. The sequence I was using was: "cd /usr/share/dump1090-mutability/html/" then "sudo nano config.js" I edited that file, and then I saved it. After a reboot, I reopened that file, and it showed the changes I made were still there and correct. But the map was broken. I concede that I likely make a mistake. I am starting afresh with a new image install now.
And the same thing has happened with the new install. I have cleared the cache (Im using Safari. So preferences>Privacy>Manage Website Data>Remove All) Part of the issue here is that some of your examples above are not the same as what my file is. I have a whole bunch of //comments When I look at example code above, it must be similar to those who are dyslexic. It is just muddled up and literally another language. It's easy to say "just remove 4 and add 4", but its not entirely obvious which characters is is to add or remove. I'm likely not putting them in the right place. As an example, I've no idea what the difference is between // or /* or */ so it's quite easy, without it being explicitly identifiably clear with colours or something, to make that mistake. Perhaps copying the exact code line by line from the clean install and highlighting red which parts to remove and highlighting green which parts to add... that'd help. I did say "explain like I'm five" and "like an idiot" previously
Ok, I have done it. As I suspected, I had a star slash or a slash star the wrong way around and that broke the map. I really do need an idiots guide! Here's my interpretation of that I did: SSH into the Raspberry Pi: Code: SSH [email protected] -p 3326 Enter the default password: Code: adsb123 Change the command line so that it's looking at the correct folder: Code: cd /usr/share/dump1090-mutability/html/ Check it's in the correct folder by using the LIST command: Code: ls This will display a list of files in the folder. Look for "config.js" as one of the files. Open the file with a file editor: Code: sudo nano config.js This opens the file for editing. ----- The first change to be made to allow the map to display colour icons is at LINE 46 in the config file, where the code for colour control starts. On the original config file it says: Note the two slashes at the start that I have highlighted above in RED. These should be removed so that the code looks like this: Secondly, at LINE 72 the original config file shows this: Again, I've highlighted above in RED the two characters that need to be removed, so that it looks like this: This has ENABLED colours on the map. But we also need to DISABLE the monochrome configuration, otherwise the map doesn't know which one to use and it won't display anything. So the third change, at LINE 85 is where we change the code to disable the MONOCHROME option. The original config file says: Note that is does NOT currently have the two forward slash characters at the start. These should be added so it looks like this: Lastly, the fourth thing to change to disable MONOCHROME is LINE 92, which in the original file looks like this: And it should be adjusted so it looks like this: The config file is now changed, and must be saved. To save the file, press: Code: ctrl-X It'll ask if you want to "Save modified buffer?". Press: Code: Y It'll ask for the file name to write, and should already be showing "config.js". Press: Code: ENTER The file will be saved, and you will be returned to the Command line. And that's it. COLOUR icons are enabled, and MONOCHROME icons are now disabled. Reboot the Pi for the changes to take affect: Code: sudo reboot
No need to reboot the Pi. It's just serving those files via lighttpd .. but doesn't hurt to be thorough. Congratulations and enjoy your hacking journey!
Hey guys. Got another quick question for you! Is there some sort of automatic reboot for this image? I was doing a 24hr test to see power usage for the Pi and was curious to see 24hr stats via Grafana, but it shows no data before 8am. I haven't set any reboot instructions myself, so just curious if there is one. And if not, why would there be no data before 8am? FYI. Power usage for a Raspberry Pi 3 with a V3 RTL-SDR dongle feeding SIX places uses 0.05KWh per 24hrs. On my electricity tariffs, that's 0.06p per day, with a total upload of 190MB for 24hrs (feeding 6 ADSB locations).
Thank you. Any way to increase that? Grafana shows 70% memory used. Theoretically if 4hrs is taking up 30%, it could store 12hrs and still have 10% RAM left.
But if you start to write to SD you'll kill it quickly. Wait for James, he can help (my Grafana is installed on Debian machine and is writng to SSD HD).
Yes. It has an automatic reboot Sunday ... check crontab (i think) if you want to turn that off. Only stores 4 hours of data in Prometheus to display in Grafana. You can up that but risk running out of Ram pretty fast. sudo crontab -e comment out 0 5 * * 1 reboot #0 5 * * 1 reboot
If you don't mind writing to SD then change the config to store more or store to SD /home/pi/adsbexchange.-prom.sh
I keep having problems with the script, no data appear after reboot. it seems like the script does not do anything, but if I launch command from terminal manually it works perfectly! simply I've created a new file as you said, then into the file i've put exactly as below #!/bin/bash while true do socat socat TCP:192.168.1.50:30005 TCP:localhost:30004 sleep 30 done in the rc.local I've simply added the path and name of new file followed by "&" but after reboot no data to show in grafana or in the dump1090 map... any suggestion?
I have another question! I have a LNA which is powered via the RTL-SDR V3 dongle I'm using. But it isn't enabling the "bias tee" 5v. I have followed the instructions on the rtl-sdr page for enabling and installing drivers, etc. But to no avail. The dongle does not enable bias tee. So, the question is: Do any of you guys know how to enable bias tee on an rtl-sdr dongle automatically with this image? If its an instruction to be added to a script somewhere, can you point me in the right direction of where it should go. Many thanks for all your responses so far.
Scrap that. I edited the following: Code: sudo nano adsb-go.sh and added this line at the very top: Code: /home/pi/rtl_biast/build/src/rtl_biast -b 1 Bias-tee is now enabled at start-up before any other systems kick in.
too many socat? Not sure. After reboot data will clear so you will have to wait for it to build again ... it saves in ram ... this image almost never writes to SD #!/bin/bash while true do socat TCP:192.168.1.50:30005 TCP:localhost:30004 sleep 30 done
I have a question for James: using your method, knowing that the feeder PI is a Flightaware image, will you still get military and private flights? Or are the mods made by FA to filter out military and private flights in their version of Dump1090 itself? Btw: your method works for me. Flightaware image om PI at home feeding FA, FR24 and PF, and second PI at work, pulling data from home over a VPN. P.