Sensor shows average data but does not return current data

I have build a kind of dashboard to monitor a number of sensors that I have build and which hang at different places. I use the “https://data.sensor.community/airrohr/v1/sensor/unit-id/” to get the actual data of the sensor. However one sensor does not produce the data, but when I look at the map, it will show the EU and WHO hourly averages. So it makes me wonder if the sensor is active or not.

Please send the Board ID nd the Sensor ID

board-id 5646761 sensor-id 72443

On SC it seems OK. It should be a SPS30:
https://maps.sensor.community/grafana/d/000000004/single-sensor-view-for-map?orgId=1&var-node=72443
Capture d’écran 2022-09-24 à 13.51.31

On Madavi nothing. Are you sure of the number ?
https://api-rrd.madavi.de/grafana/d/GUaL5aZMz/pm-sensors?var-chipID=esp8266-5646761&orgId=1

Are the config the same in both Sensor and devices.sensor.community?
Have you deactivated madavi API ?

Sorry, I checked my notes and it turned out that the board Id must be 5846761. For my dashboard the board-id is not used so I did not notice the error. With the correct number madavi works and shows a lot of missing periods. This brings up the question what the worth is of an hourly average if you don’t have a full hour of measurements.

You can see my dashboard on dashboard sensors. It fetches the data with the javascript routine below.

To spare the server it does not refresh automatically. The background color of the refresh buttons is yellow during refresh, orange is an empty result is received and red if an error or a timeout (20s) occurs. During refresh All it cycles to all sensors with 5 seconds delay in between. It is not finished yet, I need to add a configuration module for the list of sensors.

function getnewdata(sensorseq, id) {
    var xhttp = new XMLHttpRequest();
    xhttp.onreadystatechange = function() {
        if (this.readyState == 4) {
            document.getElementById("demo").innerHTML = 'status: ' + this.status;
            if( this.status == 200) {
                document.getElementById(refreshid).style.background ='white';
                if (this.responseText != '[]' && this.responseText != '') {
                  var resobj = JSON.parse(this.responseText);
                  nextSpectrum(sensorseq, resobj[0]);
                }
                else {
                      document.getElementById("demo").innerHTML = "no data";
                      document.getElementById(refreshid).style.background ='orange';
                }
            }
            else {
              document.getElementById("demo").innerHTML = "getdata FAILED";
              document.getElementById(refreshid).style.background ='red';
            }
            //initiate time for the next refresh
            if (sensorseq < sensorlist.length-1) {
                sensorseq++;
                initiateTimer(sensorseq, sensorlist[sensorseq], delay);
            }
            else {
                sensorseq=0;
                refreshStop();
            }
       }
    };
    xhttp.ontimeout = function() {
              document.getElementById("demo").innerHTML = "TIMEOUT";
              this.abort();
    };
    var newsource = "https://data.sensor.community/airrohr/v1/sensor/" + id + "/";
    document.getElementById('url').innerHTML=newsource;
    document.getElementById('demo').innerHTML="waiting for response";
    xhttp.open("GET", newsource, true);
    xhttp.timeout = 20000;
    xhttp.send();
    refreshid = 'rfsh' + sensorseq + '-' + id;
    document.getElementById(refreshid).style.background ='yellow';
}

I wanted to test but your sensor is unplugged, isn’t it?

It seems so, I have sent a mail to the guy where it is located. We can close this topic now. My remaining conclusion is the the average values do not stop if the sensor stops reporting and that is confusing. Thx for your comments.