@@ -36,7 +36,7 @@ namespace weatherbit {
36
36
let windMPH = 0
37
37
let directionArrow = [ ArrowNames . North , ArrowNames . NorthEast , ArrowNames . East , ArrowNames . SouthEast , ArrowNames . South , ArrowNames . SouthWest , ArrowNames . West , ArrowNames . NorthWest ]
38
38
let directionString = [ "N" , "NE" , "E" , "SE" , "S" , "SW" , "W" , "NW" ]
39
- let simDirection = 360 // an illegal value that simulation can override
39
+ let simDirection = 0 // North - but simulation will override
40
40
41
41
// BME280 Addresses
42
42
const bmeAddr = 0x76
@@ -287,10 +287,10 @@ namespace weatherbit {
287
287
}
288
288
289
289
/**
290
- * Simulate wind turns
290
+ * Simulate weather - wind and rain
291
291
*/
292
- //% weight=0 blockId="weatherbit_simWindTurns " block="simulate wind turns "
293
- export function simWindAndRain ( ) : void {
292
+ //% weight=0 blockId="weatherbit_simWeather " block="simulate weather "
293
+ export function simWeather ( ) : void {
294
294
control . inBackground ( ( ) => {
295
295
let i = 0
296
296
while ( true ) {
@@ -577,9 +577,9 @@ namespace weatherbit {
577
577
/**
578
578
* Reads the temperature from the one-wire temperature sensor.
579
579
* Returns a 4 digit number. value should be divided by 100 to get
580
- * temperature in hudnreths of a degree centigrade.
580
+ * temperature in hundreths of a degree centigrade.
581
581
*/
582
- //% weight=10 blockId="weahterbit_soilTemp " block="soil temperature(C)"
582
+ //% weight=10 blockId="weatherbit_soilTemp " block="soil temperature(C)"
583
583
//%
584
584
export function soilTemperature ( ) : number {
585
585
init ( ) ;
0 commit comments