{"id":13600554,"url":"https://github.com/flows-network/weather-lookup","last_synced_at":"2025-04-11T00:31:28.091Z","repository":{"id":192761450,"uuid":"617444767","full_name":"flows-network/weather-lookup","owner":"flows-network","description":null,"archived":false,"fork":false,"pushed_at":"2023-09-05T08:04:17.000Z","size":23,"stargazers_count":0,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-11-07T03:41:46.501Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/flows-network.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}},"created_at":"2023-03-22T12:10:00.000Z","updated_at":"2024-10-07T09:48:26.000Z","dependencies_parsed_at":null,"dependency_job_id":"762545fc-21b0-4077-9ef6-0700af8d445a","html_url":"https://github.com/flows-network/weather-lookup","commit_stats":null,"previous_names":["flows-network/weather-lookup"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flows-network%2Fweather-lookup","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flows-network%2Fweather-lookup/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flows-network%2Fweather-lookup/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flows-network%2Fweather-lookup/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/flows-network","download_url":"https://codeload.github.com/flows-network/weather-lookup/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248322280,"owners_count":21084334,"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-08-01T18:00:41.952Z","updated_at":"2025-04-11T00:31:27.794Z","avatar_url":"https://github.com/flows-network.png","language":"Rust","funding_links":[],"categories":["Lambda"],"sub_categories":[],"readme":"# A weather lookup service\n\n[Deploy this function on flows.network](#deploy-the-weather-lookup-app), and you will get a web service that using OpenWeatherMap to look weather.\n\n![image](https://user-images.githubusercontent.com/45785633/227089663-7af14499-1860-45a7-ae46-b80b48fc7dfd.png)\n\n\nThis is a simple example to show how [Lambda](https://flows.network/integration/Lambda) works on flows.network.\n\n## Deploy the weather lookup App\n\nTo install this weather lookup App, we will use [flows.network](https://flows.network/), a serverless platform that makes deploying your own app quick and easy in just three steps.\n\n## Prerequisite\n\nYou will need an OpenWeatherMap API key. If you do not already have one, sign up [here](https://openweathermap.org/appid).\n\n### Fork this repo and write your own code\n\nFork [this repo](https://github.com/flows-network/weather-lookup). \n\n### Deploy the code on flow.network\n\n1. Sign up for an account for deploying flows on [flows.network](https://flows.network/). It's free.\n2. Click on the \"Create a Flow\" button to start deploying the web service.\n3. Authenticate the [flows.network](https://flows.network/) to access the `wether-lookup` repo you just forked. \n\n\u003cimg width=\"948\" alt=\"image\" src=\"https://user-images.githubusercontent.com/45785633/226957614-cf386f63-5283-438e-af72-12de1781aa2b.png\"\u003e\n\n\n4. Click on the Advanced text and you will see more settings including branch and environment variables. In this example, we have one variable `API_KEY` to fill in, which is the OpenWeatherMap API key.\n\n\u003cimg width=\"899\" alt=\"image\" src=\"https://user-images.githubusercontent.com/45785633/226958901-8824bd5a-e2c9-42cc-9ccd-fbec952535f0.png\"\u003e\n\n5. Click the Deploy button to deploy your function.\n\n### Configure SaaS integrations\n\nAfter that, the flows.network will direct you to configure the SaaS integration required by your flow. Here we can see: there is no SaaS needs to be connected since it's a lambda service. Just click the Check button to see your flow details.\n\n\u003cimg width=\"964\" alt=\"image\" src=\"https://user-images.githubusercontent.com/45785633/226959151-0e8a159a-02b3-4130-b7b5-8831b65c8d75.png\"\u003e\n\n\n## Try this demo\n\nAfter the flow function's status becomes `ready`, you will see a link under the Lambda Endpoint. Copy and paste this url to your brower and add `?city=cityname` to look up the city weather you want to know.\n\n\n![image](https://user-images.githubusercontent.com/45785633/227093331-f19f57a2-e3d9-4b31-97e0-00cfe19b9bda.png)\n\n\n\u003e [flows.network](https://flows.network/) is still in its early stages. We would love to hear your feedback!\n\n\n## Others\n\n\nTo build locally, make sure you have intsalled Rust and added `wasm32-wasi` target.\n\n```\ncargo build target wasm32-wasi --release\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflows-network%2Fweather-lookup","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fflows-network%2Fweather-lookup","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflows-network%2Fweather-lookup/lists"}