Show data from own weatherstation

Already searched but not found i was looking for…
Before i re-invent the wheel, maybe others akready have done similar or we can do together?

I bought my own weather station which is working fine. It is an Eurochron WS2900, similar to Ambient Weather Series 2xxx. It can automatically upload data into WU, Weathercloud and MetOffice.

Unfortunately WU is not offering api anymore and i do not have one.
So i am thinking of how i can have most current data from my station into HA (running a hassbian image) which will work in future.

I found some links from WU getting data without api and it can be fizzled out of this. But i am unsure if this still works in 2019, too?

So my question is if someone already had same thoughts?
Does anyone know about getting data from Weathercloud? Seems this will work in the next future…

Any hints and feedback welcome,

Regards, Ralf

Hi, I see nobody responded so we may be alone here. I too have a version of the WH2900 weather station with WiFi. Yes WU is going to go to a paid service (to hold MY data) so I don’t want to use it either. WeatherCloud is fine but yep it’s not possible to get data back to HA AFAIK. Not a friendly weather station…

I port sniffed the station console which has the WiFi module in it with NMAP. Turns out it’s an ESP8266 based WiFi module (like NodeMCU etc) and has port 45000 open.
Somebody who has one and knows something about how to trap traffic in and out of a port might be able to see if it can be accessed and mimicked to get weather data out of it. I’d try it myself if somebody can tell me how to do it…

1 Like

Currently i am using WU to get my data. Even if you don‘t have an API key it is possible to get these via http xml request.
I can post how i‘ve done this ifsomeone‘s imterested after my holidays.

/Ralf

Yes, I’d be interested in how you do that, and what advantages there are over weathercloud etc ?

Will post the source when i‘m back from holidays starting Dec.
I use WU because from there i get the data each 5 mins using an http statement i found on the web which gets me an xml result. This i parse via a xml library from linux.
More to come when i‘m back.

/ Ralf

You can try http://www.weewx.com and https://github.com/weewx/weewx/wiki/mqtt.

I’ve used these two with a long time in Oregon Scientific PWS

Hello,

here is my snippet where i read the values back from WU. Just replace STATIONID with the station id from Wunderground you have.
The example reads the value “temp_c” (Temperature Celsius) from the XML file.
Do not set the scan_interval lower as 600, makes no sense as this is the lowest value. WU stores values from tehz weatehr station each 5 mins = 600 seconds.

- platform: command_line
  name: "mywetter_temp"
  command: 'curl -sk http://api.wunderground.com/weatherstation/WXCurrentObXML.asp?ID=STATIONID | xmllint --format --xpath "string(//temp_c)" -'
  unit_of_measurement: "°C"
  scan_interval: 600

Before this is running fine, you may need to install the xmllint library.

The same procedure you can do for more values, just paste teh link in your browser to see all of them.

/ Ralf

2 Likes

That won’t work for us as no USB connection. The Weewx listed solution requires buying an expensive receiver product that may need modification for our frequencies anyway.

Hi Ralf, I need a bit more of a starting point for my situation, have you got an idea on what URL for XML request we’d use for WeatherCloud ?

Unfortunately WU is dead and buried as far as myself and many new PWS users are concerned (not going to pay for the privilege of sending them MY data to sell to others at my actual cash expense).

Hi.
No idea if WC also provides XML data. So far did not find anything and an email was never replied.
So gar i use WU as a workaround. Adding a station is free and the XML from above is also free until now wihtout need tohave an APIkey to buy.
Woul like to see the same from WC, too. If anyone has such a link or idea please reply.
Neber used weewx or anything of this as my weather station is a more simple one only having WLAN and sending directly to the weather channels. No USB so.

/Ralf

I know this is an old thread, but thought it might be helpful.

You don’t need usb to get weewx up and running. You can do it with “dns spoofing”. What that does is forces any request to the WU api to hit weewx instead. Weewx can then forward the request on to WU for you.

Using the mqtt plug in for weewx it’s then pretty easy to surface up data.

If anyone wants more details, just reach out.

Weather underground will give you a free API key if you have a PWS uploading data.

I’ve been using this for a few months …works well!

Thanks @mattvirus,

i received fedback from WU and got one of the api keys, so now this works with the WU integration.
@sh00t2kill: nevertheless, good to know for someone else.

/ Ralf

For anyone else following htis thread — weewx is also a pretty good platform for collecting statistics and historical data.

Ive found WU to be pretty good at seeing where things are at right now, but not particularly great at the big picture – admittedly it might be a user problem!

#!/usr/bin/env python3

import requests
import json

session = requests.session()

session.headers.update({'User-Agent': 'Mozilla/5.0 (Windows NT 6.3; WOW64; rv:41.0) Gecko/20100101 Firefox/41.0'})
session.headers.update({'X-Requested-With': 'XMLHttpRequest'})

data = json.loads(session.get("https://app.weathercloud.net/device/values?code=<YOUR STATION ID>", timeout=1).text)

print(json.dumps(data, indent=4, sort_keys=True))
1 Like

I see the Ecowitt WH series weather stations (AKA FineOffset) like the WH2900 and probably WH2950 now have included in their new firmwares, what seems to be a generic server destination upload config screen, for using either WU protocol or Ecowitts own. They still have the other old config screens for entering WU, WOW or WeatherCloud site names & keys etc like before, this one is new.

I’m not sure if this means with the right database server running on HA, a home station could now upload to HA directly with no hacking or cloud stuff.
Does that below look like what this may mean, from WS View (Ecowitts weather station setup App) ?

1 Like

Just found out some more about the Ecowitt ( Fine Offest) wifi stations and the custom upload to private server.
It does do that now, gold mine of info here. Somebody has also got it to upload to PWSweather…
https://www.wxforum.net/index.php?topic=36932.25

I have never setup a custom database server on anything in my life, let alone on Linux on HA’s RPi, so the actual doing of this is going to have to wait for a smarter HA user than me :slight_smile:

1 Like

You can use the ecowitt to send data to a personal server, and then send that data to HomeAssistant via MQTT. There’s an existing project to do this for you: https://github.com/iz0qwm/ecowitt_http_gateway but it requires a lot of stuff to get working (PHP, Apache). It seems that something like weewx can also be useful in this regard, but again there’s some setup. Personally I wanted something super simple that just gets the request from the weather station, format’s it as MQTT and sends it to HA, so I wrote this: https://gitlab.com/gabeguz/ecowitt it’s a Go program that listens for HTTP connections from the ecowitt gateway, transforms them into MQTT messages that HomeAssistant can understand. It’s very much a work in progress and there’s 0 documentation so far, but it’s working to get my ecowitt sensor data into HA!

3 Likes

Hi,
How do I install GO on my ubuntu server where I run Hassio?..thanks.

You shouldn’t have to install go on the server, if you have go locally, you can compile a binary for the server and just upload the binary to the server.