Skip to content

Latest commit

 

History

History
67 lines (47 loc) · 3.92 KB

ADVANCED.md

File metadata and controls

67 lines (47 loc) · 3.92 KB

Advanced usage

If you want to get access to files created before or after compilation form the console you are able to do this. Source code of Tasmota is located in /tmp/Tasmota

Gitpod
  1. press ctrl+c at the gitpod console
  2. change directory to /tmp/Tasmota by typing cd /tmp/Tasmota
  3. Now you can check from terminal what for example is the content of platformio.ini or user_config_override.h files.
  4. type this command to see last 10 lines of user_config_override.h file: tail sonoff/user_config_override.h
  5. start TasmoCompiler again: cd /workspace/tasmocompiler and node server/app.js

Gitpod Advanced

Docker

If you have TasmoCompiler docker running (started by docker run --rm --name tasmocompiler -p 3000:3000 benzino77/tasmocompiler) open a new terminal tab/window and:

  1. run this command to get into container: docker exec -it tasmocompiler /bin/bash
  2. change directory to /tmp/Tasmota by typing cd /tmp/Tasmota
  3. Now you can check from terminal what for example is the content of platformio.ini or user_config_override.h files.
  4. type this command to see last 10 lines of user_config_override.h file: tail sonoff/user_config_override.h
  5. exit docker container shell by pressing ctrl+d

Docker Advanced

Compile someone fork of Tasmota code

If you want to use someone fork of Tasmota project, and want to use TasmoCompiler to compile it, it is possible (at least with this one used in the example). The steps below, are based on Stefan Bode fork of Tasmota code.

Gitpod
  1. start your gitpod workspace
  2. close all tabs/windows with TasmoCompiler GUI (it is important, because the problem with WebSockets can arise)
  3. in the gitpod console (bottom part of the view, where the information Server started on port 3000 is displayed) hit ctrl+c
  4. type: cd /tmp
  5. type: rm -rf Tasmota
  6. type: git clone https://github.com/stefanbode/Sonoff-Tasmota.git Tasmota <- this is importatnt to clone to Tasmota folder
  7. type: cd Tasmota
  8. type: git checkout -b development
  9. type: cd /workspace/tasmocompiler
  10. type: node server/app.js
  11. open TasmoCompiler GUI by clicking "Open Browser" (if it didn't open automatically)

In step 8 the development branch is created from current master of Stefan Bode fork. You can also create develepment branch from any commit from the past by typing:

git checkout -b development <sha1-of-commit>

You can also copy and paste this oneliner: cd /tmp && rm -rf Tasmota && git clone https://github.com/stefanbode/Sonoff-Tasmota.git Tasmota && cd Tasmota && git checkout -b development && cd /workspace/tasmocompiler && node server/app.js

Docker
  1. close all tabs/windows with TasmoCompiler GUI (it is important, because the problem with WebSockets can arise)
  2. run docker exec -it tasmocompiler /bin/bash on machine where your container is running
  3. type: cd /tmp
  4. type: rm -rf Tasmota
  5. type: git clone https://github.com/stefanbode/Sonoff-Tasmota.git Tasmota <- this is important to clone to Tasmota folder
  6. type: cd Tasmota
  7. type: git checkout -b development
  8. exit docker container shell by pressing ctrl+d
  9. point the browser to the address and port of your docker host

You can also copy and paste this oneliner: cd /tmp && rm -rf Tasmota && git clone https://github.com/stefanbode/Sonoff-Tasmota.git Tasmota && cd Tasmota && git checkout -b development

Notes

At the Select version and compile step, you will be able to choose only development version of Tasmota. If you want to see other versions, you have to create git tags (with names compatibile with original Tasmota tags) from commits in Stefan Bode git repo. TasmoCompiler will only look at tags which names starts with v6*, v7* or v8*.