How often should I send data to https://api.sensor.community/v1/push-sensor-data/?

I would like to send data to https://sensor.community myself. I’ve read documentation EN APIs · opendata-stuttgart/meta Wiki · GitHub and I have found how to do it — I need to make POST request to https://api.sensor.community/v1/push-sensor-data/ (with correct headers and body) I’ve tried it and it works fine — I can send data and I see that data.

My question is how often should I send data? Every 15 minutes, every 5 minute, every 1 minute, or something else? What are the recommendations?

The other thing that I can’t find the answer in the documentation is how often can I access https://api.sensor.community/v1/push-sensor-data/ I wan to send PM2.5, PM10 from SDS011 and temp/humidity/pressure from BME280. To do it I need to make 2 requests to https://api.sensor.community/v1/push-sensor-data/ Can I do them at the same time, or I need to make a pause between requests (how much should I wait?)

The time span is 145s
Unfortunately I cant help you further because I am not on my own computer until the 1st of September.
The API page is pretty self explanatory though. With the V1 you can get all the data of one very sensor.

145 seconds is the default interval for our firmware (plus some seconds for data transmission).
If you want your device shown on our map then the interval should not exceed 5 minutes. On the map we only show sensors that have sent data in the last 5 minutes.
And you should not send more than once per minute. With nearly 15.000 devices a shorter interval (if configured on many of these devices) would result in a much higher load on our servers.

Thank you for your answers

1 Like

Hi I have analogous question, why is each sensor handled separately? => for SDS011 and BME280 it is 2x request. Could the json be merged into one POST? Thank you!

Hi @MichaelLazan, we need to modify our API for this. The code is written in Django and can be found in our Github repo. So if you know someone who can implement this, any help is welcome.

1 Like