Skip to content

sirtuxalot/BG_DIY_WxStn

Repository files navigation

BG_DIY_WxStn.ino

Banggood AOQDQDQD ESP8266 Weather Station Kit with the LM393 Rain Sensor and SI1145 UV Sensor included.

Branches

  • master: Intended to be starter code for original kit (w/o LCD screen) for external data collection
  • ArduinoJson: Includes LM393 and SI1145 and provides JSON output using ArduinoJson library Kept only for reference, won't be used in final project
  • InfluxDB: Intended destination of project
  • DeepSleep: Includes LM393 and SI1145 and utilizes ESP8266 DeepSleep functionality and only outputs to console. This will be the base of the InfluxDB branch which will send data influxdb/grafana server.
  • StringJson: Predecessor to ArduinoJson code and performs the same function using normal string functions. Kept only for reference, won't be used in final project
  • ThingSpeak: Written at the request of another individual and includes the LM393 rain sensor. Data collection works but ThingSpeak data transfer has not been tested. Kept only for reference, won't be used in final project, but code submissions of corrected code will be considered

The power portion of the circuit has not been tested.

Uses libraries from Adafruit, Adi Dax, Sparkfun, Christopher Laws and various individual contributers to the arduino library ecosystem

Common Downloaded Libraries

ArduinoJson Branch Libaries

ThingSpeak Branch Libraries

Original wifi example file by pileofstuff.ca, his Youtube video and his original files

Another Youtube video but backofficeshow of the kit, but no code was offered that I could find.

GitHub repo with semi-useful info, that was added to my repo to make it easier to find.

Settings you will need to change for your station

  • const char* ssid {"XXXXXXXXXX"}; // SSID of your wireless network
  • const char* password {"XXXXXXXXXX"}; // Password for your wireless network
  • const float ALTITUDE {171.0}; // Altitude of your location (in meters)
  • IPAddress ip(###, ###, ###, ###); // IP address of your device, or remove completely for DHCP
  • IPAddress gateway(###, ###, ###, ###); // Gateway IP address of your network, or remove completely for DHCP
  • IPAddress subnet(###, ###, ###, ###); // Network Subnet Mask of your network, or remove completely for DHCP

Revisions:

  • 11 July 2021: Code clean-up due to my OCD
  • 26 August 2021: First working sketch
  • 27 August 2021: More code clean-up and replace web output with json output (StringJson)
  • 28 August 2021: Utilize Arduino Json library to construct json output (ArduinoJson)
  • 20 November 2021: Added rain sensor with assistance from here
  • 23 November 2021: Added deep sleep with assistance from here (DeepSleep,ThingSpeak). Replace Serial(ln) with Debug(ln) to allow enable/disable of debug content in serial monitor.
  • 22 December 2021: Standardize format of constants with the sketch. Added code for SI1145 UV sensor.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages