{"id":22683707,"url":"https://github.com/andregoncalves/stencil-skycons","last_synced_at":"2025-03-29T14:41:33.405Z","repository":{"id":57370746,"uuid":"122335930","full_name":"andregoncalves/stencil-skycons","owner":"andregoncalves","description":"st-skycons is a web component built with Stencil that allows you to use the Skycons weather icons as web component","archived":false,"fork":false,"pushed_at":"2018-02-28T15:47:03.000Z","size":131,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-18T14:12:02.979Z","etag":null,"topics":["jsx","skycons-weather-icons","stencil","webcomponents"],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/andregoncalves.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}},"created_at":"2018-02-21T12:52:00.000Z","updated_at":"2018-11-04T03:13:38.000Z","dependencies_parsed_at":"2022-09-18T10:30:25.041Z","dependency_job_id":null,"html_url":"https://github.com/andregoncalves/stencil-skycons","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andregoncalves%2Fstencil-skycons","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andregoncalves%2Fstencil-skycons/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andregoncalves%2Fstencil-skycons/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andregoncalves%2Fstencil-skycons/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/andregoncalves","download_url":"https://codeload.github.com/andregoncalves/stencil-skycons/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246200301,"owners_count":20739563,"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":["jsx","skycons-weather-icons","stencil","webcomponents"],"created_at":"2024-12-09T21:13:12.441Z","updated_at":"2025-03-29T14:41:33.387Z","avatar_url":"https://github.com/andregoncalves.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"![Built With Stencil](https://img.shields.io/badge/-Built%20With%20Stencil-16161d.svg?logo=data%3Aimage%2Fsvg%2Bxml%3Bbase64%2CPD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDE5LjIuMSwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IgoJIHZpZXdCb3g9IjAgMCA1MTIgNTEyIiBzdHlsZT0iZW5hYmxlLWJhY2tncm91bmQ6bmV3IDAgMCA1MTIgNTEyOyIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI%2BCjxzdHlsZSB0eXBlPSJ0ZXh0L2NzcyI%2BCgkuc3Qwe2ZpbGw6I0ZGRkZGRjt9Cjwvc3R5bGU%2BCjxwYXRoIGNsYXNzPSJzdDAiIGQ9Ik00MjQuNywzNzMuOWMwLDM3LjYtNTUuMSw2OC42LTkyLjcsNjguNkgxODAuNGMtMzcuOSwwLTkyLjctMzAuNy05Mi43LTY4LjZ2LTMuNmgzMzYuOVYzNzMuOXoiLz4KPHBhdGggY2xhc3M9InN0MCIgZD0iTTQyNC43LDI5Mi4xSDE4MC40Yy0zNy42LDAtOTIuNy0zMS05Mi43LTY4LjZ2LTMuNkgzMzJjMzcuNiwwLDkyLjcsMzEsOTIuNyw2OC42VjI5Mi4xeiIvPgo8cGF0aCBjbGFzcz0ic3QwIiBkPSJNNDI0LjcsMTQxLjdIODcuN3YtMy42YzAtMzcuNiw1NC44LTY4LjYsOTIuNy02OC42SDMzMmMzNy45LDAsOTIuNywzMC43LDkyLjcsNjguNlYxNDEuN3oiLz4KPC9zdmc%2BCg%3D%3D\u0026colorA=16161d\u0026style=flat-square)\n\n# st-skycons\n\nst-skycons is a web component built with [Stencil](https://stenciljs.com/) that allows you to use the [Skycons weather icons](https://darkskyapp.github.io/skycons/).\n\n## Demo\n\n## Getting Started\n\nTo try this component:\n\n```bash\ngit clone git@github.com:andregoncalves/stencil-skycons.git skycons\ncd skycons\ngit remote rm origin\n```\n\nand run:\n\n```bash\nnpm install\nnpm start\n```\n\n## Using this component\n\n### Script tag\n\n\n- Put `\u003cscript src='https://unpkg.com/stencil-skycons@latest/dist/skycons.js'\u003e\u003c/script\u003e` in the head of your index.html\n- Then you can use the component\n\n### Node Modules\n- Run `npm install stencil-skycons --save`\n- Put a script tag similar to this `\u003cscript src='node_modules/stencil-skycons/dist/skycons.js\u003e\u003c/script\u003e` in the head of your index.html\n- Then you can use the element `\u003cst-skycons\u003e` anywhere in your template, JSX, html etc\n\n### In a stencil-starter app\n- Run `npm install stencil-skycons --save`\n- Add `{ name: 'stencil-skycons' }` to your [collections](https://github.com/ionic-team/stencil-starter/blob/master/stencil.config.js#L5)\n- Then you can use the element `\u003cst-skycons\u003e` anywhere in your template, JSX, html etc\n\n## Parameters\n\nAttribute | Default | Description\n------------ | ------------- | -------------\nwidth | 64 | Canvas width\nheight | 64 | Canvas height\nicon | '' | The icon, see available icons below\ncolor | black | The icon color\nautoplay | true | The animation auto starts\n\n## Methods\n\nYou can change the icon, play and pause the animation:\n```js\nelement = document.querySelector('st-skycons');\nelement.setAttribute('icon', 'RAIN');\nelement.pause();\nelement.play();\n```\n\n## Available Icons\n\n```\n'CLEAR_DAY'\n'CLEAR_NIGHT'\n'PARTLY_CLOUDY_DAY'\n'PARTLY_CLOUDY_NIGHT'\n'CLOUDY'\n'RAIN'\n'SLEET'\n'SNOW'\n'WIND'\n'FOG'\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandregoncalves%2Fstencil-skycons","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandregoncalves%2Fstencil-skycons","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandregoncalves%2Fstencil-skycons/lists"}