{"id":25470093,"url":"https://github.com/thinkphp/request.forecastweather","last_synced_at":"2025-08-11T16:08:10.390Z","repository":{"id":929389,"uuid":"698840","full_name":"thinkphp/Request.ForecastWeather","owner":"thinkphp","description":"Request.ForecastWeather is a simple class MooTools that extends Request.JSONP and display the local forecast weather on your website, blog or other web document.","archived":false,"fork":false,"pushed_at":"2010-11-10T08:46:40.000Z","size":152,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-04-14T14:54:28.677Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://thinkphp.github.com/Request.ForecastWeather/","language":"JavaScript","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/thinkphp.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":"2010-06-02T08:29:13.000Z","updated_at":"2013-01-17T04:56:57.000Z","dependencies_parsed_at":"2022-08-16T11:30:47.428Z","dependency_job_id":null,"html_url":"https://github.com/thinkphp/Request.ForecastWeather","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thinkphp%2FRequest.ForecastWeather","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thinkphp%2FRequest.ForecastWeather/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thinkphp%2FRequest.ForecastWeather/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thinkphp%2FRequest.ForecastWeather/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thinkphp","download_url":"https://codeload.github.com/thinkphp/Request.ForecastWeather/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239437156,"owners_count":19638441,"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-02-18T08:31:53.833Z","updated_at":"2025-02-18T08:31:55.339Z","avatar_url":"https://github.com/thinkphp.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"Request.ForecastWeather\n=======================\nThis is a simple plugin that shows you the local weather with JSONP\u0026YQL-driven badge.\n\n![Screenshot](http://farm5.static.flickr.com/4026/4659201615_5229b62e6d.jpg)\n\nHow to use\n----------\n\nFirst you must to include the JS files in the head of your HTML document.\n       \n       #HTML\n       \u003cscript type=\"text/javascript\" src=\"core.js\"\u003e\u003c/script\u003e\n       \u003cscript type=\"text/javascript\" src=\"jsonp.js\"\u003e\u003c/script\u003e\n       \u003cscript type=\"text/javascript\" src=\"Request.ForecastWeather.js\"\u003e\u003c/script\u003e\n\nIn your JavaScript source: \n\n       #JS \n       window.addEvent('domready',function(){ \n           new Request.ForecastWeather('bucharest','c',{\n                       onSuccess: function(o){\n                              var title = '\u003cp style=\"color: blue\"\u003e\u003cstrong\u003e'+o.query.results.weather.rss.channel.item.title+'\u003c/strong\u003e\u003c/p\u003e',\n                                  description = o.query.results.weather.rss.channel.item.description;               \n                                  $('weatherbadge').set('html',title+description);\n                       }\n           }).send();\n\n         //You can load the weather in an Element \n         $('custom').loadWeather('london','f');\n      });\nIn your HTML source: \n\n       #HTML\n       \u003cdiv id=\"weatherbadge\"\u003e\u003c/div\u003e\n       \u003cdiv id=\"custom\"\u003e\u003c/div\u003e\n\nDependencies\n\n      MooTools Core 1.3\n      MooTools More: Request.JSONP","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthinkphp%2Frequest.forecastweather","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthinkphp%2Frequest.forecastweather","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthinkphp%2Frequest.forecastweather/lists"}