{"id":23064123,"url":"https://github.com/bacloud22/weathervenue","last_synced_at":"2025-04-06T16:16:49.664Z","repository":{"id":265219517,"uuid":"894411698","full_name":"bacloud22/WeatherVenue","owner":"bacloud22","description":"Weather website built in JavaScript","archived":false,"fork":false,"pushed_at":"2024-12-16T09:27:23.000Z","size":11210,"stargazers_count":1,"open_issues_count":8,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-12T21:51:25.965Z","etag":null,"topics":["google-maps-api","googlemaps","help-wanted","javascript","up-for-grabs","weather","weather-app"],"latest_commit_sha":null,"homepage":"https://meteodz.com/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bacloud22.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","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-11-26T10:06:28.000Z","updated_at":"2025-01-26T17:53:35.000Z","dependencies_parsed_at":"2024-12-15T09:36:31.144Z","dependency_job_id":null,"html_url":"https://github.com/bacloud22/WeatherVenue","commit_stats":null,"previous_names":["bacloud22/weathervenue"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bacloud22%2FWeatherVenue","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bacloud22%2FWeatherVenue/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bacloud22%2FWeatherVenue/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bacloud22%2FWeatherVenue/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bacloud22","download_url":"https://codeload.github.com/bacloud22/WeatherVenue/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247509240,"owners_count":20950232,"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":["google-maps-api","googlemaps","help-wanted","javascript","up-for-grabs","weather","weather-app"],"created_at":"2024-12-16T04:16:09.643Z","updated_at":"2025-04-06T16:16:49.646Z","avatar_url":"https://github.com/bacloud22.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# WeatherVenue\n\nWeatherVenue is a weather website using Google Maps and Openweathermap data to let people find best places to visit in their entourage; For warmer winter weather vacation or cool summer escapes. \n\nIt is a NodeJs \u0026 Express web app with other dependencies (axios, redis, nearby-cities, openweather-apis...).\n\n\n# A Glimpse of UI\n\n\nwhen deployed after research it should be like: \n\n![UI map](CONTRIBUTING/Capture_map.PNG)\n\n![UI city weather details](CONTRIBUTING/Capture_city_details.PNG)\n\n![UI city pictures](CONTRIBUTING/Capture_city_pictures.PNG)\n\n\n# Setup\n\nRun Redis server on default port, fill in .env variables:\n```ts\n// root folder\nNODE_ENV=localhost\nGOOGLE_MAPS_API_KEY=\nOPENWEATHERMAP_API_KEY=\n```\n\n```ts\n// client\nGOOGLE_MAPS_API_KEY=\nDEFAULT_LAT=48.86\nDEFAULT_LNG=2.34\nCENTER_LOCATION=paris\n```\n\nboth on root folder and inside client folder.\n\nOpenweathermap is no longer completely free, If you cannot get a key to run your tests, please ignore `OPENWEATHERMAP_API_KEY` but use the fake variable here:\nhttps://github.com/bacloud22/WeatherVenue/blob/main/libs/consts/fakeOneCallApiResponse.js \n\nand change `fetchWeather` function as follows\n\n```js\nimport { fakeApiResponse } from '../consts/fakeOneCallApiResponse.js';\n\nasync function fetchWeather (city, language) {\n  return new Promise(async (resolve, reject) =\u003e {\n    // const APIUrlWeather = `https://api.openweathermap.org/data/3.0/onecall?lat=${city.latitude}\u0026lon=${city.longitude}\u0026lang=${language}\u0026exclude=hourly,minutely\u0026units=metric\u0026appid=${OPENWEATHERMAP_API_KEY}`\n    // const body0 = await axios.get(APIUrlWeather)\n    // const data0 = await body0.data\n    // const APIUrlPollution = `https://api.openweathermap.org/data/2.5/air_pollution?lat=${city.latitude}\u0026lon=${city.longitude}\u0026appid=${OPENWEATHERMAP_API_KEY}`\n    // const body1 = await axios.get(APIUrlPollution)\n    // const data1 = await body1.data\n    // resolve({ weather: data0, pollution: data1 })\n\n    resolve({ weather: fakeApiResponse})\n  })\n}\n```\n\nalso \n\n```js\nconst cities = [nearestCities(query, 10)[0]]// nearestCities(query, 10);\n```\n\n\n# Contribution\n\n\nPlease see open issues for a specific issue, and do not hesitate to open any new issue (like better code, readability, modularity and best practice, performance, better UI or even functionality enhancements...).\n\nIf you contribute, please consider that I can merge and publish a new release under one channel or another. It will be 100% free although I can add ads to generate some coffee expenses :)\n\nIf you want to maintain the project with me; You can always ask.\n\nPlease keep it fair if you want to deploy anywhere; Ask for permission.\n\nSweet coding !\n\n\n# License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbacloud22%2Fweathervenue","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbacloud22%2Fweathervenue","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbacloud22%2Fweathervenue/lists"}