{"id":21399352,"url":"https://github.com/streamr-dev/airtraffic","last_synced_at":"2025-07-03T16:34:51.361Z","repository":{"id":44841455,"uuid":"186593671","full_name":"streamr-dev/airtraffic","owner":"streamr-dev","description":"Marketplace airtraffic stream integration script for ADS-B USB dongle + raspberry pi 3 b+","archived":false,"fork":false,"pushed_at":"2022-12-06T18:40:49.000Z","size":10008,"stargazers_count":2,"open_issues_count":4,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-06-30T06:08:45.822Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/streamr-dev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-05-14T09:49:28.000Z","updated_at":"2022-01-22T17:55:16.000Z","dependencies_parsed_at":"2023-01-24T11:15:45.067Z","dependency_job_id":null,"html_url":"https://github.com/streamr-dev/airtraffic","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/streamr-dev/airtraffic","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/streamr-dev%2Fairtraffic","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/streamr-dev%2Fairtraffic/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/streamr-dev%2Fairtraffic/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/streamr-dev%2Fairtraffic/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/streamr-dev","download_url":"https://codeload.github.com/streamr-dev/airtraffic/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/streamr-dev%2Fairtraffic/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263361088,"owners_count":23454856,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-22T15:14:10.746Z","updated_at":"2025-07-03T16:34:51.318Z","avatar_url":"https://github.com/streamr-dev.png","language":"JavaScript","readme":"# Airtraffic streaming tool\nEasy to use integration script for ADS-B signal airtraffic listening. This integration heavily utilizes the modules included in [AirplaneJS](https://github.com/watson/airplanejs) made by Thomas Watson.\n\nRequirements:\nRaspberry pi 3+, [ADS-B USB dongle + antenna](https://shop.jetvision.de/epages/64807909.sf/en_GB/?ObjectPath=/Shops/64807909/Products/53200), \n\n## How to set up and run\nClone the repo\n\nPrerequirements for the script:\n\nNode.js 8 or higher (Use Node 8 for Raspberry Pi)\n\nLibrtlsdr is required for ADS-B listening:\n\nMac: `brew install librtlsdr`\n\nLinux: `apt-get install librtlsdr-dev`\n\nNow you can run “npm install”\n\nCreate and configure your .env file to have stream id and Streamr API key\n\nRun `npm start` or `node index.js`\n\n## Setting up systemd for Raspberry Pi\n\nBy setting up Systemd for the script will automatically launch on boot and restart in case of errors. \n\nTo do this first you want to find the directory that contains your .service files for Systemd by default it should be located in `/lib/systemd/system` on Raspberry Pi.\n\nIn the directory you want to run:\n``` \nsudo nano airtraffic.service \n```\n\nThen you should copy and paste this snippet to the file\n\n```\n[Unit]\nDescription=Streamr Airtraffic stream publish script\nDocumentation=https://github.com/streamr-dev/airtraffic\nAfter=network.target\n\n[Service]\nEnvironment=STREAMR_API_KEY=\nEnvironment=STREAM_ID=\nType=simple\nUser=pi\nExecStart=/usr/bin/node /home/pi/streamr-airtraffic/index.js\nRestart=on-failure\n\n[Install]\nWantedBy=multi-user.target\n\n```\n\nMake sure that the `User` field is correct and that the `Environment` fields contain your Streamr API key and the streams ID. \n\nAlso make sure that the `ExecStart` script is pointed correctly.\n\nAfter you have set up the fields run \n```\nsudo systemctl daemon.reload\n```\n\nAnd then\n\n```\nsudo systemctl start airtraffic\n```\n\nYou can see if the script is now running with\n\n```\nsystemctl status airtraffic\n```\n\nif ids and the string \"new raw data\" are being logged and there are no errors, the script should be publishing data to Streamr. You can double check in Streamrs editor if the data is coming in. Remember that the script does not publish planes from the Store that have not been seen in the last 2.5 seconds. Also the Store forgets planes that have not been seen in 60 seconds.\n\nIf the systemd start script worked correctly you should then run\n\n```\nsudo systemctl enable airtraffic\n```\n\nNow you can reboot your Raspberry Pi to see if the script is running automatically on launch. \n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstreamr-dev%2Fairtraffic","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstreamr-dev%2Fairtraffic","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstreamr-dev%2Fairtraffic/lists"}