rcrum003 / HiveControl

Alternative software for use with HiveTool suite of software.
GNU General Public License v2.0
25 stars 13 forks source link

Create getOurweather.sh #77

Closed jhaltd closed 4 years ago

jhaltd commented 4 years ago

New script to pull weather details from local Ourweather weather station.

jhaltd commented 4 years ago

Here's the reply from the weather station:

{"FullDataString": "23.06,75.87,30.42,108905.00,47.52,0.53,1.36,45.00,0.00,0.00,1.61,0.00,2.80,45.00,225.00,0,2020-05-27 12:34:40,,1856,4,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,V:,WXLMB ,0,0 km,2020-05-27 12:28:32,0,Lightning detected,2020-05-27 12:28:32,6,0.00,-6800", "id": "1", "name": "OurWeather", "softwareversion": "056", "hardware": "esp32", "Controllerboard": "V2", "connected": true}

Duncan

On 5/27/2020 11:00 AM, Ryan wrote:

@rcrum003 commented on this pull request.

Howdy! Thanks for the Pull Request!

Can you send us the output from your weather station to this command

curl -s http://yourlocalip/FullDataString

We want to double check the code and make a few slight changes to match our undocumented coding style.

Thanks

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/rcrum003/HiveControl/pull/77#pullrequestreview-419311563, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMS2MICJWIAOWOVIYRCTSGTRTUTHBANCNFSM4NLTA62Q.

-- o 215-568-5501 ext 122 f 215-568-1185 e duncan@joannehudson.com

rcrum003 commented 4 years ago

What is the URL you put in local_wx_url? Can you also give us an output of that file? Thanks

jhaltd commented 4 years ago

I specify the weather station's IP address, and it returns the following JSON:

{"variables": {"OurWeatherTime": "2020-05-26 22:00:14", "FullDataString": "0.00,0.00,29.14,108786.00,56.92,0.00,0.00,90.00,0.00,0.00,0.00,0.00,0.00,90.00,90.00,0,2020-05-26 22:00:14,,2048,4,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,V:,WXLMB ,0,0 km,2020-05-26 22:00:14,0,Lightning detected,2020-05-26 22:00:14,5,0.00,-6700", "FirmwareVersion": "056", "IndoorTemperature": 29.14, "BarometricPressure": 108786.00, "Altitude": 56.92, "OutdoorTemperature": 0.00, "OutdoorHumidity": 0.00, "CurrentWindSpeed": 0.00, "CurrentWindGust": 0.00, "CurrentWindDirection": 90.00, "Sunlight": 0.00, "EnglishOrMetric": 0, "RainTotal": 0.00, "WindSpeedMin": 0.00, "WindSpeedMax": 0.00, "WindGustMin": 0.00, "WindGustMax": 0.00, "WindDirectionMin": 90.00, "WindDirectionMax": 90.00, "AirQualitySensor": 2048, "ThunderBoardLast": "0 km,2020-05-26 22:00:14,0,Lightning detected,2020-05-26 22:00:14,5,", "ThunderBoardParams": "2,1,7,0,3,3", "Controllerboard": "V2", "RSSI": -67, "ESP32HeapSize": 191852}, "id": "1", "name": "OurWeather", "softwareversion": "056", "hardware": "esp32", "Controllerboard": "V2", "connected": true}

On 5/27/2020 1:40 PM, Ryan wrote:

What is the URL you put in local_wx_url? Can you also give us an output of that file? Thanks

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/rcrum003/HiveControl/pull/77#issuecomment-634826421, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMS2MIH7CCS3FWLXF2N7W4LRTVF7PANCNFSM4NLTA62Q.

-- o 215-568-5501 ext 122 c 215-873-9918 f 215-568-1185 e duncan@joannehudson.com

rcrum003 commented 4 years ago

According to that last string, your weather station isn't reporting Outdoor Temp or Outdoor Humidity - image

jhaltd commented 4 years ago

I polled it again and got this:

{"variables": {"OurWeatherTime": "2020-05-28 13:23:15", "FullDataString": "22.37,98.31,29.09,108466.00,81.53,1.29,2.82,135.00,0.00,0.02,1.42,0.03,2.87,45.00,270.00,0,2020-05-28 13:23:15,,1328,4,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,V:,WXLMB ,0,0 km,2020-05-28 13:19:34,0,Lightning detected,2020-05-28 13:19:34,12,0.00,-6500", "FirmwareVersion": "056", "IndoorTemperature": 29.09, "BarometricPressure": 108466.00, "Altitude": 81.53, "OutdoorTemperature": 22.37, "OutdoorHumidity": 98.31, "CurrentWindSpeed": 1.29, "CurrentWindGust": 2.82, "CurrentWindDirection": 135.00, "Sunlight": 0.00, "EnglishOrMetric": 0, "RainTotal": 0.00, "WindSpeedMin": 0.02, "WindSpeedMax": 1.42, "WindGustMin": 0.03, "WindGustMax": 2.87, "WindDirectionMin": 45.00, "WindDirectionMax": 270.00, "AirQualitySensor": 1328, "ThunderBoardLast": "0 km,2020-05-28 13:19:34,0,Lightning detected,2020-05-28 13:19:34,12,", "ThunderBoardParams": "2,1,7,0,3,3", "Controllerboard": "V2", "RSSI": -65, "ESP32HeapSize": 191832}, "id": "1", "name": "OurWeather", "softwareversion": "056", "hardware": "esp32", "Controllerboard": "V2", "connected": true}

One thing to note is that the REST interface only returns metric figures.

On 5/28/2020 1:44 PM, Ryan wrote:

According to that last string, your weather station isn't reporting Outdoor Temp or Outdoor Humidity - image https://user-images.githubusercontent.com/12521256/83175040-4d202d80-a0e9-11ea-9c3a-c131a5c3f08c.png

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/rcrum003/HiveControl/pull/77#issuecomment-635497009, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMS2MIDK4UKFSLRGU2XSTMDRT2PIPANCNFSM4NLTA62Q.

-- o 215-568-5501 ext 122 f 215-568-1185 e duncan@joannehudson.com

rcrum003 commented 4 years ago

Updated code in Release 2.07