jwoodrich / SmartThings-WeeWxWeatherStation

WeeWx Gateway for SmartThings
Apache License 2.0
3 stars 3 forks source link

How does SmartThings access Weewx data #1

Open Nahannidog opened 6 years ago

Nahannidog commented 6 years ago

Hello, Sorry, not a programmer, but managed to get WeeWx running on RaspPi, so apologies....

I'm missing how the SmartThings Hub accesses the data from these reports. Similarly, does SmartThings require some kind of DeviceHandler to display/act upon the data??

Thanks!

jwoodrich commented 6 years ago

Hi Nahannidog, In the README.MD it describes installing a reporting service/extension for WeeWx that writes current weather conditions in WeeWx to a JSON file, which would be accessible via an httpd or nginx web server instance on the RPi.

I've realized that the README.MD doesn't describe much on the SmartThings side, so I've updated it. At a high level, the repository contains SmartApp, which retrieves the data and parses it and sends the data to instances of a device handler. The SmartApp exposes two devices: one for an outdoor sensor and one for an indoor sensor. The device handler is at /devicetypes/jwoodrich/weewx-weather-station.src/weewx-weather-station.groovy, and the SmartApp is at /smartapps/jwoodrich/weewx-json-gateway.src/weewx-json-gateway.groovy. More details are available in the README.MD.

Is that helpful?

Thanks, Jason

Nahannidog commented 6 years ago

Hi Jason,Thanks!  I'm getting the big picture.  Now need to work on the details. 

I'm thinking you'd like to close the GitHub issue for tidiness...I can't see how to do that myself. 

I will proceed following  your updated Readme David

On Friday, August 10, 2018, 5:02:30 AM MDT, Jason D. Woodrich <notifications@github.com> wrote:  

Hi Nahannidog, In the README.MD it describes installing a reporting service/extension for WeeWx that writes current weather conditions in WeeWx to a JSON file, which would be accessible via an httpd or nginx web server instance on the RPi.

I've realized that the README.MD doesn't describe much on the SmartThings side, so I've updated it. At a high level, the repository contains SmartApp, which retrieves the data and parses it and sends the data to instances of a device handler. The SmartApp exposes two devices: one for an outdoor sensor and one for an indoor sensor. The device handler is at /devicetypes/jwoodrich/weewx-weather-station.src/weewx-weather-station.groovy, and the SmartApp is at /smartapps/jwoodrich/weewx-json-gateway.src/weewx-json-gateway.groovy. More details are available in the README.MD.

Is that helpful?

Thanks, Jason

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.