Submitting data via curl - no data on madavi.de shown

Hallo,

I’m trying as described here APIs · opendata-stuttgart/meta Wiki · GitHub to send data to https://api-rrd.madavi.de/data.php

Only data for temperature and humidity is shown, but no pressure and now dust values.

 curl -H "Content-Type: application/json" -H "X-Pin: 1" -H "X-Sensor: esp8266-XXXXX" --data data.json -X POST "https://api-rrd.madavi.de/data.php"

data.json

{
  "software_version": "your_version",
  "sensordatavalues":[
    {"value_type":"P1","value":"66.04"},
    {"value_type":"P2","value":"53.32"}
  ]
}

Return value is

Sensor: esp8266-XXXXX
ok

What am I doing wrong?

Posting the same to api.sensor.community/v1/push-sensor-data/ works, data is shown on the Live Map.

For api-rrd.madavi.de you need a prefix for the value_type, i.e. ‘SDS_’ for the SDS011 or ‘BME280_’ for the BME280.
You can see those prefixes in the source code of our firmware (sensors-software/airrohr-firmware.ino at master · opendata-stuttgart/sensors-software · GitHub).

Thanks, works now. Very confusing that this is not described on the API description. I’ve updated the Wikipage.