Code Monkey home page Code Monkey logo

sarah-v5-meteo's Introduction

Module Node-Red pour S.A.R.A.H V5

Ce module sarah-meteo permet de récupérer la météo sur openweathermap.

telecharger, extraire puis copier le repertoire sarah-meteo dans le dossier \sarah\viseo-bot-framework\node_modules\

relancer sarah

configuration du module :

Renseigner la clé API openweathermap obtenu après inscription le site openweathermap

GitHub Logo

Copier le fichier xml ./grammar/sarah-meteo.xml dans le dossier grammar configuré sur le module win-sarah

dans le cas de plusieurs plugins utiliser un module switch avec comme discriminant msg.payload.options.plugin renvoyé par win-sarah (ici meteo)

GitHub Logo

GitHub Logo

modifier le fichier sarah-meteo.xml pour y ajouter vos villes

<item>Sannois<tag>out.action.id="2976179";</tag></item>

out.action.id ==> id de la ville openweathermap (rechercher sur http://openweathermap.org/find)

Inputs

apikey

apikey de votre compte openweathermap à renseigner dans la configuration du module

  • msg.payload.options.plugin:

à utiliser avec un module switch pour rediriger vers le bon plugin

valeur de out.action.plugin du fichier sarah-meteo.xml

  • msg.payload.options.day

nom du jours ou 0 pour aujourd'hui 1 pour demain et 2 pour après-demain

valeur de out.action.day du fichier sarah-meteo.xml

  • msg.payload.options.id

id de la ville openweathermap (rechercher sur http://openweathermap.org/find)

valeur de out.action.id du fichier sarah-meteo.xml

Outputs

  • msg.payload: renvoyé par win-sarah

  • msg.speak: texte à lire par win-speak(ou autre)

GitHub Logo

  • msg.weather: pour réutilisation eventuelle avec :"

--->.tmin: temperature min

--->.tmax: temperature max

--->.humidity: Pourcentage d'humiditée moyen

--->.speedwind: Vitesse du vent moyenne en km/h

--->.prevision: Prévision méteo

Utilisation:

sarah quelle est la météo à Sannois

sarah quelle est la météo demain à Sannois

sarah quelle est la météo après demain à Sannois

sarah quelle est la météo lundi à Sannois

sarah-v5-meteo's People

Contributors

guittou avatar

Watchers

 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.