Hi all!
I would like some assistance with the micro:climate Kit I’ve set up with micro:bit. Everything works ok.
I get numbers from every instrument, but I’m not certain as to what kind of units I’m getting for some of the measurements.
Please see the code I’ve used for my setup:
function getWeather () {
current_Temperature = Math.idiv(weatherbit.temperature(), 100)
current_WindSpeed = Math.trunc(weatherbit.windSpeed())
current_Pressure = Math.idiv(weatherbit.pressure(), 25600)
current_Humidity = Math.idiv(weatherbit.humidity(), 1024)
current_Rain = Math.round(weatherbit.rain())
current_SoilMoisture = Math.idiv(weatherbit.soilMoisture(), 1024)
current_SoilTemperature = Math.idiv(weatherbit.soilTemperature(), 100)
//code continues but not important for my question
}
So:
- current_Temperature is Celcius, correct?
- **current_WindSpeed is what?**
- current_Pressure is hPa, correct??
- current_Humidity is relative-%, correct?
- **current_Rain is what?**
- **current_SoilMoisture is what?**
- current_SoilTemperature is Celsius, correct?
Thank you in advance for your time and effort!
current_Temperature is Celcius, correct?
Yes, temperature is reported in Celsius.
current_WindSpeed is what?
Wind speed is in MPH.
current_Pressure is hPa, correct??
Correct, pressure is in hPa.
current_Humidity is relative-%, correct?
Correct.
current_Rain is what?
The rain block returns the number of inches of rain that the gauge has measured as a whole number.
current_SoilMoisture is what?
The Soil Moisture block returns an analog value range of 0 - 1023 (a 10 bit number). The lower the number is the less moisture the sensor detects. The "dryness" and "wetness" level depends on your climate, humidity, etc. so we cannot give you a concrete range of what is wet and dry, that is something you will have to fiddle with yourself.
current_SoilTemperature is Celsius, correct?
Yes.
Excellent! Thank you very much!
Maybe it would be useful for others too to include this information in the guides at your website.