Author Topic: posting to Ecowitt.net  (Read 2096 times)

0 Members and 1 Guest are viewing this topic.

Offline watsonm

  • Member
  • *
  • Posts: 38
posting to Ecowitt.net
« on: October 24, 2022, 12:05:57 PM »
I wanted to know if anyone has posted their weather data to Ecowitt.net from their own python code.

I don't have an Ecowitt GWxxxx hub or whatever to transmit the data to ECOWITT  but I run a python program that collects all the data from my various sensors most of which are Fine Offset/ Ecowitt based products... WH0291, WH0x080, WH31L, WH51.  I package the data up and send it on to CumulusMX in the Ecowitt format and CumulusMX sends it on to Weather Underground, Windy.com, PWS Weather etc.   

I would like to send it on to Ecowitt.net if possible but after lots of "Googling" cannot find the parameters I need.  I see from the Ecowitt.net website that I need to use a MAC address of the sending device ... So:

1) Is it allowed or must the MAC address be associated with an offcial Ecowitt hub product?
2) If it is allowed does anyone know where I can find the posting address to send it to. (Has anyone "sniffed" the data stream to get this data?)

If it is not allowed then fine but just wanted another bit to add to my project....

Thanks for any pointers...   Mike

« Last Edit: October 24, 2022, 01:09:53 PM by watsonm »
Regards Mike

Raspberry Pi 4
Directly connected : BMP388 pressure sensor.  DHT22 For internal Humidity Sensor temp
Wireless connected: 3 Temperature Transmitters(WS2083), WH57  Lightning Sensor, Fine Offset Solar sensor  (stand alone)

Offline BoDuke

  • Global Moderator
  • Contributor
  • *****
  • Posts: 132
  • Ambient Weather, Ecowitt, WeeWX, Custom PHP
Re: posting to Ecowitt.net
« Reply #1 on: October 24, 2022, 03:38:46 PM »
Hi Mike,

I have not done it, but it is certainly possible to post your own weather data to ecowitt.net.  As you guessed, a valid MAC address of an Ecowitt gateway (GW1100, GW2000, or console) is required to publish the data.  The GW1100 can sometimes be purchased on sale for a very reasonable price.  I think I've seen it as low as 23 USD.  So you could consider that your license fee for the service.  Having one could provide data redundancy or just provide the diagnostic ability to sniff the traffic so you could verify the correct submission.

FOSHKplugin is a Python app that can convert and submit data between different services in a similar way as you are looking to accomplish.

I'm sure the data format and URL to POST the data to can be found in FOSHKplugin.  Oliver (a.k.a. Olicat) is the genius who wrote that app.

Others here can probably provide more info and suggestions, too.

Offline davidefa

  • Forecaster
  • *****
  • Posts: 436
Re: posting to Ecowitt.net
« Reply #2 on: October 24, 2022, 04:10:17 PM »
Yes you can post your data to ecowitt.net ( see: https://www.wxforum.net/index.php?topic=44470.msg452363#msg452363 )

This is an example of data posted by my gw1000:

PASSKEY=FC0C1066F05BEDFFC0XXXXXXXXXXXXXX&stationtype=GW1000A_V1.6.8&dateutc=2022-10-05+13:04:37&tempinf=78.8&humidityin=56&baromrelin=30.333&baromabsin=30.333&tempf=72.0&humidity=68&winddir=89&windspeedmph=4.92&windgustmph=8.05&maxdailygust=8.05&solarradiation=295.32&uv=2&rainratein=0.000&eventrainin=0.000&hourlyrainin=0.000&dailyrainin=0.000&weeklyrainin=0.000&monthlyrainin=0.000&yearlyrainin=0.012&totalrainin=0.012&soilmoisture4=0&lightning_time=&lightning_num=0&lightning=&wh65batt=0&soilbatt4=1.3&wh57batt=5&freq=868M&model=GW1000_Pro

Offline watsonm

  • Member
  • *
  • Posts: 38
Re: posting to Ecowitt.net
« Reply #3 on: October 27, 2022, 12:00:58 PM »
Thanks guys,

I did eventually get it to work before I saw your posts , however their service dept eventually replied :

The upload algorithm is not open, and also we will upgrade the server encryption to protect the data integrity from time to time.
So it is not recommended trying with a software that to simulate the data publishing this way.
The server checks other parameters as well and this part of the info is and will not open to customers like you.
So there will be no further support from our side. Hope you understand.


This may have been due to my series of questions.  I issued a call much like davids'  two days ago and while it was received ok the response was

"errcode":"41001","errmsg":"passkey missing"

This stopped me for a bit while I waited for a reply (and tried with uppercase/lowercase/change positon of passkey and adding ? or & , rechecking the MD5 encoding of the passkey....)  but then the data did actually appear on the website!!  :roll:
Most of my sensors are FO or Ecowitt so I don't feel I am doing anything wrong.
« Last Edit: October 27, 2022, 03:42:56 PM by watsonm »
Regards Mike

Raspberry Pi 4
Directly connected : BMP388 pressure sensor.  DHT22 For internal Humidity Sensor temp
Wireless connected: 3 Temperature Transmitters(WS2083), WH57  Lightning Sensor, Fine Offset Solar sensor  (stand alone)

Offline watsonm

  • Member
  • *
  • Posts: 38
Re: posting to Ecowitt.net
« Reply #4 on: October 29, 2022, 05:54:36 AM »
Hi,

Eventually got the lightning api sorted to add to the ECOWITT call.  (didn't see it in Davidefa's  call to start off with... ](*,)   )

Had not realized the Lightning time was seconds since Jan 1 1970!!  Forunately I had saved both epoch time and "Normal time" in my lightning database.

Also note the api tags are different to the parameter abbreviations in the link  .. (Thanks Davidefa )

https://ambientweather.com/faqs/question/view/id/1857/

Quote
    '&lightning_time=' + str(epoch_time)  + '&lightning=' + str(dist)  + '&lightning_num='+ str(strikes_today)  + \


Thanks for the pointers...  Mike
Regards Mike

Raspberry Pi 4
Directly connected : BMP388 pressure sensor.  DHT22 For internal Humidity Sensor temp
Wireless connected: 3 Temperature Transmitters(WS2083), WH57  Lightning Sensor, Fine Offset Solar sensor  (stand alone)

 

anything