Author Topic: Ecowitt.net API release  (Read 11927 times)

0 Members and 1 Guest are viewing this topic.

Offline mauro63

  • Forecaster
  • *****
  • Posts: 389
Ecowitt.net API release
« on: May 30, 2021, 03:42:34 AM »
Ecowitt is ready to release the API
in this final phase, and wanting to provide a satisfactory service for all needs, asks the users' opinion on the use they would like to make and which characteristics it should satisfy

for those who want to assist them in this process, send an email to my ecowitt address, each report will be forwarded directly to the Fine Offset technicians

supporto.it@ecowitt.com

please write in english

Thank you

EDIT

corrected mail address, sorry

Mauro
« Last Edit: May 30, 2021, 11:46:08 PM by galfert »

Offline wvdkuil

  • Wim van der kuil
  • Forecaster
  • *****
  • Posts: 1984
    • My PWS at Leuven Belgium Europe
Re: API release
« Reply #1 on: May 30, 2021, 05:30:51 AM »
Ecowitt is ready to release the API
in this final phase, and wanting to provide a satisfactory service for all needs, asks the users' opinion on the use they would like to make and which characteristics it should satisfy

for those who want to assist them in this process, send an email to my ecowitt address, each report will be forwarded directly to the Fine Offset technicians

supporto.it@ecowitt.com

please write in english

Thank you

EDIT

corrected mail address, sorry

Mauro

Question:  Which API
1. the local network one as used by the local weather-programs like MB, WD, WeeWX.
2. a network API for loading the weather-data from ecowitt.net similar to the Amibient.net API

Wim


Offline olicat

  • Forecaster
  • *****
  • Posts: 1511
  • GWxx00, HPx5x1C, WN1900C, WN1980C & WS3800C
    • FOSHKplugin
Re: API release
« Reply #2 on: May 30, 2021, 05:46:34 AM »
Hi Wim,

it is probably about the direct query of the data at ecowitt.net so definitely something that could be extremely interesting for PWSDashboard.

This is the basis for apps that can visualize weather data without direct contact with the local weather station.  Presumably the Ecowitt app will also be based on it.  Comparable to the Ambient Weather API - so there could be many different apps in the future that use this database.
A game changer.

Oliver

Offline olicat

  • Forecaster
  • *****
  • Posts: 1511
  • GWxx00, HPx5x1C, WN1900C, WN1980C & WS3800C
    • FOSHKplugin
Re: API release
« Reply #3 on: May 30, 2021, 06:22:55 AM »
Hi!

Just as an example, what is possible with it. A simple query (here via Python) of the current weather data for my station at Ecowitt.net results in:
Code: [Select]
{
   "code":0,
   "msg":"ok",
   "time":"1622364099",
   "data":{
      "indoor":{
         "temp":{
            "time":"1622364001",
            "unit":"ºF",
            "value":"73.6"
         },
         "humidity":{
            "time":"1622364001",
            "unit":"%",
            "value":"33"
         }
      },
      "pressure":{
         "baromrelin":{
            "time":"1622364001",
            "unit":"inHg",
            "value":"30.32"
         },
         "baromabsin":{
            "time":"1622364001",
            "unit":"inHg",
            "value":"30.17"
         }
      },
      "ch_temp_humidity2":{
         "temp":{
            "time":"1622364001",
            "unit":"ºF",
            "value":"71.6"
         },
         "humidity":{
            "time":"1622364001",
            "unit":"%",
            "value":"39"
         }
      },
      "ch_soil_temp_humidity1":{
         "soilmoisture":{
            "time":"1622364001",
            "unit":"%",
            "value":"37"
         }
      },
      "outdoor":{
         "temp":{
            "time":"1622364001",
            "unit":"ºF",
            "value":"64.6"
         },
         "humidity":{
            "time":"1622364001",
            "unit":"%",
            "value":"43"
         }
      },
      "wind":{
         "winddir":{
            "time":"1622364001",
            "unit":"º",
            "value":"213"
         },
         "windspeedmph":{
            "time":"1622364001",
            "unit":"mph",
            "value":"1.1"
         },
         "windgustmph":{
            "time":"1622364001",
            "unit":"mph",
            "value":"2.2"
         }
      },
      "so_uv":{
         "solarradiation":{
            "time":"1622364001",
            "unit":"w\/m^2",
            "value":"717.0"
         },
         "uv":{
            "time":"1622364001",
            "unit":"",
            "value":"5"
         }
      },
      "rain":{
         "rainratein":{
            "time":"1622364001",
            "unit":"in\/hr",
            "value":"0.00"
         },
         "eventrainin":{
            "time":"1622364001",
            "unit":"in",
            "value":"0.00"
         },
         "hourlyrainin":{
            "time":"1622364001",
            "unit":"in",
            "value":"0.00"
         },
         "dailyrainin":{
            "time":"1622364001",
            "unit":"in",
            "value":"0.00"
         },
         "weeklyrainin":{
            "time":"1622364001",
            "unit":"in",
            "value":"0.00"
         },
         "monthlyrainin":{
            "time":"1622364001",
            "unit":"in",
            "value":"2.86"
         },
         "yearlyrainin":{
            "time":"1622364001",
            "unit":"in",
            "value":"9.61"
         }
      },
      "ch_soil_temp_humidity2":{
         "soilmoisture":{
            "time":"1622364001",
            "unit":"%",
            "value":"31"
         }
      },
      "ch_temp_humidity3":{
         "temp":{
            "time":"1622364001",
            "unit":"ºF",
            "value":"72.1"
         },
         "humidity":{
            "time":"1622364001",
            "unit":"%",
            "value":"37"
         }
      },
      "ch_soil_temp_humidity3":{
         "soilmoisture":{
            "time":"1622364001",
            "unit":"%",
            "value":"38"
         }
      },
      "ch_soil_temp_humidity4":{
         "soilmoisture":{
            "time":"1622364001",
            "unit":"%",
            "value":"29"
         }
      },
      "ch_pm25_aqi1":{
         "pm25":{
            "time":"1622364001",
            "unit":"µg\/m3",
            "value":"4.8"
         },
         "real_time_aqi":{
            "time":"1622364001",
            "unit":"",
            "value":"20"
         },
         "pm25_avg_24h":{
            "time":"1622364001",
            "unit":"µg\/m3",
            "value":"7.0"
         }
      },
      "leak":{
         "status":{
            "time":"1622364001",
            "unit":"",
            "value":"0"
         }
      },
      "ch_soil_temp_humidity5":{
         "soilmoisture":{
            "time":"1622364001",
            "unit":"%",
            "value":"48"
         }
      },
      "ch_soil_temp_humidity6":{
         "soilmoisture":{
            "time":"1622364001",
            "unit":"%",
            "value":"71"
         }
      },
      "ch_soil_temp_humidity7":{
         "soilmoisture":{
            "time":"1622364001",
            "unit":"%",
            "value":"29"
         }
      },
      "ch_soil_temp_humidity8":{
         "soilmoisture":{
            "time":"1622364001",
            "unit":"%",
            "value":"29"
         }
      },
      "ch_temp_humidity1":{
         "temp":{
            "time":"1622364001",
            "unit":"ºF",
            "value":"61.9"
         },
         "humidity":{
            "time":"1622364001",
            "unit":"%",
            "value":"49"
         }
      },
      "ch_temp_humidity4":{
         "temp":{
            "time":"1622364001",
            "unit":"ºF",
            "value":"68.7"
         },
         "humidity":{
            "time":"1622364001",
            "unit":"%",
            "value":"35"
         }
      },
      "ch_temp_humidity8":{
         "temp":{
            "time":"1622364001",
            "unit":"ºF",
            "value":"72.3"
         }
      }
   }
}

So it is pure JSON which is very easy to process.

Oliver

Offline mauro63

  • Forecaster
  • *****
  • Posts: 389
Re: API release
« Reply #4 on: May 30, 2021, 08:23:14 AM »
Hi!

Just as an example, what is possible with it. A simple query (here via Python) of the current weather data for my station at Ecowitt.net results in:
Code: [Select]
{
   "code":0,
   "msg":"ok",
   "time":"1622364099",
   "data":{
      "indoor":{
         "temp":{
            "time":"1622364001",
            "unit":"ºF",
            "value":"73.6"
         },
         "humidity":{
            "time":"1622364001",
            "unit":"%",
            "value":"33"
         }
      },
      "pressure":{
         "baromrelin":{
            "time":"1622364001",
            "unit":"inHg",
            "value":"30.32"
         },
         "baromabsin":{
            "time":"1622364001",
            "unit":"inHg",
            "value":"30.17"
         }
      },
      "ch_temp_humidity2":{
         "temp":{
            "time":"1622364001",
            "unit":"ºF",
            "value":"71.6"
         },
         "humidity":{
            "time":"1622364001",
            "unit":"%",
            "value":"39"
         }
      },
      "ch_soil_temp_humidity1":{
         "soilmoisture":{
            "time":"1622364001",
            "unit":"%",
            "value":"37"
         }
      },
      "outdoor":{
         "temp":{
            "time":"1622364001",
            "unit":"ºF",
            "value":"64.6"
         },
         "humidity":{
            "time":"1622364001",
            "unit":"%",
            "value":"43"
         }
      },
      "wind":{
         "winddir":{
            "time":"1622364001",
            "unit":"º",
            "value":"213"
         },
         "windspeedmph":{
            "time":"1622364001",
            "unit":"mph",
            "value":"1.1"
         },
         "windgustmph":{
            "time":"1622364001",
            "unit":"mph",
            "value":"2.2"
         }
      },
      "so_uv":{
         "solarradiation":{
            "time":"1622364001",
            "unit":"w\/m^2",
            "value":"717.0"
         },
         "uv":{
            "time":"1622364001",
            "unit":"",
            "value":"5"
         }
      },
      "rain":{
         "rainratein":{
            "time":"1622364001",
            "unit":"in\/hr",
            "value":"0.00"
         },
         "eventrainin":{
            "time":"1622364001",
            "unit":"in",
            "value":"0.00"
         },
         "hourlyrainin":{
            "time":"1622364001",
            "unit":"in",
            "value":"0.00"
         },
         "dailyrainin":{
            "time":"1622364001",
            "unit":"in",
            "value":"0.00"
         },
         "weeklyrainin":{
            "time":"1622364001",
            "unit":"in",
            "value":"0.00"
         },
         "monthlyrainin":{
            "time":"1622364001",
            "unit":"in",
            "value":"2.86"
         },
         "yearlyrainin":{
            "time":"1622364001",
            "unit":"in",
            "value":"9.61"
         }
      },
      "ch_soil_temp_humidity2":{
         "soilmoisture":{
            "time":"1622364001",
            "unit":"%",
            "value":"31"
         }
      },
      "ch_temp_humidity3":{
         "temp":{
            "time":"1622364001",
            "unit":"ºF",
            "value":"72.1"
         },
         "humidity":{
            "time":"1622364001",
            "unit":"%",
            "value":"37"
         }
      },
      "ch_soil_temp_humidity3":{
         "soilmoisture":{
            "time":"1622364001",
            "unit":"%",
            "value":"38"
         }
      },
      "ch_soil_temp_humidity4":{
         "soilmoisture":{
            "time":"1622364001",
            "unit":"%",
            "value":"29"
         }
      },
      "ch_pm25_aqi1":{
         "pm25":{
            "time":"1622364001",
            "unit":"µg\/m3",
            "value":"4.8"
         },
         "real_time_aqi":{
            "time":"1622364001",
            "unit":"",
            "value":"20"
         },
         "pm25_avg_24h":{
            "time":"1622364001",
            "unit":"µg\/m3",
            "value":"7.0"
         }
      },
      "leak":{
         "status":{
            "time":"1622364001",
            "unit":"",
            "value":"0"
         }
      },
      "ch_soil_temp_humidity5":{
         "soilmoisture":{
            "time":"1622364001",
            "unit":"%",
            "value":"48"
         }
      },
      "ch_soil_temp_humidity6":{
         "soilmoisture":{
            "time":"1622364001",
            "unit":"%",
            "value":"71"
         }
      },
      "ch_soil_temp_humidity7":{
         "soilmoisture":{
            "time":"1622364001",
            "unit":"%",
            "value":"29"
         }
      },
      "ch_soil_temp_humidity8":{
         "soilmoisture":{
            "time":"1622364001",
            "unit":"%",
            "value":"29"
         }
      },
      "ch_temp_humidity1":{
         "temp":{
            "time":"1622364001",
            "unit":"ºF",
            "value":"61.9"
         },
         "humidity":{
            "time":"1622364001",
            "unit":"%",
            "value":"49"
         }
      },
      "ch_temp_humidity4":{
         "temp":{
            "time":"1622364001",
            "unit":"ºF",
            "value":"68.7"
         },
         "humidity":{
            "time":"1622364001",
            "unit":"%",
            "value":"35"
         }
      },
      "ch_temp_humidity8":{
         "temp":{
            "time":"1622364001",
            "unit":"ºF",
            "value":"72.3"
         }
      }
   }
}

So it is pure JSON which is very easy to process.

Oliver

thanks, Oliver for your support ;)
thanks also to the users that have sent first opinions, I will forward any advice and I will update this post constantly

Mauro

Offline broadstairs

  • Forecaster
  • *****
  • Posts: 847
Re: API release
« Reply #5 on: May 30, 2021, 09:12:57 AM »
Question:  Which API
1. the local network one as used by the local weather-programs like MB, WD, WeeWX.
2. a network API for loading the weather-data from ecowitt.net similar to the Amibient.net API

Unless I am missing something I don't see a direct answer to Wim's question?

Stuart
Ecowitt GW1003 with ultrasonic wind gauge, lightning sensor and PM2.5 sensor with Personal Weather Tablet as a console.

Offline zoomx

  • Senior Contributor
  • ****
  • Posts: 185
Re: API release
« Reply #6 on: May 30, 2021, 04:07:22 PM »

Question:  Which API
1. the local network one as used by the local weather-programs like MB, WD, WeeWX.
2. a network API for loading the weather-data from ecowitt.net similar to the Amibient.net API

Wim
API on LAN are used since about 2 years by CumulusMX and others programs or app.
I believe that Mauro  is talking about option 2

Offline mauro63

  • Forecaster
  • *****
  • Posts: 389
Re: API release
« Reply #7 on: May 30, 2021, 04:10:42 PM »

Question:  Which API
1. the local network one as used by the local weather-programs like MB, WD, WeeWX.
2. a network API for loading the weather-data from ecowitt.net similar to the Amibient.net API

Wim
API on LAN are used since about 2 years by CumulusMX and others programs or app.
I believe that Mauro  is talking about option 2

Sorry for the delay,
I can confirm, and thanks to @zoomx

Mauro

Offline galfert

  • Global Moderator
  • Forecaster
  • *****
  • Posts: 6822
Re: Ecowitt.net API release
« Reply #8 on: May 30, 2021, 11:46:43 PM »
Thread subject title changed for clarity.
Ecowitt GW1000 | Meteobridge on Raspberry Pi
WU: KFLWINTE111  |  PWSweather: KFLWINTE111
CWOP: FW3708  |  AWEKAS: 14814
Windy: pws-f075acbe
Weather Underground Issue Tracking
Tele-Pole

Offline Autofill

  • Senior Contributor
  • ****
  • Posts: 290
Re: Ecowitt.net API release
« Reply #9 on: May 31, 2021, 11:54:33 AM »
hi, new to this.

Would this allow me to say use a Raspberry Pi to access data logged by my weather station, for example?

For example, if I have a script for a separate system that needs access to say outdoor temperature and soil moisture amount, can I now access this data using the new API release on Ecowitt.net?

thanks
Ecowitt WH2320-E
Ecowitt HP2551-C (SOLD - replaced with Home Assistant Fully Kiosk FireTab HD10)
Ecowitt GW1000
Ecowitt GW1100
Ecowitt WH69E
Ecowitt WH32B
Ecowitt WH57 (x3)
Ecowitt WH51 (x6)
Ecowitt WH41
Ecowitt WH41 (Honeywell-based USB/Supercap modified)
Ecowitt WH31 (x8)
Ecowitt WH55 (x4)
Ecowitt WH45
Ecowitt WN34S (x2)
Ecowitt WN35
Ecowitt Wittboy running on 12VDC  solar power

Offline olicat

  • Forecaster
  • *****
  • Posts: 1511
  • GWxx00, HPx5x1C, WN1900C, WN1980C & WS3800C
    • FOSHKplugin
Re: Ecowitt.net API release
« Reply #10 on: May 31, 2021, 12:28:10 PM »
Hi!

Quote
Would this allow me to say use a Raspberry Pi to access data logged by my weather station, for example?
Yes, if you are a software developer you can do that.

However, you have to be aware that the data must be stored at ecowitt.net - local access is not possible.
Your station sends the data to ecowitt.net and there the data is then available for query via API. This data can then be called up from the Internet via a defined API interface.

The advantage of this solution is that you don't have to worry about data storage or accessibility across network boundaries.
The disadvantage is that this data is not available locally and you are dependent on a (actually two - for uploading as well as downloading) internet connection(s) and the cloud provider (in this case Ecowitt). In addition, of course, your query program itself must still work.

FOSHKplugin, for example, is a local solution - the data is available locally in your network and can be easily accessed via http (e.g. curl) also individually for each sensor.
For me it looks like this:
Code: [Select]
#!/bin/bash
tempf=`curl -s http://192.168.15.236:8080/getvalue?key=tempf`
tempc=`curl -s http://192.168.15.236:8080/getvalue?key=tempc`
echo current temp in °F: $tempf
echo current temp in °C: $tempc
output:
Code: [Select]
current temp in °F: 70.3
current temp in °C: 21.3
Since the data is not generally available on the Internet with a local solution, you have to take care of the accessibility of the services yourself - for example via VPN.

Apart from that, I think the query option at Ecowitt via API is really very useful and I'm looking forward to it.
It expands the possibilities ...

Regards, Oliver

Offline mauro63

  • Forecaster
  • *****
  • Posts: 389
Re: Ecowitt.net API release
« Reply #11 on: June 01, 2021, 09:02:39 AM »
There will be further news shortly, in addition to this topic, some of a software nature, others purely hardware that I will list gradually

In the meantime I would like to give a big thanks to all user that are cooperating about API, every mail is forwarded to Fine Offset technicians staff not in real-time but near to it

The next step will be a dedicated web page for the management and complete configuration of the gw1000

On the hardware side, we will soon have an updated version of the ws80 which "should" have definitively solved the operating problems in case of heavy rain and wind.

Other things, even more, interesting in order to improve the quality of the detections are still under development and I'm not authorized to give more info

we are working to reduce this

 [ You are not allowed to view attachments ]


Mauro
« Last Edit: June 01, 2021, 09:06:48 AM by mauro63 »

Offline broadstairs

  • Forecaster
  • *****
  • Posts: 847
Re: Ecowitt.net API release
« Reply #12 on: June 01, 2021, 09:08:39 AM »
On the hardware side, we will soon have an updated version of the ws80 which "should" have definitively solved the operating problems in case of heavy rain and wind.

Very interested in that especially as mine is only about 2 months old and I did not know about the issue prior to purchase. Is this a physical change or f/w?. To be honest I've not seen the issue but we have not had any huge rains storms either.

Stuart
Ecowitt GW1003 with ultrasonic wind gauge, lightning sensor and PM2.5 sensor with Personal Weather Tablet as a console.

Offline mauro63

  • Forecaster
  • *****
  • Posts: 389
Re: Ecowitt.net API release
« Reply #13 on: June 01, 2021, 09:22:30 AM »
On the hardware side, we will soon have an updated version of the ws80 which "should" have definitively solved the operating problems in case of heavy rain and wind.

Very interested in that especially as mine is only about 2 months old and I did not know about the issue prior to purchase. Is this a physical change or f/w?. To be honest I've not seen the issue but we have not had any huge rains storms either.

Stuart

Well, Stuart,

I try to explain but you need to be patient, my English is horrible :(

Every ultrasonic wind sensor has this problem, due to water drops on the sensor or on field of action of the transducers

what's happening is a wrong estimation of air density and, consequentially, false peak max wind error and, sometimes, wrong direction

Could be possible to use a software correction but is a very hard way and needs a very sophisticated one.

The most practical way is to reduce the situations where the problem can happen, and this is a hardware solution

Not necessarily every user has this kind of problem, fortunately

Mauro

Offline broadstairs

  • Forecaster
  • *****
  • Posts: 847
Re: Ecowitt.net API release
« Reply #14 on: June 01, 2021, 10:58:00 AM »
Mauro thanks for the update, I am quite happy to wait and see but will be interested in seeing what if any update opportunities there might be.

Stuart
Ecowitt GW1003 with ultrasonic wind gauge, lightning sensor and PM2.5 sensor with Personal Weather Tablet as a console.

Offline Autofill

  • Senior Contributor
  • ****
  • Posts: 290
Re: Ecowitt.net API release
« Reply #15 on: June 07, 2021, 12:29:48 PM »
Hi,

I have a couple of questions here with regards to accessing data from my Ecowitt system of sensors, and appolofize if this was already answered.

1. Could somebody share with me the JSON format of the request to obtain the data via the cloud?

2. In the event for local storage, could someone share with my all the variables available? not just temperature and humidity, for example, rain amount and soil wetness, wind speed, wind avg etc. in addition to what is being called for below:


Code: [Select]
#!/bin/bash
tempf=`curl -s http://192.168.15.236:8080/getvalue?key=tempf`
tempc=`curl -s http://192.168.15.236:8080/getvalue?key=tempc`
echo current temp in °F: $tempf
echo current temp in °C: $tempc

thanks!
Ecowitt WH2320-E
Ecowitt HP2551-C (SOLD - replaced with Home Assistant Fully Kiosk FireTab HD10)
Ecowitt GW1000
Ecowitt GW1100
Ecowitt WH69E
Ecowitt WH32B
Ecowitt WH57 (x3)
Ecowitt WH51 (x6)
Ecowitt WH41
Ecowitt WH41 (Honeywell-based USB/Supercap modified)
Ecowitt WH31 (x8)
Ecowitt WH55 (x4)
Ecowitt WH45
Ecowitt WN34S (x2)
Ecowitt WN35
Ecowitt Wittboy running on 12VDC  solar power

Offline olicat

  • Forecaster
  • *****
  • Posts: 1511
  • GWxx00, HPx5x1C, WN1900C, WN1980C & WS3800C
    • FOSHKplugin
Re: Ecowitt.net API release
« Reply #16 on: June 07, 2021, 01:56:24 PM »
Hi!

Quote
2. In the event for local storage, could someone share with my all the variables available? not just temperature and humidity, for example, rain amount and soil wetness, wind speed, wind avg etc. in addition to what is being called for below:
I'm just noticing that it was probably not a good idea to add FOSHKplugin as an API alternative here in this thread, when it is supposed to be about the API solution.
Sorry!
Therefore, we should better discuss your 2nd question in the FOSHKplugin thread. Just this much: this is an API-independent solution that requires neither a cloud service nor an internet connection.
For this, however, FOSHKplugin is required on a 24/7 Linux computer.

Quote
1. Could somebody share with me the JSON format of the request to obtain the data via the cloud?
I do not know whether one should/may give examples of this now, when the API has actually not yet been released.
But an example of the data that you get via API query is probably allowed:
Code: [Select]
{
   "code":0,
   "msg":"ok",
   "time":"1623087745",
   "data":{
      "indoor":{
         "temp":{
            "time":"1623087694",
            "unit":"ºF",
            "value":"78.6"
         },
         "humidity":{
            "time":"1623087694",
            "unit":"%",
            "value":"43"
         }
      },
      "pressure":{
         "baromrelin":{
            "time":"1623087694",
            "unit":"inHg",
            "value":"30.08"
         },
         "baromabsin":{
            "time":"1623087694",
            "unit":"inHg",
            "value":"29.93"
         }
      },
      "ch_temp_humidity2":{
         "temp":{
            "time":"1623087694",
            "unit":"ºF",
            "value":"75.6"
         },
         "humidity":{
            "time":"1623087694",
            "unit":"%",
            "value":"46"
         }
      },
      "ch_soil_temp_humidity1":{
         "soilmoisture":{
            "time":"1623087510",
            "unit":"%",
            "value":"37"
         }
      },
      "outdoor":{
         "temp":{
            "time":"1623087694",
            "unit":"ºF",
            "value":"77.0"
         },
         "humidity":{
            "time":"1623087694",
            "unit":"%",
            "value":"32"
         }
      },
      "wind":{
         "winddir":{
            "time":"1623087694",
            "unit":"º",
            "value":"315"
         },
         "windspeedmph":{
            "time":"1623087694",
            "unit":"mph",
            "value":"1.3"
         },
         "windgustmph":{
            "time":"1623087694",
            "unit":"mph",
            "value":"3.4"
         }
      },
      "so_uv":{
         "solarradiation":{
            "time":"1623087694",
            "unit":"w\/m^2",
            "value":"33.4"
         },
         "uv":{
            "time":"1623087694",
            "unit":"",
            "value":"0"
         }
      },
      "rain":{
         "rainratein":{
            "time":"1623087694",
            "unit":"in\/hr",
            "value":"0.00"
         },
         "eventrainin":{
            "time":"1623087694",
            "unit":"in",
            "value":"0.00"
         },
         "hourlyrainin":{
            "time":"1623087694",
            "unit":"in",
            "value":"0.00"
         },
         "dailyrainin":{
            "time":"1623087694",
            "unit":"in",
            "value":"0.00"
         },
         "weeklyrainin":{
            "time":"1623087694",
            "unit":"in",
            "value":"0.00"
         },
         "monthlyrainin":{
            "time":"1623087694",
            "unit":"in",
            "value":"0.01"
         },
         "yearlyrainin":{
            "time":"1623087694",
            "unit":"in",
            "value":"9.63"
         }
      },
      "ch_soil_temp_humidity2":{
         "soilmoisture":{
            "time":"1623087694",
            "unit":"%",
            "value":"38"
         }
      },
      "ch_temp_humidity3":{
         "temp":{
            "time":"1623087694",
            "unit":"ºF",
            "value":"77.0"
         },
         "humidity":{
            "time":"1623087694",
            "unit":"%",
            "value":"45"
         }
      },
      "ch_soil_temp_humidity3":{
         "soilmoisture":{
            "time":"1623087694",
            "unit":"%",
            "value":"33"
         }
      },
      "ch_soil_temp_humidity4":{
         "soilmoisture":{
            "time":"1623087694",
            "unit":"%",
            "value":"33"
         }
      },
      "ch_pm25_aqi1":{
         "pm25":{
            "time":"1623087694",
            "unit":"µg\/m3",
            "value":"2.8"
         },
         "real_time_aqi":{
            "time":"1623087694",
            "unit":"",
            "value":"12"
         },
         "pm25_avg_24h":{
            "time":"1623087694",
            "unit":"µg\/m3",
            "value":"4.7"
         }
      },
      "leak":{
         "status":{
            "time":"1623087694",
            "unit":"",
            "value":"0"
         }
      },
      "ch_soil_temp_humidity5":{
         "soilmoisture":{
            "time":"1623087694",
            "unit":"%",
            "value":"40"
         }
      },
      "ch_soil_temp_humidity6":{
         "soilmoisture":{
            "time":"1623087694",
            "unit":"%",
            "value":"68"
         }
      },
      "ch_soil_temp_humidity7":{
         "soilmoisture":{
            "time":"1623087694",
            "unit":"%",
            "value":"28"
         }
      },
      "ch_soil_temp_humidity8":{
         "soilmoisture":{
            "time":"1623087694",
            "unit":"%",
            "value":"27"
         }
      },
      "ch_temp_humidity1":{
         "temp":{
            "time":"1623087694",
            "unit":"ºF",
            "value":"78.6"
         },
         "humidity":{
            "time":"1623087694",
            "unit":"%",
            "value":"32"
         }
      },
      "ch_temp_humidity4":{
         "temp":{
            "time":"1623087694",
            "unit":"ºF",
            "value":"77.2"
         },
         "humidity":{
            "time":"1623087694",
            "unit":"%",
            "value":"29"
         }
      },
      "ch_temp_humidity8":{
         "temp":{
            "time":"1623087694",
            "unit":"ºF",
            "value":"77.0"
         }
      }
   }
}
Otherwise, the actual query is not difficult.
Only the one-time registration as a developer in order to receive an AppID and an openID is time-consuming.
The rest is straightforward:
request access token (this is only valid for a very short time)
http-GET-request with accessToken and openID to the Ecowitt-Cloud
Result: a set of data as above

Regards, Oliver

Offline olicat

  • Forecaster
  • *****
  • Posts: 1511
  • GWxx00, HPx5x1C, WN1900C, WN1980C & WS3800C
    • FOSHKplugin
Re: Ecowitt.net API release
« Reply #17 on: June 19, 2021, 01:49:05 AM »
Hi Mauro,

Ecowitt is ready to release the API

any news regarding this?
The old documentation website can no longer be reached, but the new one is not yet active.
One of my API tests (devicedata/history) has now returned a different error message - apparently it is being worked on:
Quote
[2] ErrorException in StatisticData.php line 99
array_merge(): Expected parameter 1 to be an array, null given

So far, I have not received any confirmations or questions about my information or advice.

Regards, Oliver

Offline olicat

  • Forecaster
  • *****
  • Posts: 1511
  • GWxx00, HPx5x1C, WN1900C, WN1980C & WS3800C
    • FOSHKplugin
Re: Ecowitt.net API release
« Reply #18 on: July 29, 2021, 08:19:09 AM »
Hi Mauro,

Ecowitt is ready to release the API
any news?
It has now been 2 months since this announcement. The API homepage can no longer be reached. The same goes for the original API description in Chinese.
I don't want to push, but I would like a sign from time to time that will continue to be worked on. Or some feedback to my suggestions.
Thanks!

Oliver

Offline Mandrake

  • Forecaster
  • *****
  • Posts: 1102
Re: Ecowitt.net API release
« Reply #19 on: July 29, 2021, 08:30:06 AM »
Sorry thought folks were aware. This is now publicly available from the support website
https://osswww.ecowitt.net/uploads/20210716/WN1900%20GW1000,1100%20WH2680,2650%20telenet%20v1.6.0%20.pdf

It does not seem to have been updated lately though.
G1ZFO

Ecowitt HP2551A + WH65 Tri-Wing (Wunderground: IGUILDFO67)
Ecowitt GW1000 (Wunderground: IGUILDFO68)
Ecowitt GW1000 (Mk2) test environment driving CumulusMX on a RPi 3b
Ecowitt GW2000 (Test)
Ecowitt WS90 Wittboy - Test
Ecowitt WH51 (x6) Soil Moisture Sensor
Ecowitt WH41 PM2.5 AQM Sensor
Ecowitt WH31 (x8) Thermo/Hygro Sensor
Ecowitt WS80 Ultrasonic Anemometer (pre-prod test)
Ecowitt WH57 Lightning Sensor -test
Ecowitt WH32-EP (SHT35) + Davis 7714 Screen
Ecowitt WH45 CO2/PM2.5/PM10 -Test
Ecowitt WN34 Soil Temp Sensor -Test
Ecowitt WN34 Water Temp Sensor -Test
Ecowitt WN35 Leaf Moisture

Offline olicat

  • Forecaster
  • *****
  • Posts: 1511
  • GWxx00, HPx5x1C, WN1900C, WN1980C & WS3800C
    • FOSHKplugin
Re: Ecowitt.net API release
« Reply #20 on: July 29, 2021, 09:29:06 AM »
Hi!

I meant the network/ecowitt.net API. Something to access the data sent to ecowitt.net (like the Ambient Weather-API).
The file you are referring to ist the local API for the GW1000 and other realtime stations.
But in fact it's nice they released this finally for the public.

Oliver


Offline Gyvate

  • Forecaster
  • *****
  • Posts: 3263
Re: Ecowitt.net API release
« Reply #21 on: July 29, 2021, 12:04:53 PM »
Sorry thought folks were aware. This is now publicly available from the support website
https://osswww.ecowitt.net/uploads/20210716/WN1900%20GW1000,1100%20WH2680,2650%20telenet%20v1.6.0%20.pdf

It does not seem to have been updated lately though.
As far I can see, it doesn't need to be updated.
All available (and still to be released but already announced) sensors are contained.
And all communication commands for the GW1000 API as well.
It's of course sort of "bare". It implies that the reader/user has already quite some understanding of what is going on ....
It's not a full-fledged documentation with explanations.
WS2350 1.6.6, GW1000(3) 1.7.7,WH2650 WiFi (2) 1.7.7 (test/backup), GW1100 2.3.1, GW2000(3) 3.1.1, HP2551 1.9.3,5.1.5;HP3500 1.7.2,WS3800 1.2.8, WN1910 1.2.3,WN1980 1.2.3;
Ecowitt WS90(2)1.3.5/1.4.0, WS80(2)1.2.5, WS68, WS69, WH40, WH31, WH31-EP, WN30, WN34L, WN35, WH32, WH32-EP, WH32B, WH57 [Lightning], WH41 [PM2.5], WH51, WH45, WH55
MeteobridgePro(2)[test,prod] 5.8 Mar 01 2024, 15185 - Blake-Larsen Sun Recorder - RPi4/weewx 4.8.0/4.10.2/CumulusMX 3282/Meteobridge RPi4B-2GB(3169)
Barani Meteoshield Pro, MetSpec Rad02 - Ecowitt 5763,34418;WU ISAARB3(WH4000SE),ISAARB22(HP2553), http://meshka.eu

Offline Rover1822

  • Forecaster
  • *****
  • Posts: 1974
    • Mini Wind and Solar Data project
Re: Ecowitt.net API release
« Reply #22 on: July 29, 2021, 12:24:16 PM »
I think what Oliver is looking for is the web API off of Ecowitt.net, as he stated. Like the one from AmbientWeather.net. From which to access what you want, you issue a http request to the website and the response has your data (being simplistic).

The API document described is to access a GW1000 or similar directly, without the web route, it is direct to the device, addressed locally, typically. (This is also something that we have said repeatedly is not available unless you jump through some hoops with F/O)

And yes, I agree, it is nice to publish this document. It also takes a level of knowledge and a the skill set to understand it and use it, which is probably a good thing.




Ambient:
  WS-2000
  PM 2.5(2)
  WH31B(2)
  WH40E
  WH31P
EcoWitt:
  GW1100
  GW1000(4)
  WH31(2)
  WH57
  WH51(12),
  WH40
  WH5360B
  WN34S
  WittBoy WS90 + GW2000
  WS90 (other one) + GW1100
Personal Sites: Weather Cam

Offline olicat

  • Forecaster
  • *****
  • Posts: 1511
  • GWxx00, HPx5x1C, WN1900C, WN1980C & WS3800C
    • FOSHKplugin
Re: Ecowitt.net API release
« Reply #23 on: July 29, 2021, 12:29:35 PM »
Hi!

Quote
It's not a full-fledged documentation with explanations.
The document is aimed at developers - so knowledge of TCP connections and socket handling is simply expected.
But a few examples or more detailed explanations would be helpful, yes.
Fortunately, there are a few applications that already use these functions and where you can tweak ...
But back to the actual topic - the ecowitt.net API.

Regards, Oliver

Offline mcrossley

  • Forecaster
  • *****
  • Posts: 1128
    • Wilmslow Astro
Re: Ecowitt.net API release
« Reply #24 on: July 29, 2021, 12:38:15 PM »
Last time I asked (a week or two ago) they said the network upload API would be released "in August".
Mark

 

anything