{"id":28545621,"url":"https://github.com/crate/devrel-plane-spotting-with-cratedb","last_synced_at":"2025-08-10T06:03:24.657Z","repository":{"id":244430591,"uuid":"815223479","full_name":"crate/devrel-plane-spotting-with-cratedb","owner":"crate","description":"Code for the Plane Spotting with Software Defined Radio, CrateDB and Node.js talk","archived":false,"fork":false,"pushed_at":"2025-01-27T13:16:03.000Z","size":67,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":8,"default_branch":"main","last_synced_at":"2025-07-19T07:15:12.602Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/crate.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-06-14T16:11:07.000Z","updated_at":"2025-01-27T13:16:07.000Z","dependencies_parsed_at":null,"dependency_job_id":"7040bc59-5660-43f2-924a-ac940b806b62","html_url":"https://github.com/crate/devrel-plane-spotting-with-cratedb","commit_stats":null,"previous_names":["crate/devrel-plane-spotting-with-cratedb"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/crate/devrel-plane-spotting-with-cratedb","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crate%2Fdevrel-plane-spotting-with-cratedb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crate%2Fdevrel-plane-spotting-with-cratedb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crate%2Fdevrel-plane-spotting-with-cratedb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crate%2Fdevrel-plane-spotting-with-cratedb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/crate","download_url":"https://codeload.github.com/crate/devrel-plane-spotting-with-cratedb/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crate%2Fdevrel-plane-spotting-with-cratedb/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269683183,"owners_count":24458628,"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","status":"online","status_checked_at":"2025-08-10T02:00:08.965Z","response_time":71,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":"2025-06-09T23:08:14.496Z","updated_at":"2025-08-10T06:03:24.543Z","avatar_url":"https://github.com/crate.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# TODO README\n\nInterested in learning more about this probject?  There's a full explanation and demo in [this video on YouTube](https://www.youtube.com/watch?v=YIUJTbrwlAs).\n\nCallsigns in the last hour:\n\n```sql\nselect plane_id, callsign from planespotting.radio_messages where callsign is not null and ts \u003e= now() - interval '1 hour';\n```\n\nLatest data for planes that have a plane_id, callsign, altitude and position and updated in the last 2 minutes:\n\n```\nSELECT plane_id, callsign, (CURRENT_TIMESTAMP - latest_ts) as last_update, altitude, distance('POINT (-1.1436530095627766 52.94765937629119)', position) / 1000 as distance, position from (\nselect plane_id,\n  (select callsign from planespotting.radio_messages where plane_id = planes.plane_id and callsign is not null order by ts desc limit 1) as callsign,\n  (select altitude from planespotting.radio_messages where plane_id = planes.plane_id and altitude is not null order by ts desc limit 1) as altitude,\n  (SELECT position from planespotting.radio_messages where plane_id = planes.plane_id and position is not null order by ts desc limit 1) as position,\n  (SELECT ts from planespotting.radio_messages where plane_id = planes.plane_id order by ts desc limit 1) as latest_ts\nfrom (select distinct plane_id from planespotting.radio_messages) as planes\n) as interesting_planes WHERE latest_ts \u003e= current_timestamp - '2 mins'::interval and plane_id is not null and callsign is not null and altitude is not null and position is not null order by last_update ASC;\n```\n\nGrafana: https://cratedb.com/docs/guide/integrate/visualize/grafana.html\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcrate%2Fdevrel-plane-spotting-with-cratedb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcrate%2Fdevrel-plane-spotting-with-cratedb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcrate%2Fdevrel-plane-spotting-with-cratedb/lists"}