<?xml version="1.0" encoding="UTF-8"?><feed xmlns="http://www.w3.org/2005/Atom"><id>https://vic.demuzere.be/articles/tags/weather/atom.xml</id><title>Vic Demuzere - Weather</title><link href="https://vic.demuzere.be/articles/tags/weather/atom.xml" rel="self" type="application/atom+xml" /><link href="https://vic.demuzere.be/articles/tags/weather/" rel="alternate" type="text/html" /><updated>2021-07-10T22:41:02+00:00</updated><author><name>Vic Demuzere</name></author><entry><id>https://vic.demuzere.be/articles/ecowitt-protocol-alecto-ws-5500/</id><title>Ecowitt protocol on the Alecto WS-5500</title><link href="https://vic.demuzere.be/articles/ecowitt-protocol-alecto-ws-5500/" rel="alternate" /><updated>2026-05-13T17:31:47+00:00</updated><published>2021-07-10T22:41:02+00:00</published><content type="html"><![CDATA[<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>
<p><img src="https://vic.demuzere.be/assets/articles/images/UQ48PqhzenKOq8TUOHowwVXUSrtt4uTn.jpg" alt="Alecto WS-5500" /></p>
<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>
<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>
<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>
<p>Ecowitt uses POST requests which seems more sane.</p>
<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>
<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>
<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>
<pre><code>stationtype=EasyWeatherV1.5.9
model=WS2900_V2.01.12
freq=868M

wh65batt=0

dateutc=2021-06-21 20:16:45

tempinf=70.9
humidityin=59
baromrelin=29.944
baromabsin=29.841
tempf=59.2
humidity=86
winddir=355
windspeedmph=2.9
windgustmph=4.5
maxdailygust=12.5
rainratein=0.000
eventrainin=0.000
hourlyrainin=0.000
dailyrainin=0.000
weeklyrainin=0.000
monthlyrainin=0.000
totalrainin=0.000
solarradiation=0.00
uv=0
</code></pre>
<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>
<p>As we use different units in Belgium, I used these conversions:</p>
<ul>
<li>Temperature in °C: <code>(fahrenheit - 32.0) * (5.0 / 9.0)</code></li>
<li>Pressure in hPa: <code>inches * 33.6585</code></li>
<li>Speed in km/h: <code>mph * 1.60934</code></li>
<li>Rain in mm (or l/m^2): <code>inches * 25.4</code></li>
</ul>
<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>]]></content></entry></feed>