{"version":"https://jsonfeed.org/version/1.1","title":"Vic Demuzere - Weather","home_page_url":"https://vic.demuzere.be/articles/tags/weather/","feed_url":"https://vic.demuzere.be/articles/tags/weather/feed.json","description":"Blog posts tagged Weather by Vic Demuzere","language":"en","items":[{"id":"https://vic.demuzere.be/articles/ecowitt-protocol-alecto-ws-5500/","content_html":"<p>Recently, I was looking for an outside temperature sensor. Preferably in <a href=\"https://en.wikipedia.org/wiki/Stevenson_screen\" title=\"Instrument shelter or Stevenson screen\">an instrument shelter</a>, as my whole garden has direct sunlight during most of the day. I ended up buying the <a href=\"https://alectohome.nl/collections/alecto_weerstations/products/alecto-ws-5500-professioneel-wifi-weerstation-met-app-zwart\" title=\"Alecto WS-5500 weather station\">Alecto WS-5500</a>, which is actually a rebranded <a href=\"http://www.foshk.com/Wifi_Weather_Station/WH2900.html\" title=\"WH2900 Professional Color display Weather Station with WIFI Connection\">Fine Offset WH2900</a>. It has a decent temperature sensor and also supports uploading data to a configurable HTTP endpoint.</p>\n<p><img src=\"https://vic.demuzere.be/assets/articles/images/UQ48PqhzenKOq8TUOHowwVXUSrtt4uTn.jpg\" alt=\"Alecto WS-5500\" /></p>\n<h2 id=\"uploading-data\">Uploading data<a href=\"#uploading-data\" aria-label=\"Link to heading 'Uploading data'\" data-heading-content=\"Uploading data\" class=\"anchor\"></a></h2>\n<p>The inside unit that comes with the WS-5500 can be configured using the <a href=\"https://play.google.com/store/apps/details?id=com.ost.wsview\" title=\"WS View Android application\">WS View</a> Android application. It's able to upload data to a custom HTTP endpoint, provided that you use the same protocol used by either <a href=\"https://www.wunderground.com/\" title=\"Weather Underground\">Weather Underground</a> or <a href=\"https://www.ecowitt.net/\" title=\"Ecowitt\">Ecowitt.net</a>.</p>\n<p>Weather Underground uses a HTTP GET request. This makes for rather long URLs since we have to put all the data into query parameters. In addition, the configured password is also visible in the URL and thus saved in my access logs. <em>I didn't want to go down this path.</em></p>\n<p>Ecowitt uses POST requests which seems more sane.</p>\n<h2 id=\"the-ecowitt-protocol\">The Ecowitt protocol<a href=\"#the-ecowitt-protocol\" aria-label=\"Link to heading 'The Ecowitt protocol'\" data-heading-content=\"The Ecowitt protocol\" class=\"anchor\"></a></h2>\n<p>Data is sent through a POST request in standard <code>application/x-www-form-urlencoded</code> encoding. Looks like the contents depends on what sensors are connected to your weather station. I've found examples that contained other fields than I found in the data sent by the WS-5500.</p>\n<p>For anyone else that wants to write a script to capture data from the all-in-one <a href=\"https://alectohome.nl/collections/alecto_weerstations/products/alecto-ws-5500-professioneel-wifi-weerstation-met-app-zwart\" title=\"Alecto WS-5500 weather station\">Alecto WS-5500</a> or <a href=\"http://www.foshk.com/Wifi_Weather_Station/WH2900.html\" title=\"WH2900 Professional Color display Weather Station with WIFI Connection\">Fine Offset WH2900</a>, the fields below are sent in the POST request when Ecowitt protocol is selected:</p>\n<pre><code>stationtype=EasyWeatherV1.5.9\nmodel=WS2900_V2.01.12\nfreq=868M\n\nwh65batt=0\n\ndateutc=2021-06-21 20:16:45\n\ntempinf=70.9\nhumidityin=59\nbaromrelin=29.944\nbaromabsin=29.841\ntempf=59.2\nhumidity=86\nwinddir=355\nwindspeedmph=2.9\nwindgustmph=4.5\nmaxdailygust=12.5\nrainratein=0.000\neventrainin=0.000\nhourlyrainin=0.000\ndailyrainin=0.000\nweeklyrainin=0.000\nmonthlyrainin=0.000\ntotalrainin=0.000\nsolarradiation=0.00\nuv=0\n</code></pre>\n<h2 id=\"converting-units\">Converting units<a href=\"#converting-units\" aria-label=\"Link to heading 'Converting units'\" data-heading-content=\"Converting units\" class=\"anchor\"></a></h2>\n<p>As we use different units in Belgium, I used these conversions:</p>\n<ul>\n<li>Temperature in °C: <code>(fahrenheit - 32.0) * (5.0 / 9.0)</code></li>\n<li>Pressure in hPa: <code>inches * 33.6585</code></li>\n<li>Speed in km/h: <code>mph * 1.60934</code></li>\n<li>Rain in mm (or l/m^2): <code>inches * 25.4</code></li>\n</ul>\n<div class=\"footer\"><hr><p>Thanks for subscribing to my feed!</p><p>Feel free to e-mail comments or corrections to <a href=\"mailto:vic@demuzere.be?subject=RE%3A%20Ecowitt%20protocol%20on%20the%20Alecto%20WS-5500\">vic@demuzere.be</a>.</p></div>","url":"https://vic.demuzere.be/articles/ecowitt-protocol-alecto-ws-5500/","date_published":"2021-07-10T22:41:02Z","date_modified":"2026-05-13T17:31:47Z","language":"en"}]}