uncomment the “air stuff” for the moment
/* if (this.config.useAir != false || aquis != undefined) {
var aqius = this.air.aqius;
var aqi = document.createElement("div");
aqi.classList.add("xsmall", "bright");
if (aqius < 51) {
aqi.innerHTML = this.translate("Air Quality Index: ") + "" + aqius + "";
} else if (aqius > 50 && aqius < 101) {
aqi.innerHTML = this.translate("Air Quality Index: ") + "" + aqius + "";
} else if (aqius > 100 && aqius < 151) {
aqi.innerHTML = this.translate("Air Quality Index: ") + "" + aqius + "";
} else if (aqius > 150 && aqius < 201) {
aqi.innerHTML = this.translate("Air Quality Index: ") + "" + aqius + "";
} else {
aqi.innerHTML = this.translate("Air Quality Index: ") + "" + aqius + "";
}
wrapper.appendChild(aqi);
} */
@cowboysdude needs to check it, since the “aquis” variabel is undefined it quits. Had the same error and i needed some time to find the cause
edit: while i am reading i guess it is just a typo in the first line. should be “aqius” instead of “aquis” ;)
edit2: yes. thats it. just change
the line
if (this.config.useAir != false || aquis != undefined) {
to
if (this.config.useAir != false || aqius != undefined) {
and you are good to go again.
Sadly i have no idea how to push the fix to the git repository