API

Get public token

TOKEN=$(curl -s -X POST "https://tb.parameteo.eu/api/auth/login/public" \
  -H "accept: application/json" \
  -H "Content-Type: application/json" \
  -d '{"publicId":"35a87040-c696-11ef-9f0f-2dcc18b2ac76"}' | jq -r '.token')

Get stations list

curl -X GET "https://tb.parameteo.eu/api/customer/35a87040-c696-11ef-9f0f-2dcc18b2ac76/devices?pageSize=1000&page=0" \
  -H "X-Authorization: Bearer $TOKEN" \
  -H "accept: application/json"

Get station telemetries

STATION_CODE="your_device_id_here"
NOW_MS=$(date +%s%3N)
START_MS=$((NOW_MS - 12*60*60*1000))

curl -X GET "https://tb.parameteo.eu/api/plugins/telemetry/DEVICE/${STATION_CODE}/values/timeseries?keys=velocidad,velocidad_max,direccion,temp,hum,pres_cal&startTs=${START_MS}&endTs=${NOW_MS}" \
  -H "X-Authorization: Bearer $TOKEN" \
  -H "accept: application/json"

Get latest station image

curl -X GET "https://webcams.parameteo.eu/images/${station_name}.jpeg" --output ${station_name}.jpeg

*Note that station_name is not station_code but the descriptive name instead.