Weergegevens van Weather Underground in Domoticz - Ehoco.nl (2024)

Weergegevens van Weather Underground in Domoticz - Ehoco.nl (1)

DomoticzLUA scripts

8 april 201827 oktober 2018Joost

In dit artikel leggen we uit hoe je gegevens van een extern weerstation automatisch ophaalt en in Domoticz weer kunt geven. We gaan gebruik maken van de weergegevens vanWeather Underground,welke je vervolgens heel gemakkelijk kunt gaan gebruiken in bv. Blockly events.

API-key Weather Underground

Allereerst hebben we een API-key nodig van Weather Underground, deze kun je geheel gratis aanmaken:

  • Ga naar:http://www.wunderground.com/weather/api
  • Klik rechtsboven op “JOIN”.
  • Geef een email-adres en wachtwoord in, lees de Terms of Service en klik op “Sign Up for free”
  • Binnen een paar minuten ontvang je een email met een URL om je account te activeren. Klik op deze URL.
  • Log nu in met je nieuwe account.
  • Ga naar de “Pricing” pagina:http://www.wunderground.com/weather/api/d/pricing.html
  • Selecteer onderstaande opties:
    • STRATUS PLAN
    • Developer
  • Het totaalbedrag zou 0 USD per maand moeten zijn.
  • Klik op “Purchase Key”
  • Vul de velden als volgt in:
    • Contact name: (your name)
    • Project contact e-mail: (your e-mail address)
    • Project name: Domoticz
    • Project website: http://www.domoticz.com
    • Where will the API be used: Website
    • Will the API be used for commercial use: No
    • Will the API be used for manufacturing mobile chip processing: No
    • A brief description: “I use the API for the greatest home automation project!” (of iets wat hier op lijkt 😉 )
  • Vink beide check boxes aan. Uiteraard alleen als je met de voorwaarden akkoord gaat!
  • Klik op “Purchase Key”
  • Geweldig! Je hebt je nu succesvol aangemeld en hebt nu je persoonlijke (!) API-key (Key ID). Deze key heb je nodig bij het aanmaken van de virtuele hardware (volgende stap).

Virtuele hardware toevoegen

Net als bij echte hardware moet je nu eerst Weather Underground toevoegen als virtuele hardware. Zie het als een weerstation dat jou voorziet van weergegevens.

Eerst gaan we bepalen wat het ID van het weerstation is welke je wilt gaan gebruiken:

  • Ga naarhttp://www.wunderground.com/wundermap
  • Klik op “Map setting” en wijzig Fahrenheit naar Celsius
  • Klik op “All layers” en controleer of “Weather Stations” aangevinkt is.
  • Zoom in naar de locatie van jouw keuze.
  • Klik op een weerstation (een kleine ballon met een temperatuur)
  • Je ziet nu een pop-up met detail-informatie. Linksboven zie je “Station ID”
  • Schrijf het ID op

Nu kun je dit weerstation toevoegen aan Domoticz:

  • Ga naar je Domoticz web interface
  • Rechtsboven klik je op “Setup” -> “Hardware”
  • Gebruik de “Type” dropdown lijst en kies “Weather Underground”
  • Vul de velden als volgt in:
    • Name: Een logische naam voor de virtuele hardware
    • Type: Weather Underground
    • API Key: Vul je persoonlijk API-key van Weather Underground in
    • Location: Station ID van Wundermap (Indien je gebruik maakt van een Personal Weather Station dan moet je “pws:” voor het Station ID zetten).
  • Vergeet niet om op “Add” te klikken om je instellingen op te slaan!
  • Zorg ervoor dat je ‘Accept new hardware’ aan hebt gevinkt in Setup -> Settings!

Check je log

Sla deze stap niet over! Of wil je niet weten of jouw virtuele hardware juist werkt?

  • Klik op Setup -> Log
  • Indien de hardware juist geïnstalleerd is zie je een regel als:
    • Wed Jul 10 13:30:00 2013 (Wunderground Utrecht) Temperature + Humidity + Barometric (Utrecht Barometer)
  • Is de hardware niet juist geïnstalleerd dan zal je onderstaande regel zien:
    • Error: Sun Apr 8 10:40:30 2018 WUnderground: Invalid data received, or unknown location!

Voeg (virtuele) Devices toe

Nu begint het echt! Je virtuele weerstation geeft weergegevens door en deze wil je natuurlijk terugzien in je Domoticz interface!

  • Klik op “Setup” -> “Devices”
  • Je ziet nu 5 nieuwe (virtuele) devices:
    • Barometer
    • Wind (chill)
    • UV index
    • Rain
    • Visibility
  • In dit voorbeeld gaan we de “barometer” toevoegen aan jouw interface. Je kunt deze stappen herhalen voor ieder device dat je wil gaan gebruiken.
  • Klik op het groene pijltje aan het einde van de regel van de barometer (type: Temp + Humidity + Baro)
  • In de pop-up geef je een logische naam in
  • Als dit een barometer in Nijmegen is dan kun je het bv. “Nijmegen barometer” noemen.
  • Klik op “Add Device” om de naam op te slaan en het de device toe te voegen aan de interface.
  • Je ziet dat het groene pijltje nu blauw is geworden.
  • Klik nu maar eens op “Weather” of “Temperature” boven in de balk! Wow, dat is cool!

Alleen temperatuur

Standaard zal je bij de device ‘Temperature’ meerdere waarden zien, zoals luchtdruk, vochtigheid, etc. Indien je bv. de buitentemperatuur (of gevoelstemperatuur) wil gaan gebruiken in een Blockly event dan heb je een ‘single value’ nodig en geen waarde van de luchtvochtigheid.

Om deze ‘single value’ devices in Domoticz te tonen gaan we een aantal virtuele sensoren aanmaken:

  • Ga naar Setup –> Hardware
  • Kies bij “Type” voor “Dummy”, bedenk een logische naam en klik op “Add”
  • Klik op “Create virtual sensor” en maak vervolgens onderstaande sensoren aan:
    • Temperature sensor (voor buitentemperatuur)
    • Temperature sensor (voor gevoelstemperatuur)
    • Humidity sensor
    • Barometer sensor
  • Ga naar Setup -> Devices en zoek de sensoren die je zojuist aangemaakt hebt. Klik bij iedere sensor op het groene pijlte, zodat de device toegevoegd wordt aan je interface. Tevens noteer je het IDX van iedere nieuwe sensor (staat vooraan op iedere regel).
  • Download dit script en pak het uit met een extractor, zoals WinRar.
  • Ga naar /home/pi/domoticz/scripts/lua/ en plaats hier het script met de naam ‘script_device_weergegevens.lua’.

In het script moet je nog een paar wijzigingen doorvoeren:

  • Pas de waarde van “sensorwu” en “sensorwu2” aan. Sensorwu is de naam van de gecombineerde temperatuursensor en Sensorwu2 is de naam van de gecombineerde windsensor (zie onderstaande afbeelding.
  • Pas de IDX-nummers aan. Dit zijn de IDX-nummers van de virtuele sensoren die je zojuist hebt aangemaakt.
  • Sla het script vervolgens op

Ga naar Setup -> Log, hier zal je iedere 10 minuten de volgende regel zien staan :Script event triggered: /home/pi/domoticz/scripts/lua/script_device_weergegevens.lua

Ga naar ‘Temperature’ en je zal nu zien dat jouw virtuele sensor dezelfde waarde heeft als de Weather Underground sensor, maar nu alleen met de temperatuur en geen andere waarden.

Mission completed, de virtuele temperatuursensor kan nu gebruikt worden in events!

Aantal keer bekeken: 2.055

Weergegevens van Weather Underground in Domoticz - Ehoco.nl (2024)

FAQs

What is the weather underground 27517? ›

High 89F. Winds NNE at 5 to 10 mph. Partly cloudy skies. Low 69F.

What is the weather underground 89511? ›

Tomorrow's temperature is forecast to be NEARLY THE SAME as today. Clear skies. Low 53F. W winds at 10 to 20 mph, decreasing to 5 to 10 mph.

What is the weather underground 08884? ›

Clear to partly cloudy. Low 64F. Winds light and variable.

What's the weather underground in Wheatland Missouri? ›

Overcast with rain showers at times. High 79F. Winds light and variable.

What is the weather underground 78945? ›

A mainly sunny sky. Hot. High 104F. Winds SSE at 5 to 10 mph.

What is the temperature like underground? ›

below the surface stays a constant temperature, between 45°F and 75°F, depending on latitude. The geothermal, or ground-source heat pump, system is made up of a heat pump, loops of pipe (sometimes called the ground exchanger), and a liquid that flows through the heat pump and the loops of pipe.

What is the weather underground 20905? ›

A mix of clouds and sun in the morning followed by cloudy skies during the afternoon. High 81F. Winds NW at 10 to 15 mph. Cloudy skies early, followed by partial clearing.

What is the weather underground 02131? ›

Sunny, along with a few afternoon clouds. High 83F. Winds NNE at 5 to 10 mph. 1% Dry conditions for the next 6 hours.

What is the weather underground 98685? ›

Partly cloudy skies. High 79F. Winds NW at 5 to 10 mph. 0% Dry conditions for the next 6 hours.

What is the weather underground 27909? ›

Sun and clouds mixed. High 86F. Winds S at 5 to 10 mph. Partly cloudy skies this evening will give way to occasional showers overnight.

What is the weather underground 94507? ›

Partly cloudy early with increasing clouds overnight. Low 58F. Winds SSW at 10 to 15 mph. 5% Dry conditions for the next 6 hours.

What is the weather underground 90254? ›

Cloudy early, becoming mostly sunny this afternoon. High 74F. Winds WSW at 10 to 20 mph. A few clouds.

What is the weather underground 63129? ›

High 82F. Winds SE at 5 to 10 mph. Chance of rain 30%. A few isolated thunderstorms developing overnight under partly cloudy skies.

What is the weather underground mountain village? ›

Cloudy with light rain early...then becoming partly cloudy. Low near 45F. Winds SSE at 5 to 10 mph. Chance of rain 70%.

What's the weather underground in Park Hills Missouri? ›

High near 80F. Winds SE at 5 to 10 mph. Partly cloudy skies. A stray shower or thunderstorm is possible.

What is the weather underground Kings Canyon? ›

Clear to partly cloudy. Low 57F. Winds E at 5 to 10 mph.

Top Articles
Dietary assessment toolkits: an overview
Gut health
M3Gan Showtimes Near Amc Quail Springs Mall 24
El Paso Craigs
Haul auf deutsch: Was ist das? Übersetzung, Bedeutung, Erklärung - Bedeutung Online
Best Pre Med Schools U.s. News
Dive Bars With Pool Tables Near Me
Gasbuddy Costco Hawthorne
Weather Underground Merritt Island
Santa Maria Cars Craigslist
Word trip Answers All Levels [2000+ in One Page Updated 2023] » Puzzle Game Master
Leccion 4 Lesson Test
Lsn Nashville Tn
2 værelses hus i Ejby
Culver's Flavor Of The Day Paducah Ky
Sandals Travel Agent Login
How To Get To Brazil In Slap Battles
Peanut Oil Can Be Part Of A Healthy Diet — But Only If It's Used This Way
20 Cozy and Creative Fall Front Porch Ideas to Welcome the Season in Style
Synergy Grand Rapids Public Schools
Ian D. McClure on LinkedIn: New partnerships, licenses, patents and projects in today’s #ukotc…
Somewhere In Queens Showtimes Near The Maple Theater
SpaceX Polaris Dawn spacewalk - latest: 'It's gorgeous' - billionaire Jared Isaacman's awed reaction as he steps out of capsule on historic spacewalk
Samanthaschwartz Fapello
American Flat Track Season Resumes At Orange County Fair Speedway - FloRacing
P1 Offshore Schedule
craigslist: northern MI jobs, apartments, for sale, services, community, and events
Stellaris Remove Planet Modifier
Www.publicsurplus.com Motor Pool
Sunset On November 5 2023
Snow Rider Unblocked 67
Uganda: The tiny flea making it painful for people to walk and work | African Arguments
8663081159
Ati System Disorder Hypertension
TV tablå Alla TV-program idag | Snabb och enkel tv-guide
Trailmaster Fahrwerk - nivatechnik.de
Alineaciones De Rcd Espanyol Contra Celta De Vigo
Faze Teeqo Wiki
Espn Expert Picks Week 2
What Happened To Daniel From Rebecca Zamolo
Craigslist For Sale By Owner Chillicothe Ohio
Austin Powers Judo Chop Gif
Indian River County FL.
The Complete Guide to Flagstaff, Arizona
Melissa Bley Ken Griffin
Hourly Pay At Dick's Sporting Goods
Bretnie Hall Ashland Ky
Www.888Tt.xyz
Mi Game Time
Sir Anthony Quayle, 76; Actor Won Distinction in Theater, Film, TV
Papitop
Dragon Ball Super Super Hero 123Movies
Latest Posts
Article information

Author: Kelle Weber

Last Updated:

Views: 5917

Rating: 4.2 / 5 (73 voted)

Reviews: 88% of readers found this page helpful

Author information

Name: Kelle Weber

Birthday: 2000-08-05

Address: 6796 Juan Square, Markfort, MN 58988

Phone: +8215934114615

Job: Hospitality Director

Hobby: tabletop games, Foreign language learning, Leather crafting, Horseback riding, Swimming, Knapping, Handball

Introduction: My name is Kelle Weber, I am a magnificent, enchanting, fair, joyous, light, determined, joyous person who loves writing and wants to share my knowledge and understanding with you.