diff --git a/AirMentorDTH.groovy b/AirMentorDTH.groovy index 3901bb7..8b12327 100644 --- a/AirMentorDTH.groovy +++ b/AirMentorDTH.groovy @@ -362,7 +362,7 @@ def parse(description) { events << createEvent(name: "UGWdewpointlevel", value: convertTemperature(UGW_DewPoint_float.toFloat(),temperatureScale), unit: temperatureScale) events << createEvent(name: "UGWhumiditylevel", value: UGW_Humidity_float.toString()) events << createEvent(name: "UGWtemperaturecallevel", value: convertTemperature(UGW_Temp_float.toFloat(),temperatureScale), unit: temperatureScale) - events << createEvent(name: "UGW_Icon_UrlIcon", value: UGW_Icon_Url.toString()) + events << createEvent(name: "UGW_Icon_UrlIcon", value: UGW_Icon_Nt.toString()+UGW_Icon_Url.toString()) @@ -503,4 +503,4 @@ def refresh() { } - \ No newline at end of file + diff --git a/undergroundweather.py b/undergroundweather.py index d1aae20..834eb0d 100644 --- a/undergroundweather.py +++ b/undergroundweather.py @@ -64,7 +64,7 @@ def Parse(self,data): self.temp_c =info[u'current_observation'][u'temp_c'] self.icon_url =info[u'current_observation'][u'icon'] self.weather =info[u'current_observation'][u'weather'] - self.icon_nt ="NT" if info[u'current_observation'][u'icon_url'][28:31]=="nt_" else "" + self.icon_nt ="nt_" if info[u'current_observation'][u'icon_url'][28:31]=="nt_" else "" print self.feelslike_c print self.dewpoint_c print self.relative_humidity