Giter VIP home page Giter VIP logo

raupulus / vue-component-weather-chipiona Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 1.07 MB

Componente con datos para estación meteorológica en tiempo real de la ciudad de Chipiona que muestra un resumen del tiempo en cada momento: Temperatura, humedad, tvoc, uv, uva, uvb, viento, rayos. Mirror de https://gitlab.com/raupulus/vue-component-weather-chipiona

Home Page: https://api.fryntiz.dev/weatherstation

License: GNU General Public License v3.0

JavaScript 12.97% Vue 83.91% Shell 0.16% HTML 2.77% TypeScript 0.19%
vue component chipiona vue3 vue-component vue-3 estacion-meteorologica widget tiempo weather

vue-component-weather-chipiona's Introduction

Vue Component, Weather Chipiona

This component adds onu widget with weather information in the town of chipiona in real time (seconds of one minute from the last reading) returning information on temperature, wind, air quality and UVA / UVB rays.

General Wind TVOC UV

TODO

  • Fix rollup export to standar javascript (wrapper.js)

Project setup

npm install

Build production

This creates the elements to include directly on the web and import module.

npm run build

Run develop watch

This raises a server component on port 8080 of localhost to develop it.

npm run serve

Use Mode

Esto desde la actualización a vue3 + typescript con rollup no he conseguido aún que funcione

Para comenzar necesitas tener en tu proyecto (o por lo menos en la página dónde usarás este componente) vue.js insertado.

Necesitas tener la llamada al script, utiliza la ruta adecuada según si lo descargas a tu proyecto, usas un cdn o lo traes desde npm.

<script src="./v-component-weather-chipiona.min.js"></script>

Una vez tienes Vue.js y la llamada al componente en tu web, puedes crear un bloque para añadir este componente dentro de él usando la etiqueta

Demo example

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8" />
    <title>Demo</title>
  </head>

  <body>
    <div id="app"></div>

    <!--vue-->
    <script src="https://unpkg.com/vue@next"></script>

    <script src="./v-component-weather-chipiona.min.js"></script>

    <script>
      //Vue.component(ChipionaWeatherComponent);
      Vue.createApp({}).mount("#app");
    </script>
  </body>
</html>

vue-component-weather-chipiona's People

Contributors

raupulus avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.