File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -544,8 +544,8 @@ function refreshFromWeatherflow_() {
544
544
} ;
545
545
} else if ( conditions . temp != null && conditions . windSpeed != null ) {
546
546
conditions . windChill = {
547
- "f" : conditions . temp . f . windChillF ( conditions . windSpeed ) . toFixedNumber ( 2 ) ,
548
- "c" : conditions . temp . c . windChillC ( conditions . windSpeed ) . toFixedNumber ( 2 )
547
+ "f" : conditions . temp . f . windChillF ( conditions . windSpeed . mph ) . toFixedNumber ( 2 ) ,
548
+ "c" : conditions . temp . c . windChillC ( conditions . windSpeed . mph ) . toFixedNumber ( 2 )
549
549
} ;
550
550
} ;
551
551
if ( weatherflowConditions . obs [ 0 ] . heat_index != null ) {
@@ -915,8 +915,8 @@ function doPost(request) {
915
915
} ;
916
916
if ( receivedJSON . humidity != null ) conditions . humidity = Number ( receivedJSON . humidity ) . toFixedNumber ( 0 ) ;
917
917
if ( conditions . temp != null && conditions . windSpeed != null ) conditions . windChill = {
918
- "f" : conditions . temp . f . windChillF ( conditions . windSpeed ) . toFixedNumber ( 2 ) ,
919
- "c" : conditions . temp . c . windChillC ( conditions . windSpeed ) . toFixedNumber ( 2 )
918
+ "f" : conditions . temp . f . windChillF ( conditions . windSpeed . mph ) . toFixedNumber ( 2 ) ,
919
+ "c" : conditions . temp . c . windChillC ( conditions . windSpeed . mph ) . toFixedNumber ( 2 )
920
920
}
921
921
if ( conditions . temp != null && conditions . humidity != null ) conditions . heatIndex = {
922
922
"f" : conditions . temp . f . heatIndex ( conditions . humidity , 'F' ) . toFixedNumber ( 2 ) ,
You can’t perform that action at this time.
0 commit comments