You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+33-9Lines changed: 33 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -512,7 +512,7 @@ Often the answer is: Because all internal routines (reading temperature, control
512
512
513
513
Flash the original firmware (see installation). Write me a message with your exact model and which parameter was not correct. Maybe your MQTT-server received some unknown messages - this would be also helpful for me. Again: I have tested this only with model BHT-002-GBLW. If you have another device, don't expect that this is working directly.
514
514
515
-
## Build this firmware from source
515
+
## Build this firmware from source and contributing
516
516
517
517
For building from sources and coding i suggest VS Code and PlatformIO. You can also use Gitpod.
518
518
@@ -530,12 +530,26 @@ git submodule update
530
530
```
531
531
532
532
* Open the folder 'WThermostatBeca' in VS Code
533
-
* Go to PlatformIO Icon
534
-
* Click Build
535
-
* Binary Firmware can be found in build_output\firmware\wthermostat-1.xx-fas.bin (or -debug or -minimal)
533
+
* Go to PlatformIO Alien Icon on the left
534
+
* Open in Tree "wthermostat" and click General/Build
535
+
* Binary Firmware can be found in build_output/firmware/wthermostat-1.xx-fas.bin (or -debug or -minimal)
536
536
537
537
All dependant arduino-libraries (DNSServer, EEPROM (for esp8266), ESP8266HTTPClient, ESP8266mDNS, AsyncWebServer, ESP8266WiFi, Hash, NTPClient, Time.) will be downloaded automatically (defined in platform.ini) and the necessary WAdapter library from <https://github.com/fashberg/WAdapter> (git submodule).
538
538
539
+
You probably want to specify your own Port-Settings. Copy ``platformio_override.sample.ini`` to ``platformio_override.ini`` and define your stuff.
540
+
541
+
#### Environments wthermostat / wthermostat-minimal / wthermostat-debug and bin.gz
542
+
543
+
There are 3 environments:
544
+
545
+
1. wthermostat: this is the default production environment.
546
+
547
+
2. wthermostat-minimal: this is the minimal version. No MQTT and no Thermostat Support, meant for OTA Upgrading when standard is too small. After flashing minimal do an upgrade to normal.
548
+
549
+
3. wthermostat-debug: this is the debug/development version. DO NOT FLASH TO THERMOSTAT HARDWARE! There is debugging output to serial interface which will confuse Thermostat-MCU. Upload to USB-Connected development ESP8266 board (Node MCU or Wemos D1 Mini pro) and monitor the output in vscode/pio-monitor.
550
+
551
+
bin vs bin.gz: You can directly upload a gzipped (compressed) firmware via OTA
552
+
539
553
### Cloud Development using Gitpod
540
554
541
555
You can open and compile this Project on Gitpod. You need a GitHub account, 50 hours are free per month - don't forget to stop the workspace.
@@ -556,10 +570,20 @@ You can download the firmware by right-clicking in the Project-Explorer the file
0 commit comments