From 01dbe1f228ce8423a8ed441f8dc508a2bf5cbb7d Mon Sep 17 00:00:00 2001 From: Jason2866 Date: Mon, 28 Oct 2019 09:25:38 +0100 Subject: [PATCH] Updated PlatformIO CLI (markdown) --- PlatformIO-CLI.md | 64 +++++++++++++++++++++++++---------------------- 1 file changed, 34 insertions(+), 30 deletions(-) diff --git a/PlatformIO-CLI.md b/PlatformIO-CLI.md index 03f7bd1c..792ebc02 100644 --- a/PlatformIO-CLI.md +++ b/PlatformIO-CLI.md @@ -9,43 +9,47 @@ How to flash the Tasmota firmware onto a device using the `platformio` command l ## Download the Sonoff-Tasmota source code -Either download the latest Tasmota release Source code from https://github.com/arendst/Sonoff-Tasmota/releases and extract it or clone the Git repository: +Either download the latest Tasmota Source code from https://github.com/arendst/Tasmota/ and extract it or clone the Git repository: -'git clone https://github.com/arendst/Sonoff-Tasmota.git` +'git clone https://github.com/arendst/Tasmota.git` ## Select the environment -The default environment configuration can be used to easily generate Tasmota firmware variants (sonoff, sensors, display, etc.). If you're not sure which binary is the right one for you, consult the [builds table](Builds) or just start with [sonoff.bin](http://thehackbox.org/tasmota/release/sonoff.bin). To build and/or flash exactly one of these, use the `-e` command line argument (e.g., `-e sonoff-sensors`). Alternatively, uncomment (i.e., remove the leading `;`) the desired *env_default* line in the *platformio.ini* file and do not use the `-e` argument on the command. +The default environment configuration can be used to easily generate Tasmota firmware variants (sonoff, sensors, display, etc.). If you're not sure which binary is the right one for you, consult the [builds table](Builds) or just start with `tasmota.bin` / `sonoff.bin`. To build and/or flash exactly one of these, use the `-e` command line argument (e.g., `-e sonoff-sensors`). Alternatively, uncomment (i.e., remove the leading `;`) the desired *env_default* line in the *platformio.ini* file and do not use the `-e` argument on the command. ``` -env_default = sonoff -;env_default = sonoff-minimal -;env_default = sonoff-basic -;env_default = sonoff-classic -;env_default = sonoff-knx -;env_default = sonoff-sensors -;env_default = sonoff-display -;env_default = sonoff-BG -;env_default = sonoff-BR -;env_default = sonoff-CN -;env_default = sonoff-CZ -;env_default = sonoff-DE -;env_default = sonoff-ES -;env_default = sonoff-FR -;env_default = sonoff-GR -;env_default = sonoff-HE -;env_default = sonoff-HU -;env_default = sonoff-IT -;env_default = sonoff-NL -;env_default = sonoff-PL -;env_default = sonoff-PT -;env_default = sonoff-RU -;env_default = sonoff-SE -;env_default = sonoff-TR -;env_default = sonoff-TW -;env_default = sonoff-UK +; *** Uncomment one of the lines below to build/upload only one environment +;default_envs = tasmota +;default_envs = tasmota-ircustom ; alternative to 'tasmota' with full IR protocols activated, you will need to disable some features to keep code not too big +;default_envs = tasmota-minimal +;default_envs = tasmota-basic +;default_envs = tasmota-knx +;default_envs = tasmota-sensors +;default_envs = tasmota-display +;default_envs = tasmota-ir +;default_envs = tasmota-BG +;default_envs = tasmota-BR +;default_envs = tasmota-CN +;default_envs = tasmota-CZ +;default_envs = tasmota-DE +;default_envs = tasmota-ES +;default_envs = tasmota-FR +;default_envs = tasmota-GR +;default_envs = tasmota-HE +;default_envs = tasmota-HU +;default_envs = tasmota-IT +;default_envs = tasmota-KO +;default_envs = tasmota-NL +;default_envs = tasmota-PL +;default_envs = tasmota-PT +;default_envs = tasmota-RU +;default_envs = tasmota-SE +;default_envs = tasmota-SK +;default_envs = tasmota-TR +;default_envs = tasmota-TW +;default_envs = tasmota-UK ``` # Compile and upload -Once all the prerequisites are in place, compiling and uploading is one simple command. Execute this from within the `Sonoff-Tasmota` source code directory: +Once all the prerequisites are in place, compiling and uploading is one simple command. Execute this from within the `Tasmota` source code directory: `platformio run -e --target upload --upload-port `