Read the statement by Michael Teeuw here.
MMM-AQI
-
or is that info delivered via the api?
Yes, the way it’s written
Object.keys(iaqi).forEach(function (key) { iaqiRow = document.createElement("tr"); iaqiCityCell = document.createElement("td"); iaqiCityCell.className = "xsmall iaqi key " + aqiClass; iaqiCityCell.innerHTML = key.toUpperCase(); iaqiRow.appendChild(iaqiCityCell); iaqiAQICell = document.createElement("td"); iaqiAQICell.className = "xsmall iaqi value " + aqiClass; iaqiAQICell.innerHTML = iaqi[key].v; iaqiRow.appendChild(iaqiAQICell); dataTable.appendChild(iaqiRow); });
Returns the key:value pair (value not shown)
MMM-AQI received a system notification: DOM_OBJECTS_CREATED MMM-AQI.js:146 co MMM-AQI.js:146 no2 MMM-AQI.js:146 o3 MMM-AQI.js:146 p MMM-AQI.js:146 pm10 MMM-AQI.js:146 so2 MMM-AQI.js:146 t
-
Hi there. I was attempting to install your MMM-AQI, but received an error from this link.
https://api.waqi.info/search/?token=TOKEN&keyword=croydon
{“status”:“error”,“data”:“Invalid key”}Is this module still active?
I’m seeing the “request” dependency is deprecated… -
I’m seeing the “request” dependency is deprecated…
yes, since MM version 2.16 (7 releases ago, almost 2 years) when we removed it from MM…
https://forum.magicmirror.builders/topic/15778/fix-for-black-screen-in-2-16-and-later/1
-
@Nneuland are you adding your own token? Request is deprecated yeah, but still works… some day I’ll update it to something else, but for now…
-
@ryck
thank you so much. -
oops. thanks Sam
-
@Nneuland you don’t need to worry about dependencies, just clone the module in the modules folder, do npm install and then add the config, with the proper token