weatherstation/firmware
2024-08-14 08:03:11 +02:00
..
.vscode Added http get call functionality and fixed spaces in code. 2022-11-11 10:49:42 +01:00
config.h InfluxDB connection fix to prevent endless loop. 2024-08-14 08:03:11 +02:00
config_user.h.example Added ping host config and code, also added ISR independent windspeed measurement. 2023-04-02 13:24:32 +02:00
constants.h Code indention fixes 2023-12-23 08:21:44 +01:00
datastore.ino Added eeprom emulation to store reset info 2023-01-12 20:21:34 +01:00
firmware.ino Disabled WiFi sleep mode. 2024-08-13 10:22:09 +02:00
influxdb.ino InfluxDB connection fix to prevent endless loop. 2024-08-14 08:03:11 +02:00
README.md WifiManager reset feature added to webUpdater. 2022-05-14 19:38:58 +02:00
sensor_apds9930.ino Code optically cleared 2022-09-14 11:55:43 +02:00
sensor_apds9960.ino Code optically cleared 2022-09-14 11:55:43 +02:00
sensor_battery.ino Added USB voltage read sensor 2023-02-18 17:11:48 +01:00
sensor_bme280.ino Code optically cleared 2022-09-14 11:55:43 +02:00
sensor_bmp280.ino Fixed debug output in dmp280 sensor code and removed unused function. 2022-11-04 08:37:53 +01:00
sensor_wind.ino Only count rotations on falling edges 2023-04-04 12:51:24 +02:00
webUpdater.ino Bug fixed, in case that the ping test was disabled, the ESP would reset every 120s by default. Version String added. Logger update interval (seconds) added. 2024-02-03 14:32:53 +01:00

øko weatherstatiøn firmware

How to get started with Arduino

https://git.okoyono.de/oko/weatherstation/wiki#flashing-the-firmware

FAQ

Why bundle external libs?

We decided to put these libs inside the project folder, because we have a lot of issues with finding the right libs (some libs need a specific version, some libs have no unique name, some libs are broken, ...). This is not a fine software engineering practice, but it was too much of a hassle to get this right, so we decided to put everything in version control. This way, we also can control the version of the lib, which makes the build process of this project more robust to changes.

You can update the libs using the Arduino IDE.

How to fix error: Can't find file config_user.h?

If you compile the source code and it can't find this file, this is intentional :) You need to create a config_user.h with your own settings. Use the config_user.h.example as a starting point.

How to fix java exception on Serial Port open?

That can happen with openjdk 8. Try a newer openjdk version (>9)

How can I add a new Sensor?

  • Create a file sensor_$sensorname.ino
  • Add flag to config_user.h (don't forget to update config_user.h.example
  • Add initialization method of sensor (should be named sensor_$sensorname_begin() to setup() in firmware.ino guarded with preprocessor flag
  • Create method without parameters returning a float and safe function reference into sensors array

Whats wrong with all the NaN's?

If a sensor does not produce a value the sensor value is Not a Number (NaN). InfluxDB client will filter NaN values before sending the data.

nanf() returns a float NaN. The argument can be used by library implementations to distinguish different NaN values in a implementation-specific manner.

Wishlist