Skip to content

Commit b8daa80

Browse files
authored
simplify VSC firmware upload process description
by removing the niche php OTA upload
1 parent 9be418e commit b8daa80

File tree

1 file changed

+2
-37
lines changed

1 file changed

+2
-37
lines changed

docs/Visual-Studio-Code.md

Lines changed: 2 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,8 @@ To install on Linux, it is essential to first have the python3-venv package inst
2121
## Download Tasmota
2222
Download the latest Tasmota version from <https://github.com/arendst/Tasmota> and unzip to a known folder.
2323

24-
### Copy files
25-
Copy all files from the Tasmota Source code into your VSC working folder.
26-
2724
## Compile Tasmota
28-
Start VSC and select ``File`` - ``Open Folder...`` to point to the working folder.
25+
Start VSC and select ``File`` - ``Open Folder...`` the folder with the unzipped Tasmota files
2926

3027
**Note:** Press `Ctrl` + `Shift` + `P` and type `PlatformIO` to see all options.
3128

@@ -35,47 +32,15 @@ Easy compilation can be performed from the icons at the bottom of the VSC screen
3532

3633
## Upload Tasmota
3734

38-
Enable desired options in _platformio.ini_ for serial upload like:
35+
Optional: Enable desired options in _platformio_override.ini_ for serial upload like:
3936
```
40-
; *** Upload Serial reset method for Wemos and NodeMCU
4137
upload_port = COM5
4238
;upload_speed = 512000
4339
upload_speed = 115200
44-
;upload_resetmethod = nodemcu
45-
```
46-
47-
### deploy via HTTP upload
48-
49-
Special options (not needed for compiling Tasmota!) are enabled in _platformio_override.ini_ :
50-
```
51-
; *** Upload file to OTA server using HTTP
52-
upload_port = -i domus1 -p 80 -u /api/upload-arduino.php
53-
extra_scripts = ${esp_defaults.extra_scripts} pio/http-uploader.py
5440
```
55-
For ESP32 replace `esp_defaults` with `esp32_defaults`.
5641

57-
Or if you wish to upload the gzip files (not for ESP32 only for ESP8266):
58-
```
59-
upload_port = -i domus1 -p 80 -u /api/upload-arduino.php
60-
extra_scripts = ${esp_defaults.extra_scripts} pio/http-gz-uploader.py
61-
```
6242
Easy compilation and upload can be performed from the icons at the bottom of the VSC screen or use `Ctrl` + `Alt` + `U` to upload (will build if needed).
6343

64-
The _upload.php_ file at your webserver could look like this:
65-
```
66-
<?php
67-
$image = basename($_FILES["file"]["name"]);
68-
$target_file = "./".$image;
69-
$hostname = $_SERVER['SERVER_NAME'];
70-
71-
if (move_uploaded_file($_FILES["file"]["tmp_name"], $target_file)) {
72-
echo "The file $image has been uploaded to OTA server $hostname. \n";
73-
} else {
74-
echo "Sorry, there was an error uploading your file $image to OTA server $hostname. \n";
75-
}
76-
?>
77-
```
78-
7944
## *Hint:*
8045
In case vscode shows a huge amount of errors using PlatformIO - Intellisense a possible "solution" is to change the cpp-Intelli Sense Engine type to "TAG PARSER"
8146

0 commit comments

Comments
 (0)