Hello all,
I would like to monitor some data from https://opensensemap.org
actually they have a API to get the data like this:
https://api.opensensemap.org/boxes/5b1d9ddd1fef04001b15460e?format=json
resulting to an output of this:
{"_id":“5b1d9ddd1fef04001b15460e”,“createdAt”:“2022-03-30T11:25:43.544Z”,“updatedAt”:“2022-04-10T11:30:16.580Z”,“name”:“42477u12”,“currentLocation”:{“timestamp”:“2018-06-10T21:53:33.503Z”,“coordinates”:[7.360126,51.202827],“type”:“Point”},“exposure”:“outdoor”,“sensors”:[{“title”:“PM01”,“unit”:“µg/m³”,“sensorType”:“PMS 5003”,“icon”:“osem-cloud”,"_id":“5b1d9ddd1fef04001b154614”,“lastMeasurement”:{“value”:“14.20”,“createdAt”:“2022-04-10T11:30:16.573Z”}},{“title”:“PM2.5”,“unit”:“µg/m³”,“sensorType”:“PMS 5003”,“icon”:“osem-cloud”,"_id":“5b1d9ddd1fef04001b154613”,“lastMeasurement”:{“value”:“17.20”,“createdAt”:“2022-04-10T11:30:16.573Z”}},{“title”:“PM10”,“unit”:“µg/m³”,“sensorType”:“PMS 5003”,“icon”:“osem-cloud”,"_id":“5b1d9ddd1fef04001b154612”,“lastMeasurement”:{“value”:“18.60”,“createdAt”:“2022-04-10T11:30:16.573Z”}},{“title”:“Temperatur”,“unit”:“°C”,“sensorType”:“BME280”,“icon”:“osem-thermometer”,"_id":“5b1d9ddd1fef04001b154611”,“lastMeasurement”:{“value”:“9.31”,“createdAt”:“2022-04-10T11:30:16.573Z”}},{“title”:“rel. Luftfeuchte”,“unit”:"%",“sensorType”:“BME280”,“icon”:“osem-humidity”,"_id":“5b1d9ddd1fef04001b154610”,“lastMeasurement”:{“value”:“100.00”,“createdAt”:“2022-04-10T11:30:16.573Z”}},{“title”:“Luftdruck”,“unit”:“Pa”,“sensorType”:“BME280”,“icon”:“osem-barometer”,"_id":“5b1d9ddd1fef04001b15460f”,“lastMeasurement”:{“value”:“97842.97”,“createdAt”:“2022-04-10T11:30:16.573Z”}}],“model”:“luftdaten_pms5003_bme280”,“lastMeasurementAt”:“2022-04-10T11:30:16.573Z”,“grouptag”:[""],“loc”:[{“geometry”:{“timestamp”:“2018-06-10T21:53:33.503Z”,“coordinates”:[7.360126,51.202827],“type”:“Point”},“type”:“Feature”}]}
anyone could help me to put this into CheckMK 2.x to monitor the values of temperature, humidity etc.
Olay option so far would be that the SenseboxID should be a parameter to choose in WATO, because it let’s the user select a special SenseBox (e.g. for his city).
because I not familiar in linux / software developing any help is appreciated
Mike