{"id":20202715,"url":"https://github.com/simlmx/meteomap","last_synced_at":"2025-04-10T11:40:28.273Z","repository":{"id":41959345,"uuid":"49343764","full_name":"simlmx/meteomap","owner":"simlmx","description":"Website showing historic weather data (taken from wikipedia) for cities around the world on an interactive map.","archived":false,"fork":false,"pushed_at":"2022-04-22T03:15:11.000Z","size":368,"stargazers_count":8,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-24T10:21:25.927Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","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/simlmx.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":"2016-01-09T22:23:14.000Z","updated_at":"2024-12-16T03:20:15.000Z","dependencies_parsed_at":"2022-08-12T00:40:43.832Z","dependency_job_id":null,"html_url":"https://github.com/simlmx/meteomap","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/simlmx%2Fmeteomap","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simlmx%2Fmeteomap/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simlmx%2Fmeteomap/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simlmx%2Fmeteomap/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/simlmx","download_url":"https://codeload.github.com/simlmx/meteomap/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248210554,"owners_count":21065565,"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-14T04:57:59.786Z","updated_at":"2025-04-10T11:40:28.250Z","avatar_url":"https://github.com/simlmx.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"Description\n===========\n\nWebsite displaying weather data for a few thousand cities on an interactive\nmap. The data is taken from Wikipedia.\n\n~~You can find a [deployed version here][site].~~\n\nThe original goal was to have a more efficient way to look at weather tables from Wikipedia to choose travel itineraries.\n\n\nPrerequisites\n=============\n\n`docker`\n\n\nConfiguration\n=============\n\n    cp config_sample.json config.json\n    # and edit the file if needed\n\n\nDatabase creation and population\n================================\n\n    # create a folder where we will put the downloadedfiles\n    mkdir download\n\n    # fetch the list of cities and associated files from geonames.org\n    wget \"http://download.geonames.org/export/dump/admin1CodesASCII.txt\" -P downloads\n    wget \"http://download.geonames.org/export/dump/allCountries.zip\" -P downloads\n    wget \"http://download.geonames.org/export/dump/countryInfo.txt\" -P downloads\n\n    python3 -m venv venv\n    source venv/bin/activate\n    pip install -r requirements.tx\n\n    # parse the city files\n    python meteomap/parse_geonames.py --admin1codes-file downloads/admin1CodesASCII.txt \\\n    --country-infos-file downloads/countryInfo.txt downloads/allCountries.zip downloads/parsed_geonames_world.gz\n\n    # add wiki data\n    python meteomap/augment_with_wiki.py downloads/parsed_geonames_world.gz downloads/augmented_geonames_world.gz\n\n    # create the database\n    python meteomap/create_database.py\n\n    # insert the data in the database\n    python meteomap/load_database.py downloads/augmented_geonames_world.gz\n\n\nRunning the website\n==================\n\n    make run\n    # Go to 0.0.0.0:8000\n\n\nDeployment to prod\n===============\n\n* `pg_dump` the database locally and then push it to the prod database.\n* The heroku deployment is in the `heroku` branch\n\n\n[site]: http://meteomap.herokuapp.com/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimlmx%2Fmeteomap","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsimlmx%2Fmeteomap","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimlmx%2Fmeteomap/lists"}