{"id":24449125,"url":"https://github.com/codeniko/go-weather","last_synced_at":"2025-03-14T05:43:22.837Z","repository":{"id":26444082,"uuid":"29894993","full_name":"codeniko/go-weather","owner":"codeniko","description":"Get city weather information using Golang and the openweathermap API","archived":false,"fork":false,"pushed_at":"2015-01-27T03:16:22.000Z","size":120,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-21T00:43:40.364Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","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/codeniko.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":"2015-01-27T03:13:17.000Z","updated_at":"2015-01-27T03:16:22.000Z","dependencies_parsed_at":"2022-07-27T17:03:39.254Z","dependency_job_id":null,"html_url":"https://github.com/codeniko/go-weather","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/codeniko%2Fgo-weather","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeniko%2Fgo-weather/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeniko%2Fgo-weather/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeniko%2Fgo-weather/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codeniko","download_url":"https://codeload.github.com/codeniko/go-weather/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243532531,"owners_count":20306152,"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":"2025-01-21T00:37:14.633Z","updated_at":"2025-03-14T05:43:22.814Z","avatar_url":"https://github.com/codeniko.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"## go-weather\nA simple attempt at programming with Go using the openweathermap API. This is a daemon running in the background that listens to port 8080. When sending the correctly structured HTTP request, weather information about the CITY,STATE you requested about is returned. \n\nWeather information retrieved include: Temperature, humidity, wind speed, and wind direction.\n\n## Building the binary\nrun \"go build\"\n\n## Running\n1. Make sure you have a solid internet connection so that the weather API can be called successfully.\n2. run \"./weather\" to start the webserver on port 8080 of localhost.\n3. In a terminal, run \"curl localhost:8080/weather/CITY,STATE\"\n\t\n\tExample: curl localhost:8080/weather/piscataway,nj\n\n## How data is searched\nDo a request against localhost:8080/weather/CITY,STATE where CITY is a city and STATE is the state in which CITY is in. The CITY,STATE is extracted from the url and is used as the argument to search for in the weather API. The API does most of the work to retrieve the data, and I simply return it.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodeniko%2Fgo-weather","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodeniko%2Fgo-weather","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodeniko%2Fgo-weather/lists"}