GXAirCom icon indicating copy to clipboard operation
GXAirCom copied to clipboard

Adding the Sparkfun WeatherKit

Open JohnDoeKyrgyz opened this issue 11 months ago • 0 comments

This PR adds the Sparkfun WeatherKit as a weather station option. Product listing and data sheets are available here:

https://www.sparkfun.com/products/15901

Some things to note on this PR:

  1. I updated the tooling and instructions in the /src/web directory to make it easier for people to update the web content. I ran into issues on MacOS when updating the web content to include a new choice of anemometer. As part of this I included the source for the filetoarray tool. I added some lines to the platformio.ini file to exclude this file from compilation so that it does not cause problems. It may be a better to place this file in a separate 'tools' directory, or not bother including it altogether if there is concern about changing the platformio.ini file.

  2. The Sparkfun WeatherKit depends on 12 bit ADC resolution. The device uses an ADC voltage reading to compare against a pre-defined table of values to determine the direction that the weather vane is pointing. I commented out a line in the setup() function in main.cpp where analogReadResolution is being set to 10. As far as I can tell this should be safe. No other devices appear to depend on specific ADC readings to function, but this detail should be confirmed.

JohnDoeKyrgyz avatar Mar 17 '24 16:03 JohnDoeKyrgyz