aleppax / AirQualityMesh

IoT system monitoring outdoor air quality with multiple stations, remote data collection and analytics
GNU General Public License v3.0
2 stars 0 forks source link

adding OpenSenseMap API compatibility #109

Closed aleppax closed 11 months ago

aleppax commented 1 year ago

adding the optional submission of measurements to the OpenSenseMap API, with provided token used as authorization header.

senseBox documentation

aleppax commented 11 months ago

now it seems to be working correctly. There was a memory issue, but it seems to be solved by reducing the number of measurements sent at once to openSenseMap. A new setting is used: 'measurements_per_sending' by default set to 8.

aleppax commented 11 months ago

despite this enhancement is working, there is still an issue with the SSL implementation in micropython, causing Error no memory ENOMEM. Sadly it seems that porting the circuitPython implementation is not straightforward. Moreover opensensemap API requires HTTPS. This feature has to be considered unstable until a fix inside micropython.