Skip to content

A VUE3 Web Component for Weather & environment data

Notifications You must be signed in to change notification settings

Zheng-Bote/rz-weather

Repository files navigation

rz-weather

A VUE3 Web Component for Weather & environment data

Shows the weather and environemnt data from given loaction

Authors

Version

v0.1.1

License

MIT

API Reference

Parameters

    <rz-weather></rz-weather>
    <rz-weather location="Munich" title="the Weather" with_title="no"></rz-weather>
Parameter Type Description
location string Optional. "city"
title string Optional. "the Weather"
with_title string Optional. "yes" or "no"

Installation

cookie

needs a loaclStorage key-val with API key from https://www.weatherapi.com/

rz-weather=<YOUR_API-KEY>

used folder structure

.
├── assets
│   ├── custom.css
│   ├── rz-weather.css
│   └── rz-weather.js
├── favicon.ico
└── index.html

Usage/Examples

<!doctype html>
<html lang="en">
  <head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1" />
    <meta name="author" content="ZHENG Robert" />

    <title>Web Component</title>

    <meta name="description" content="Web Component for HTML footer" />
    <meta name="version" content="v0.1.1" />
    <meta name="author" content="ZHENG Robert" />
    <meta name="date" content="2016-01-02T01:30:00+01:00" />

    <link rel="alternate icon" href="./favicon.ico" />
    <link rel="shortcut icon" href="./favicon.ico" type="image/x-icon" />
    <link rel="stylesheet" crossorigin href="/assets/main.css" />
  </head>
  <body>
    <div id="app">
      <rz-openweather location="Munich"></rz-openweather>
    </div>
    <script type="module" src="/src/main.ts"></script>
  </body>
</html>

Screenshots

loaded weather data

no localStorage with API-Key

search masq

Used By

This web component is used by the following web sites:

the end

🖖

(back to top)

About

A VUE3 Web Component for Weather & environment data

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published