No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Florian Eitel d383677b80
Add README.md file to firmware
5 months ago
..
libraries Refactor sensor interface with extra files and function pointer 5 months ago
README.md Add README.md file to firmware 5 months ago
config.h Charge / charging test modified. 11 months ago
config_user.h.example Make influxdb and serial feature configurable 5 months ago
firmware.ino Add README.md file to firmware 5 months ago
influxdb.ino Make influxdb and serial feature configurable 5 months ago
sensor_apds9930.ino Refactor sensor interface with extra files and function pointer 5 months ago
sensor_apds9960.ino Refactor sensor interface with extra files and function pointer 5 months ago
sensor_battery.ino Use NaN to signal no sensor values 5 months ago
sensor_bme280.ino Refactor sensor interface with extra files and function pointer 5 months ago
sensor_wind.ino Refactor sensor interface with extra files and function pointer 5 months ago
webUpdater.ino Refactor webUpdater to remove logic from firmware.ino 5 months ago

README.md

ø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