{"id":15111486,"url":"https://github.com/green-blue-couchette/mini-project---weather-db-with-python","last_synced_at":"2026-02-03T04:38:44.232Z","repository":{"id":247577473,"uuid":"825906783","full_name":"green-blue-couchette/Mini-project---Weather-db-with-Python","owner":"green-blue-couchette","description":"A Python program to retrieve weather data from OpenWeatherMap and store it in an SQLite database. Hands-on project to aid my learning and for my portfolio.","archived":false,"fork":false,"pushed_at":"2024-08-09T13:50:23.000Z","size":29,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-11T14:26:23.464Z","etag":null,"topics":["databases","hobby-project","portfolio","python","sqlite"],"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/green-blue-couchette.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":"2024-07-08T18:21:31.000Z","updated_at":"2024-08-09T13:51:15.000Z","dependencies_parsed_at":"2024-08-09T15:14:33.796Z","dependency_job_id":"d24c1627-7adc-41fe-b899-c4c8dc009a32","html_url":"https://github.com/green-blue-couchette/Mini-project---Weather-db-with-Python","commit_stats":{"total_commits":24,"total_committers":1,"mean_commits":24.0,"dds":0.0,"last_synced_commit":"024744996c277ddbf231c71fb2383c4ebcc8be8a"},"previous_names":["green-blue-couchette/mini-project---weather-db-with-python"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/green-blue-couchette%2FMini-project---Weather-db-with-Python","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/green-blue-couchette%2FMini-project---Weather-db-with-Python/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/green-blue-couchette%2FMini-project---Weather-db-with-Python/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/green-blue-couchette%2FMini-project---Weather-db-with-Python/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/green-blue-couchette","download_url":"https://codeload.github.com/green-blue-couchette/Mini-project---Weather-db-with-Python/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247371306,"owners_count":20928179,"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":["databases","hobby-project","portfolio","python","sqlite"],"created_at":"2024-09-26T00:20:27.720Z","updated_at":"2026-02-03T04:38:44.206Z","avatar_url":"https://github.com/green-blue-couchette.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# About \"Mini project - Weather DB with Python 3\"\nA simple personal project where I tie together some basic knowledge from Python 3 and SQLite databases, which I learned on my free time.\n\n## What it is\nA small command-line program that lets you search for a location, e.g. `Kvevlax, Finland`, and store its current weather info from OpenWeatherMap in an SQLite database. It also lets you view or delete the stored places and their weather data, afterwards.\n\n## How to use\nDownload the `weatherdb.py` and `credentials.py` scripts to your machine.\\\nRun it using `python3 weatherdb.py` or `./weatherdb.py`. Make sure you fill the credentials file with your own OpenWeatherMap API key first.\n\nIf this is the first time you run `weatherdb.py`, enter the command `#clear` at the prompt to create the `.sqlite` database. Otherwise, you will get an error.\n\n\n## Libraries and tools used\n* Python 3 for the programming language, including the libraries `sqlite 3` for the database operations, and `urllib` and `json` for making REST API requests and parsing the responses.\n* Visual Studio Code for writing the code\n* [Postman](https://www.postman.com/) to get acquainted with OpenWeatherMap's REST API endpoint's responses\n* [SQLite](https://www.sqlite.org/index.html) and the [DB Browser for SQLite](https://sqlitebrowser.org/) for the database\n* [dbdiagram](https://dbdiagram.io/d) for designing the database diagram\n\n### Database structure\n![Database diagram 2024-08-08 19-58-19](https://github.com/user-attachments/assets/2d84b3cf-61c1-4c12-b738-e9f7a8b7982f)\n\n## Screenshots\nDemo – Searching for a location, e.g. `Köln`:\n![Location search example output](https://github.com/user-attachments/assets/2fe9ab46-1824-41af-bbf5-ff5ecd6a17be)\n\nDemo – Displaying all searched locations that got stored in the `weatherdb.sqlite` database – SQLite DB browser's contents vs `weatherdb.py`'s output:\n![Python 3 output and SQLite DB example output](https://github.com/user-attachments/assets/d7b8cca7-0600-4450-acf6-84eab931deb4)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgreen-blue-couchette%2Fmini-project---weather-db-with-python","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgreen-blue-couchette%2Fmini-project---weather-db-with-python","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgreen-blue-couchette%2Fmini-project---weather-db-with-python/lists"}