SmartThings Community

[RELEASE] Free Meteobridge Weather Station


(Barry) #1

Meteobridge Weather Station v1.0.28 updated on January 10, 2019

Meteobridge ( is an inexpensive Linux-based server that is used by many to collect data from your local weather station and distribute it to one or more public weather sources (including Weather Underground, for example). It supports data collection from a large number of popular weather stations, and it offers a local API that allows clients/applications to retrieve the latest weather station data on demand.

This weather station DTH uses local hubAction() calls to provide pretty much all information exposed by The Meteobridge Template HTML API, which it retrieves as a JSON formatted map. While the DTH is optimized for Davis Vantage Pro2 Plus stations, it will report whatever subset Meteobridge provides for any connected weather station.

This device also (optionally) calculates and displays Purple Air Air Quality Index from a specified PurpleAir sensor. If you don’t have one of your own, you will need to do a little research on the website to find a sensor nearby and then find its device ID from their JSON repository (search the repository for the name displayed for the sensor on the sensor map).

As most weather stations do no provide forecast details (hi/lo temps, humidity, probability of precipitation, etc.), this DTH allows selection from 1 of 4 sources for forecast data:

  • Dark Sky: probably the best forecast source for PWS owners, as they provide hyper-local forecast data that probably includes data from your weather station (if you send to CWOP);
  • The Weather Company: now owned by IBM, and now owners of Weather Underground, a reasonable source for forecast data that probably does not include any input from your weather station;
  • Weather Underground: Soon to be retired API can be used to get data specific to your PWS (but only until Feb 15, 2019 as of their latest decision on Jan 1 2019).
  • MeteoBridge: Davis weather stations do provide a calculated forecast string; the code will drop back to use TWC for the rest of the forecast data if you choose this option

Significantly, EVERYTHING that this DTH displays in Tiles is also available programmatically to other SmartApps and WebCore pistons. You can thus build apps and integrations based off of changes in any attribute, from temperature and humidity to air quality, lunar phase, wind speed and the like. If interested, have a look at the attributes listed at the top of the source file for the names of the available data points.

New Features 29 July 2018

MeteoWeather now displays forecast details (hi/low temps & humidity, plus rainfall forecast) for the rest of today and tomorrow, along with historical data for yesterday. This data is sourced from Weather Underground via the built-in SmartThings integration, or (optionally) from Dark Sky, if you have a Dark Sky api key. Open the preferences to configure these new options.

Also, you can choose the source for the daily forecast text (above sun/moon rise/set info). The default is to use whatever Meteobridge returns, but for non-Davis weather stations, this can be blank. Preferences options allow you to select the Weather Underground daily forecast, or the Dark Sky forecast (if Dark Sky is configured).

Updates 05 January 2019

  • Now gets the “yesterday” data separately from the "current’ data, reducing the load on your MeteoBridge (which could occaisionally time out)
  • Added more detail for the current weather indication on the main tile
  • Several ther minor tweaks and optimizations

Updates 10 January 2019

  • Added option to use the new getTwcConditions() and getTwcForecast() call from SmartThings for the forecast data

Note: since this uses hubAction() for the Meteobridge data, it will work only when your SmartThings hub and Meteobridge server are on the same (local) IP network. This approach keeps your password safe®, but doesn’t handle remote IP addresses. On the plus side, it is pretty lightweight to get updates from your meteobridge every minute, unlike using the WeatherUnderground data source.

The GiThub repository for MeteoWeather is here:


You can either manually copy/save the DTH code, or you can use the following for SmartThings’ Github integration:

Owner: SANdood
Name: MeteoWeather
Branch: master

After loading and publishing the DTH, you will need to manually create the device from the Devices page in your IDE. Once created, use your Mobile App to configure the preferences for your new Meteobridge-based Weather Station!

Change Log:

* 1.0.00 - Initial Release
* 1.0.01 - Added PurpleAir Air Quality Index (AQI)
* 1.0.02 - Fixed New/Full moon dislays
* 1.0.03 - Cleanup of Preferences page
* 1.0.04 - More tweaking to New/Full moon transitions
* 1.0.05 - Fixed class casting errors
* 1.0.06 - Renamed some attributes for naming consistency
* 1.0.07 - Added pref setting for Lux scale
* 1.0.08 - Increased internal attribute precision for temps & precipitation
* 1.0.09 - Changed to use my Ecobee Suite weather icons (black circles)
* 1.0.10 - Minor display tweaks
* 1.0.11 - Optimized PurpleAir AQI calculations
* 1.0.12 - Converted to BigDecimal for maximum precision
* 1.0.13 - Adjust decimal precision for rainfall (e.g., inches.2 vs mm.1)
* 1.0.14 - Option to use Dark Sky conditions/forecast instead of Weather Underground
* 1.0.15 - Expanded almanac display to include weather forecast
* 1.0.16 - Added today’s forecast data
* 1.0.17 - Extensive formatting changes
* 1.0.18 - Fixed units on forecasted temps
* 1.0.19 - Reduced normal-state messages
* 1.0.20 - Changed “SolRad”
* 1.0.21 - Fixed temperature color on Android
* 1.0.22 - Get yesterday data separately, only when day/night changes
* 1.0.23 - Changed to get yesterday data when the date changes
* 1.0.24 - Optimizations
* 1.0.25 - Use update time from the Meteobridge instead of time we made the http request
* 1.0.26 - Support additional detail for current weather
* 1.0.27 - Added attribution label
* 1.0.28 - Added TWC weather (replacing WU soon)

Screen Shot:

[Release] Weather Station Tile 2.0
[RELEASE] Free Ecobee Suite, version 1.6.**
( #2

I have noticed that I’m not getting the current outside temperature on the tile. I have a PWS I have connected to Weather Underground (working fine). When I look at the recent activity it only has forecast information. The only blank field I can see in the setup screen is “Meteobridge setup” What is this? Would it be causing my problem?


(Barry) #3

I’m sorry, but the Free Meteobridge Weather Station ONLY works if you are using a MeteoBridge to gateway your weather station’s data to the various weather services. It only gets forecast data from Weather Underground (or DarkSky), and all the rest directly from your weather station via the MeteoBridge.

If you search the Community Forum, you will find several Weather Stations that utilize Weather Underground for everything (but note, Weather Underground is deprecating its “free” API access).

( #4

Figured it out, I had the wrong IP address…

(Barry) #5

Updated to v1.0.28 on 10 January 2019 at 11:30am EST

*Adds support for new SmartThings getTwcXXX weather source, soon to be replacing Weather Underground.