This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
|
tasmotabuild [2021/12/06 18:40] topmin created |
tasmotabuild [2022/08/09 15:20] (current) |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | === Flash Xiaomi Mi Humi Sensors === | ||
| + | [[XiaomiHumiFlash]] | ||
| + | |||
| + | === Connect to tasmota via usb/serial === | ||
| + | |||
| + | Make sure you have miniterm installed 'sudo apt install miniterm' | ||
| + | |||
| + | Connect the device directly vis usb or a serial to usb converter | ||
| + | |||
| + | Enter `dmesg` too see which ttyUSB[X] device it is, where [X] is a number (probably 0) | ||
| + | |||
| + | Crank ' | ||
| + | |||
| + | Hack ' | ||
| + | |||
| + | If you need to reprogramn them prepare the following line in kate (or any other text editor): | ||
| + | < | ||
| + | Backlog SSID1 yourwifi1; Password1 yourpassword1; | ||
| + | </ | ||
| + | |||
| + | Then copy and paste it into the miniterm and hit enter. | ||
| + | |||
| + | It should restart and connect to your wifi finally... | ||
| + | |||
| + | |||
| + | |||
| === Build Tasmota from Scratch on linux === | === Build Tasmota from Scratch on linux === | ||
| - | **Cli only | + | ** Cli only / (no vscode needed) ** |
| Look here but install python3-pip instead of python-pip on ubuntu >=20 | Look here but install python3-pip instead of python-pip on ubuntu >=20 | ||
| https:// | https:// | ||
| + | a backup is here [[installplatformio-copy|installplatformio-copy]] | ||
| + | |||
| + | Put this at the end of tasmota/ | ||
| + | Fill in passwords and MQTT Server. | ||
| + | |||
| + | < | ||
| + | // !!! Remember that your changes GOES AT THE BOTTOM OF THIS FILE right before the last #endif !!! | ||
| + | */ | ||
| + | |||
| + | |||
| + | # | ||
| + | #define CFG_HOLDER | ||
| + | |||
| + | #define MODULE | ||
| + | |||
| + | #undef MQTT_FULLTOPIC | ||
| + | #define MQTT_FULLTOPIC | ||
| + | #undef MQTT_TOPIC | ||
| + | #define MQTT_TOPIC | ||
| + | |||
| + | // -- Setup your own Wifi settings | ||
| + | # | ||
| + | #define STA_SSID1 | ||
| + | |||
| + | # | ||
| + | #define STA_PASS1 | ||
| + | |||
| + | // -- Setup your own Wifi settings | ||
| + | # | ||
| + | #define STA_SSID2 | ||
| + | |||
| + | # | ||
| + | #define STA_PASS2 | ||
| + | |||
| + | // -- Setup your own MQTT settings | ||
| + | # | ||
| + | #define MQTT_HOST | ||
| + | |||
| + | |||
| + | |||
| + | </ | ||
| + | |||
| + | |||
| + | For typcial sonoff use this to compile and upload: | ||
| + | < | ||
| + | </ | ||
| + | |||
| + | For esp32 and bluetooth use this: | ||
| + | < | ||
| + | Or esptool | ||
| + | < | ||
| + | </ | ||
| + | |||
| + | If compiler errors about missing dependcies show up delete your .platformio folder, which might contain files from previous platforms | ||
| + | |||
| + | |||