Author Topic: how to post PM25 data to ecowitt.net (solved myself)  (Read 275 times)

0 Members and 1 Guest are viewing this topic.

Offline menno

  • Member
  • *
  • Posts: 4
how to post PM25 data to ecowitt.net (solved myself)
« on: January 13, 2023, 06:59:35 AM »
Hi all

!!! SEE UPDATE BELOW !!!!

i made my own PM25 meter and works well and I want to upload these values to ecowitt.net dashboard.

i allready captured my url to ecowit.net
see
PASSKEY=XXXXXXXXXXXXXXXXXXXXXX&stationtype=EasyWeatherV1.6.4&dateutc=2023-01-09+07:13:21&tempinf=67.5&humidityin=50&baromrelin=29.256&baromabsin=29.256&tempf=42.8&humidity=96&winddir=166&winddir_avg10m=169&windspeedmph=4.0&windspdmph_avg10m=3.6&windgustmph=4.3&maxdailygust=5.8&solarradiation=0.00&uv=0&lightning_num=0&lightning_time=&lightning=&rrain_piezo=0.000&erain_piezo=0.000&hrain_piezo=0.000&drain_piezo=0.055&wrain_piezo=0.055&mrain_piezo=0.232&yrain_piezo=0.232&ws90cap_volt=5.1&ws90_ver=126&gain10_piezo=0.59&gain20_piezo=0.59&gain30_piezo=0.59&gain40_piezo=0.59&gain50_piezo=0.59&rfdata=[[1673248401,"900031570000A489CC6012A613003FFF5073D6003B33101694C90D05027EEF85"]]&wh25batt=0&wh57batt=5&wh90batt=3.28&freq=868M&model=HP2551AE_Pro_V1.8.7

does anybody has an example how to push the PM25 data to ecowitt.net dashboard ??
i allready tried with the curl command like :

curl -d "PASSKEY=XXXXXXXXXXXXXXXXXXXXXX&stationtype=EasyWeatherV1.6.4&dateutc=2023-01-09+07:13:21&pm25_ch1=1.90&pm25_avg_24h_ch1=1&model=  ........  " -X POST http://rtpdate.ecowitt.net/data/report/

but this didn't work for me

i hope someone can help me out here
many thanks in advance
menno


!! UPDATE !!
i've got it ! The correct curl command is :
curl -d "PASSKEY=XXXXXXXXXXXXXXXXXXXX&stationtype=EasyWeatherV1.6.4&dateutc=$datumtijd&pm25_ch1=$pmwaarde&pm25batt1=5&freq=868M&model=HP2551AE_Pro_V1.8.7" -X POST http://rtpdate.ecowitt.net/data/report/

script variable used here...
where $datumtijd is the current date + time , like : 2023-01-13+16:16:47
and $pmwaarde is the current PM25 value  , like : 2

« Last Edit: January 13, 2023, 11:18:14 AM by menno »
currently own :
ecowitt HP2551
ecowitt WS90
ecowitt WH32A
ecowitt WH32A -> modified to WH31
ecowitt WH57

Offline Rover1822

  • Forecaster
  • *****
  • Posts: 2017
    • Mini Wind and Solar Data project
Re: how to post PM25 data to ecowitt.net (solved myself)
« Reply #1 on: January 13, 2023, 02:15:11 PM »
Although, I think this is a neat achievement, I am a little troubled by you using a non Ecowitt/Fine Offset sensor to post data. The Ecowitt.net site is restricted to those with Ecowitt/F/O hardware and sensors. Depending on whether you are making your Ecowitt site private or public, a lot of us, will check out another site's values for a comparison. There is a consistency that comes from knowing that the person posting the data is using the same hardware. So essentially, you are posting your data as though you had the Ecowitt air quality sensor, but you don't.

For that reason, I can't , IMHO, approve of this tactic



« Last Edit: January 13, 2023, 02:21:06 PM by Rover1822 »
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 menno

  • Member
  • *
  • Posts: 4
Re: how to post PM25 data to ecowitt.net (solved myself)
« Reply #2 on: January 13, 2023, 02:36:01 PM »
For your information ...

-this info is private so only for my own interest.
-i am waiting for my WH41 ecowitt shop order , that will replace this "option"

greetings
m
« Last Edit: January 13, 2023, 02:37:49 PM by menno »
currently own :
ecowitt HP2551
ecowitt WS90
ecowitt WH32A
ecowitt WH32A -> modified to WH31
ecowitt WH57