remove else
parent
3de1b0653a
commit
da33f3812f
|
|
@ -204,7 +204,7 @@ E.on('notify',msg=>{
|
||||||
NRF.ancsAction(msg.uid, false);
|
NRF.ancsAction(msg.uid, false);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
else if (msg.title&&E.decodeUTF8(msg.title, unicodeRemap, replacer) === "BangleDumpWeather") {
|
if (msg.title&&E.decodeUTF8(msg.title, unicodeRemap, replacer) === "BangleDumpWeather") {
|
||||||
const d = JSON.parse(msg.message);
|
const d = JSON.parse(msg.message);
|
||||||
/* Example:
|
/* Example:
|
||||||
{"temp":"291.07","hi":"293.02","lo":"288.18","hum":"49","rain":"0","uv":"0","wind":"1.54","code":"01d","txt":"Mostly Sunny","wdir":"303","loc":"Berlin"}
|
{"temp":"291.07","hi":"293.02","lo":"288.18","hum":"49","rain":"0","uv":"0","wind":"1.54","code":"01d","txt":"Mostly Sunny","wdir":"303","loc":"Berlin"}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue