Clever! I am looking at adding an ESP32 based instrument for wind speed an direction on the roof, where I could get power to - but a solar-powered solution would be nice. This instrument could reach the LAN and publish MQTT directly.
It would sleep when there is no wind, which might be enough of the time to stay powered.
And maybe add a wind-powered generator to complement the PV cell.
If you’re using the esp32 you have more options available to you. You could measure wind speed and direction using the ULP and wake the main core and modem to send data every 5 minutes or so.
ULP-only is using 800uA
Regarding using wind, that would be good too. I was looking at the thing yesterday and thought if I printed a small turbine I could use a spare motor I have as a small gennie. Clamp it with a zener and you’ve got a good solar and wind combination
Get the esp with the external antenna (yaggi if you needed) on and you should have lots of range
Well, I’ve added the code to github. https://github.com/CrispinP/WeatherStation
Hoping this works. It’s the first time I have actually submitted code so, well, hoping it’s good
Do you have plans to add further sensors? Like windsensor, rainmeter, lightsensor, …
I have some power outlets in the garden and can power my esp8266 with this. So even sensors, which have to be always on can be used. I think this would not be too much work? Only add a few lines for additional sensors? Most of the work is done already. Maybe i can provide you some code from blogs with similar projects? Bad side of the other projects is, they mostly are not providing good interfaces for openhab - like MQTT in your project.
thanks for the code hopefully your new sleep pattern helps
I didn’t think you forked the code from the instructables the housing was the same but pretty well everything else inside was different .
I am currently using a wemos with tasmota on it for my 4 channel garden irrigation system water lvl tracking in my rain water tanks and temp/humidity readings.
For those who wanted the code, the version last night was dodgy and causing crashdumps
In more refactoring I changed the wifi library to use only use wifi manager if no saved wifi details. The effect of this is the wifi start up time went from 2-3 seconds to 200ms!! The whole thing now runs in roughly 400ms.
I’ve hurt my battery capacity last night due to the constant crashdumps. Hoping the new, 1300% startup improvements allows me to recoup some in this miserable winter weather…