Skip to content

Commit

Permalink
fix: default wind unit (#375)
Browse files Browse the repository at this point in the history
Co-authored-by: Christopher Fenner <[email protected]>
  • Loading branch information
y0m1g and CFenner committed Jun 24, 2024
1 parent e8e99f2 commit e9938f2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions netatmo.js
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ Module.register('netatmo', {
return value.toFixed(1)// + '&nbsp;mm/h'
case this.measurement.WIND_STRENGTH:
case this.measurement.GUST_STRENGTH:
return value.toFixed(0)// + '&nbsp;m/s'
return value.toFixed(0)// + '&nbsp;km/h'
case this.measurement.WIND_ANGLE:
case this.measurement.GUST_ANGLE:
return `${this.getDirection(value)}&nbsp;|&nbsp;${value}`// + '°'
Expand Down Expand Up @@ -318,7 +318,7 @@ Module.register('netatmo', {
return 'mm/h'
case this.measurement.WIND_STRENGTH:
case this.measurement.GUST_STRENGTH:
return 'm/s'
return 'km/h'
case this.measurement.WIND_ANGLE:
case this.measurement.GUST_ANGLE:
return '°'
Expand Down

0 comments on commit e9938f2

Please sign in to comment.