Skip to content

Mqtt Weather gather Data from Weather Underground, and publish the Data to a local MQTT Broker

Notifications You must be signed in to change notification settings

JKarthaus/mqttWeather

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mqttWeather

Mqtt Weather collect Data from Weather Underground, and publish the Data to a local MQTT Broker

mqttWeather is a OSGI Application that comes as Bundle for the KARAF Application Container

mqttWeather fetch Data from Weather Underground

How to use it ?

Step One - Get your Weather Underground API Key

Register here

Step two - Create a mqttWeather Config File.

Goto your Karaf installation KARAF_BASE_DIR/etc Create a file named mqttWeather.cfg

############################################################################
# MQTT Configuration
mqtt.host=tcp://{MQTT_BROKER}:1883
mqtt.topic=/filiberry/weather
mqtt.client.id=mqttWeather
# Weather Underground Call Intervall in Minutes
weatherUnderground.intervall=20
weatherUnderground.url=http://api.wunderground.com/api/{API_KEY_HERE}/conditions/q/pws:{PWS_ID_HERE}.json

Dont forget to replace {API_KEY_HERE} with your API Key.
and Your favourite Weather Station ID with {PWS_ID_HERE}
Set the Name or IP Adresse from your MQTT Broker here {MQTT_BROKER}

Step three Install the Bundle to your Karaf Server

Simply copy mqttWeather.jar to KARAF_BASE_DIR/deploy

Step four Control the Result

Startup or Log into your Karaf installation.
Karaf login
And check the Bundle ist up and running.
BundleList

Thats it ! - check the Result

Check Karaf Log
Check the Result

The Result in MQTTLens

Result in MQTTLens

Want more Infos

Checkout the Blog on my Website
Sorry, only in German

About

Mqtt Weather gather Data from Weather Underground, and publish the Data to a local MQTT Broker

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages