{"id":21286503,"url":"https://github.com/jjpaulo2/weather-data-consumer","last_synced_at":"2026-04-08T21:32:10.005Z","repository":{"id":173985875,"uuid":"588827121","full_name":"jjpaulo2/weather-data-consumer","owner":"jjpaulo2","description":"⏰ Job que consome uma API de clima e salva em um banco não relacional","archived":false,"fork":false,"pushed_at":"2023-01-17T04:29:05.000Z","size":194,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-13T09:56:20.619Z","etag":null,"topics":["cli","crontab","docker","fastapi","mongodb","python","redis","shell"],"latest_commit_sha":null,"homepage":"","language":"Python","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/jjpaulo2.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}},"created_at":"2023-01-14T06:16:17.000Z","updated_at":"2024-03-09T20:35:07.000Z","dependencies_parsed_at":null,"dependency_job_id":"47250398-a5b7-4dd5-a655-ea924f346890","html_url":"https://github.com/jjpaulo2/weather-data-consumer","commit_stats":null,"previous_names":["jjpaulo2/weather-data-consumer"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jjpaulo2/weather-data-consumer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jjpaulo2%2Fweather-data-consumer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jjpaulo2%2Fweather-data-consumer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jjpaulo2%2Fweather-data-consumer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jjpaulo2%2Fweather-data-consumer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jjpaulo2","download_url":"https://codeload.github.com/jjpaulo2/weather-data-consumer/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jjpaulo2%2Fweather-data-consumer/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31575507,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-08T14:31:17.711Z","status":"ssl_error","status_checked_at":"2026-04-08T14:31:17.202Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["cli","crontab","docker","fastapi","mongodb","python","redis","shell"],"created_at":"2024-11-21T11:29:39.692Z","updated_at":"2026-04-08T21:32:09.988Z","avatar_url":"https://github.com/jjpaulo2.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Weather Data Consumer\n\nEste projeto utiliza algumas tecnologias, como **Python**, **Docker**, **Redis** e **MongoDB**.\n\nA principal ideia aqui é consumir as APIs de previsão temporal da I4Sea, e salvar em um banco não relacional para fazer algum tratamento posterior. Acompanhe as issues/andamento deste projeto [aqui](https://github.com/jjpaulo2/weather-data-consumer/issues).\n\n### Estrutura\n\n- Um job que roda em intervalos de tempo definidos, que busca informações na API i4cast e salva essas informações.\n    - Estas informações são salvas no banco de dados, e também são exportadas para arquivos json.\n    - Veja os detalhes [aqui](https://github.com/jjpaulo2/weather-data-consumer/tree/main/i4cast-consumer).\n- Uma API de mock da API original da I4Sea, criada com o objetivo de facilitar os testes de integração da ferramenta.\n    - Veja os detalhes [aqui](https://github.com/jjpaulo2/weather-data-consumer/tree/main/i4cast-mock-api).\n\n### Executando\n\nVocê pode executar facilmente tudo com o auxílio do docker-compose.\n\n```shell\n$ docker compose up\n```\n\nIsto irá subir alguns containers na sua máquina:\n\n- API de Mock em `http://0.0.0.0:8880/v1/i4cast-api`\n- Redis em `redis://0.0.0.0:6379`\n- MongoDB em `mongodb://admin:admin@0.0.0.0:27017`\n- Cronjob escrevendo arquivos em `./dist`\n\nVerifique a pasta `./dist` para ver os arquivos gerados pela cronjob em execução.\n\n### TODO\n\nAinda falta implementar alguns itens/features:\n\n- Testes automatizados, [veja #4](https://github.com/jjpaulo2/weather-data-consumer/issues/4)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjjpaulo2%2Fweather-data-consumer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjjpaulo2%2Fweather-data-consumer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjjpaulo2%2Fweather-data-consumer/lists"}