{"id":13805906,"url":"https://github.com/kherrick/x-weather","last_synced_at":"2025-04-07T00:34:05.689Z","repository":{"id":57400884,"uuid":"135404045","full_name":"kherrick/x-weather","owner":"kherrick","description":"A collection of Web Components implementing portions of the OpenWeatherMap API.","archived":false,"fork":false,"pushed_at":"2020-10-02T00:16:46.000Z","size":808,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-08-04T01:05:38.804Z","etag":null,"topics":["custom-elements","service-worker","weather","weather-app","web-components"],"latest_commit_sha":null,"homepage":"https://kherrick.github.io/x-weather-app/","language":"JavaScript","has_issues":false,"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/kherrick.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":"2018-05-30T07:19:41.000Z","updated_at":"2023-03-05T01:20:33.000Z","dependencies_parsed_at":"2022-09-05T03:50:25.031Z","dependency_job_id":null,"html_url":"https://github.com/kherrick/x-weather","commit_stats":null,"previous_names":[],"tags_count":21,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kherrick%2Fx-weather","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kherrick%2Fx-weather/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kherrick%2Fx-weather/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kherrick%2Fx-weather/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kherrick","download_url":"https://codeload.github.com/kherrick/x-weather/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223268488,"owners_count":17116820,"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":["custom-elements","service-worker","weather","weather-app","web-components"],"created_at":"2024-08-04T01:01:06.172Z","updated_at":"2024-11-06T01:25:21.711Z","avatar_url":"https://github.com/kherrick.png","language":"JavaScript","funding_links":[],"categories":["Real World"],"sub_categories":["Component Libraries"],"readme":"# \\\u003cx-weather\u003e\n\n## About\n\nA collection of [web components](https://developer.mozilla.org/en-US/docs/Web/Web_Components) implementing portions of the [OpenWeatherMap API](https://openweathermap.org/api).\n\n\u003ca href=\"https://kherrick.github.io/x-weather-app/\"\u003e\n  \u003cimg src=\"https://raw.githubusercontent.com/kherrick/x-weather/master/assets/x-weather-screenshot.png\" width=\"75%\" /\u003e\n\u003c/a\u003e\n\n## Usage\n\n### Static Import Example:\n\nInstall:\n```bash\nnpm i x-weather\n```\n\nRender:\n\n```html\n\u003cscript type=\"module\"\u003e\n  import * as XWeather from './node_modules/x-weather/dist/esm/module.js'\n\n  XWeather.defineCustomElements()\n\u003c/script\u003e\n\u003cx-weather\n  appid=\"NOT_A_REAL_APP_ID\"\n  latitude=\"33.43\"\n  longitude=\"-112.11\"\n  placename=\"Phoenix, Arizona\"\n\u003e\n  \u003cx-current primaryscale=\"f\"\u003e\u003c/x-current\u003e\n  \u003cx-forecast days=\"14\" primaryscale=\"f\"\u003e\u003c/x-forecast\u003e\n\u003c/x-weather\u003e\n```\n\n### Dynamic Import Example:\n\nRender:\n```html\n\u003cscript\u003e\n  import('https://unpkg.com/x-weather/dist/esm/defineCustomElements.js')\n    .then(({\n      defineCustomElements\n    }) =\u003e {\n      defineCustomElements()\n    })\n\u003c/script\u003e\n\u003cx-weather\n  appid=\"NOT_A_REAL_APP_ID\"\n  latitude=\"33.43\"\n  longitude=\"-112.11\"\n  placename=\"Phoenix, Arizona\"\n\u003e\n  \u003cx-current primaryscale=\"f\"\u003e\u003c/x-current\u003e\n  \u003cx-forecast days=\"14\" primaryscale=\"f\"\u003e\u003c/x-forecast\u003e\n\u003c/x-weather\u003e\n```\n\n## Development\n```bash\nnpm run start\n```\n\n## Lint\n```bash\nnpm run lint\n```\n\n## Build\n```bash\nnpm run build\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkherrick%2Fx-weather","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkherrick%2Fx-weather","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkherrick%2Fx-weather/lists"}