{"id":16603295,"url":"https://github.com/dbrgn/hnf-peaks","last_synced_at":"2025-03-09T17:36:16.544Z","repository":{"id":66130048,"uuid":"284626508","full_name":"dbrgn/hnf-peaks","owner":"dbrgn","description":"Fetch information about paragliding flights from alpine peaks.","archived":false,"fork":false,"pushed_at":"2024-08-26T22:22:34.000Z","size":8607,"stargazers_count":8,"open_issues_count":1,"forks_count":1,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-03-06T08:51:05.886Z","etag":null,"topics":["paragliding","xcontest"],"latest_commit_sha":null,"homepage":"https://dbrgn.github.io/hnf-peaks/","language":"HTML","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/dbrgn.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-08-03T06:55:48.000Z","updated_at":"2024-08-26T22:22:39.000Z","dependencies_parsed_at":"2024-11-16T16:32:04.329Z","dependency_job_id":"08031075-1baf-4ee5-a52b-0ac7e64e58bf","html_url":"https://github.com/dbrgn/hnf-peaks","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dbrgn%2Fhnf-peaks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dbrgn%2Fhnf-peaks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dbrgn%2Fhnf-peaks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dbrgn%2Fhnf-peaks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dbrgn","download_url":"https://codeload.github.com/dbrgn/hnf-peaks/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242729418,"owners_count":20175943,"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":["paragliding","xcontest"],"created_at":"2024-10-12T00:49:04.888Z","updated_at":"2025-03-09T17:36:16.514Z","avatar_url":"https://github.com/dbrgn.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Hike\u0026Fly Peaks Switzerland\n\nFetch information about paragliding flights from alpine peaks.\n\nMap: https://dbrgn.github.io/hnf-peaks/\n\n## Prerequisites\n\n- Bash\n- PostgreSQL + PostGIS\n- Python 3\n- The following Python packages: beautifulsoup4, psycopg2\n\n## 0: Start services\n\nThe easiest way to run PostGIS is through Docker:\n\n    docker run -d --name hnf-peaks-pg \\\n          -e POSTGRES_USER=$(id -u -n) \\\n          -e POSTGRES_HOST_AUTH_METHOD=trust \\\n          -p 127.0.0.1:5432:5432 \\\n          docker.io/postgis/postgis:16-3.4-alpine\n\n## 1: Download OSM Data\n\nThis will download the OpenStreetMap database and extract all peaks with an\nelevation \u003e1000m:\n\n    ./1-load-osm-data.sh \u003ccountry\u003e\n\n## 2: Query XContest\n\nThis will process all peaks and query XContest for the number of flights that\nlaunched from within 350 m around the peak:\n\n    export XCONTEST_USER=...\n    export XCONTEST_PASS=...\n    ./2-query-xcontest.py \u003ccountry\u003e\n\nThe data will be written to a file called `data-YYYY-MM-DD.csv`.\n\n**WARNING:** X-Contest does rate limiting, so unless you are whitelisted by\nthem, you will probably get blocked after a while. Furthermore, do not run this\ncommand on the evening of a hammer day, choose a time when XContest is not\nbusy.\n\n## 3: Postprocess Data\n\nTo calculate some aggregations:\n\n    ./3-postprocessing.py \u003cdata-in.csv\u003e pilots \u003cpilots-out.csv\u003e\n\nTo generate GeoJSON from the data:\n\n    ./3-postprocessing.py \u003cdata-in.csv\u003e geojson \u003cgeojson-out.json\u003e\n\n## License\n\n- Code: GPLv3 or later\n- Data: © OpenStreetMap contributors\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdbrgn%2Fhnf-peaks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdbrgn%2Fhnf-peaks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdbrgn%2Fhnf-peaks/lists"}