Skip to content

Commit 3ee61a3

Browse files
committed
Doc-Update
1 parent ceab985 commit 3ee61a3

1 file changed

Lines changed: 33 additions & 9 deletions

File tree

README.md

Lines changed: 33 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -512,7 +512,7 @@ Often the answer is: Because all internal routines (reading temperature, control
512512

513513
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.
514514

515-
## Build this firmware from source
515+
## Build this firmware from source and contributing
516516

517517
For building from sources and coding i suggest VS Code and PlatformIO. You can also use Gitpod.
518518

@@ -530,12 +530,26 @@ git submodule update
530530
```
531531

532532
* 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)
536536

537537
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).
538538

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+
539553
### Cloud Development using Gitpod
540554

541555
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
556570
* Get latest version and dependant libraries.
557571
``git pull ; git pull --recurse-submodules``
558572
* Upgrade PlatformIO:
559-
``platformio upgrade --dev ; platformio pkg update ; platformio pkg install``
573+
``platformio upgrade --dev``
574+
* Upgrade Dependencies:
575+
``platformio pkg update ; platformio pkg install``
576+
* Build wthermostat:
577+
``pio run -e wthermostat``
578+
* Check/Lint wthermostat:
579+
``pio check -e wthermostat``
580+
* upload wthermostat via ip:
581+
``python pio/espupload.py -u <IpOfDevice> -f $SOURCE``
582+
583+
### GitHub Actions, Pull-Requests
584+
585+
After every push or pull-request the code is build automatically on github.
560586

561-
### Special Build Versions
587+
Check out [/actions](/actions), you can also download the built-firmware for each commit at the bottom of the "Summary" at "Artifacts".
562588

563-
* -Minimal environment: minimal version without thermostat, MQTT or WebThings support. Use only for intermediate Updating
564-
* -Debug environment: DO NOT FLASH TO THERMOSTAT. There is debugging output to serial interface which will confuse MCU
565-
* Upload to USB-Connected development ESP8266 board (Node MCU or Wemos D1 Mini pro)
589+
Feel free the request a [PR](/pulls).

0 commit comments

Comments
 (0)