funnybrum / LossnayController-v2

3 stars 0 forks source link

BME280 #3

Open mong00se007 opened 11 months ago

mong00se007 commented 11 months ago

Hi, Thank you for making this, Installers just put in a Lossnay system in my house with a ducted system but they only hooked it up to power. So really it is not doing anything! I really think they didnt know what they were doing.

I am not much of a programmer so get stuck very easy, I installed vscode/platformio and added your code. when I try and compile it, it gives the error below...

would you be willing to compile the code for me, so I can directly install it onto the D1 mini or ESP32 D1 mini?, and post it to github? or tell me what Im doing wrong? As would love to get my ventilation going properly!

Thank you, your help is much appreciated!!

Processing d1_mini (platform: espressif8266@2.6.3; board: d1_mini; framework: arduino)
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/espressif8266/d1_mini.html
PLATFORM: Espressif 8266 (2.6.3) > WeMos D1 R2 and mini
HARDWARE: ESP8266 80MHz, 80KB RAM, 4MB Flash
PACKAGES: 
 - framework-arduinoespressif8266 @ 3.20704.0 (2.7.4) 
 - tool-esptool @ 1.413.0 (4.13) 
 - tool-esptoolpy @ 1.30000.201119 (3.0.0) 
 - toolchain-xtensa @ 2.40802.200502 (4.8.2)
LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 31 compatible libraries
Scanning dependencies...
Dependency Graph
|-- BME280
|-- esp8266-base
|-- ESP8266HTTPUpdateServer @ 1.0
|-- ESP8266mDNS @ 1.2
|-- ESP8266WebServer @ 1.0
|-- ESP8266WiFi @ 1.0
|-- SPI @ 1.0
Building in release mode
Compiling .pio\build\d1_mini\src\BME280.cpp.o
Compiling .pio\build\d1_mini\src\DataCollector.cpp.o
Compiling .pio\build\d1_mini\src\FanController.cpp.o
Compiling .pio\build\d1_mini\src\LossnayController.cpp.o
Compiling .pio\build\d1_mini\src\Monitor.cpp.o
Compiling .pio\build\d1_mini\src\Settings.cpp.o
Compiling .pio\build\d1_mini\src\WebServer.cpp.o
Generating LD script .pio\build\d1_mini\ld\local.eagle.app.v6.common.ld
Compiling .pio\build\d1_mini\lib06e\Wire\Wire.cpp.o
Compiling .pio\build\d1_mini\libf6b\BME280\BoschBME280.cpp.o
Compiling .pio\build\d1_mini\libf6b\BME280\bme280.c.o
Compiling .pio\build\d1_mini\lib7c5\ESP8266WiFi\BearSSLHelpers.cpp.o
Compiling .pio\build\d1_mini\lib7c5\ESP8266WiFi\CertStoreBearSSL.cpp.o
In file included from src/BME280.h:3:0,
                 from src/Settings.h:5,
                 from lib\esp8266-base/esp8266-base.h:1,
                 from src\LossnayController.h:11,
                 from src\FanController.cpp:1:
lib\BME280/BoschBME280.h:22:27: error: field 'bme280' has incomplete type
         struct bme280_dev bme280;
                           ^
lib\BME280/BoschBME280.h:23:28: error: field 'comp_data' has incomplete type
         struct bme280_data comp_data;
                            ^
funnybrum commented 11 months ago

I just tried and compiled it with no issues on Linux and Visual Studio Code. Attached is the compiled firmware binary file.

firmware.zip

mong00se007 commented 10 months ago

Thank you so much! made my day that you share this! :) awesome work!