Skip to content

Commit

Permalink
Merge pull request #24 from philippeportesppo/night_icons_fix
Browse files Browse the repository at this point in the history
Night icons fix
  • Loading branch information
philippeportesppo authored Nov 5, 2017
2 parents 0424319 + 0579ad3 commit f360bf7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions AirMentorDTH.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -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())



Expand Down Expand Up @@ -503,4 +503,4 @@ def refresh() {
}




2 changes: 1 addition & 1 deletion undergroundweather.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f360bf7

Please sign in to comment.