[GH-ISSUE #41] esp8266_deauther .html not able to modify #27

Closed
opened 2026-02-27 23:22:33 +03:00 by kerem · 10 comments
Owner

Originally created by @sounakdeb on GitHub (Feb 24, 2017).
Original GitHub issue: https://github.com/SpacehuhnTech/esp8266_deauther/issues/41

How to modify the esp8266_deauther .html files i try but not working.
i'm edit the index.html then upload its not showing in the browser.

Originally created by @sounakdeb on GitHub (Feb 24, 2017). Original GitHub issue: https://github.com/SpacehuhnTech/esp8266_deauther/issues/41 How to modify the esp8266_deauther .html files i try but not working. i'm edit the index.html then upload its not showing in the browser.
kerem 2026-02-27 23:22:33 +03:00
Author
Owner

@spacehuhn commented on GitHub (Feb 24, 2017):

Use the minifier.html in html files to minify and then 'byte-ify' your changed code. In data.h you can then replace the byte array and upload.

<!-- gh-comment-id:282428840 --> @spacehuhn commented on GitHub (Feb 24, 2017): Use the `minifier.html` in html files to minify and then 'byte-ify' your changed code. In data.h you can then replace the byte array and upload.
Author
Owner

@sounakdeb commented on GitHub (Feb 25, 2017):

thank you it's working now

<!-- gh-comment-id:282465374 --> @sounakdeb commented on GitHub (Feb 25, 2017): thank you it's working now
Author
Owner

@castalia3 commented on GitHub (Oct 23, 2020):

@spacehuhn @sounakdeb

I apologize in advance for any questions that may seem silly

I am trying to perform the procedure for editing html files,

  • i installed anglerfish

  • I run the script from its location after modifying the files in web_interface

  • i've upload the files via sketch data upload from the arduino IDE

  • I start the esp8266 but the changes don't appear, where am I wrong?

*before uploading the files via IDE I flashed the bin file (v1) via ESP8266 FLASHER

*i also tried reloading the new .bin file (generated by the python script) with updated webfiles.h page, i get `error: (before loading the new bin I reset the board)

*the changes I made concern only the index page, I added a letter to h1, as a test


In file included from E: \ esp8266_deauther-2 \ esp8266_deauther \ esp8266_deauther.ino: 52: 0:

sketch \ wifi.h: In lambda function:

wifi.h: 343: 25: error: 'indexhtml' was not declared in this scope

             sendProgmem (indexhtml, sizeof (indexhtml), W_HTML);

                         ^

More than one library found for "EEPROM.h"
Used: C: \ Users \ myname \ AppData \ Local \ Arduino15 \ packages \ deauther \ hardware \ esp8266 \ 2.0.0 \ libraries \ EEPROM
More than one library found for "ESP8266WiFi.h"
Used: C: \ Users \ myname \ AppData \ Local \ Arduino15 \ packages \ deauther \ hardware \ esp8266 \ 2.0.0 \ libraries \ ESP8266WiFi
More than one library found for "SSD1306Wire.h"
Used: C: \ Users \ myname \ AppData \ Local \ Arduino15 \ packages \ deauther \ hardware \ esp8266 \ 2.0.0 \ libraries \ esp8266-oled-ssd1306-4.0.0
More than one library found for "ESP8266WebServer.h"
Used: C: \ Users \ myname \ AppData \ Local \ Arduino15 \ packages \ deauther \ hardware \ esp8266 \ 2.0.0 \ libraries \ ESP8266WebServer
More than one library found for "ESP8266mDNS.h"
Used: C: \ Users \ myname \ AppData \ Local \ Arduino15 \ packages \ deauther \ hardware \ esp8266 \ 2.0.0 \ libraries \ ESP8266mDNS
More than one library found for "Hash.h"
Used: C: \ Users \ myname \ AppData \ Local \ Arduino15 \ packages \ deauther \ hardware \ esp8266 \ 2.0.0 \ libraries \ Hash
More than one library found for "ArduinoJson.h"
Used: C: \ Users \ myname \ Documents \ Arduino \ libraries \ ArduinoJson
Not used: C: \ Users \ myname \ AppData \ Local \ Arduino15 \ packages \ deauther \ hardware \ esp8266 \ 2.0.0 \ libraries \ ArduinoJson
More than one library found for "Wire.h"
Used: C: \ Users \ myname \ AppData \ Local \ Arduino15 \ packages \ deauther \ hardware \ esp8266 \ 2.0.0 \ libraries \ Wire
More than one library found for "SimpleButton.h"
Used: C: \ Users \ myname \ AppData \ Local \ Arduino15 \ packages \ deauther \ hardware \ esp8266 \ 2.0.0 \ libraries \ SimpleButton
More than one library found for "DNSServer.h"
Used: C: \ Users \ myname \ AppData \ Local \ Arduino15 \ packages \ deauther \ hardware \ esp8266 \ 2.0.0 \ libraries \ DNSServer
exit status 1
'indexhtml' was not declared in this scope
<!-- gh-comment-id:715225632 --> @castalia3 commented on GitHub (Oct 23, 2020): @spacehuhn @sounakdeb **I apologize in advance for any questions that may seem silly** I am trying to perform the procedure for editing html files, - i installed anglerfish - I run the script from its location after modifying the files in web_interface - i've upload the files via sketch data upload from the arduino IDE - I start the esp8266 but the changes don't appear, where am I wrong? *before uploading the files via IDE I flashed the bin file (v1) via ESP8266 FLASHER *i also tried reloading the new .bin file (generated by the python script) with updated webfiles.h page, i get `error: (before loading the new bin I reset the board) *the changes I made concern only the index page, I added a letter to h1, as a test ``` In file included from E: \ esp8266_deauther-2 \ esp8266_deauther \ esp8266_deauther.ino: 52: 0: sketch \ wifi.h: In lambda function: wifi.h: 343: 25: error: 'indexhtml' was not declared in this scope sendProgmem (indexhtml, sizeof (indexhtml), W_HTML); ^ More than one library found for "EEPROM.h" Used: C: \ Users \ myname \ AppData \ Local \ Arduino15 \ packages \ deauther \ hardware \ esp8266 \ 2.0.0 \ libraries \ EEPROM More than one library found for "ESP8266WiFi.h" Used: C: \ Users \ myname \ AppData \ Local \ Arduino15 \ packages \ deauther \ hardware \ esp8266 \ 2.0.0 \ libraries \ ESP8266WiFi More than one library found for "SSD1306Wire.h" Used: C: \ Users \ myname \ AppData \ Local \ Arduino15 \ packages \ deauther \ hardware \ esp8266 \ 2.0.0 \ libraries \ esp8266-oled-ssd1306-4.0.0 More than one library found for "ESP8266WebServer.h" Used: C: \ Users \ myname \ AppData \ Local \ Arduino15 \ packages \ deauther \ hardware \ esp8266 \ 2.0.0 \ libraries \ ESP8266WebServer More than one library found for "ESP8266mDNS.h" Used: C: \ Users \ myname \ AppData \ Local \ Arduino15 \ packages \ deauther \ hardware \ esp8266 \ 2.0.0 \ libraries \ ESP8266mDNS More than one library found for "Hash.h" Used: C: \ Users \ myname \ AppData \ Local \ Arduino15 \ packages \ deauther \ hardware \ esp8266 \ 2.0.0 \ libraries \ Hash More than one library found for "ArduinoJson.h" Used: C: \ Users \ myname \ Documents \ Arduino \ libraries \ ArduinoJson Not used: C: \ Users \ myname \ AppData \ Local \ Arduino15 \ packages \ deauther \ hardware \ esp8266 \ 2.0.0 \ libraries \ ArduinoJson More than one library found for "Wire.h" Used: C: \ Users \ myname \ AppData \ Local \ Arduino15 \ packages \ deauther \ hardware \ esp8266 \ 2.0.0 \ libraries \ Wire More than one library found for "SimpleButton.h" Used: C: \ Users \ myname \ AppData \ Local \ Arduino15 \ packages \ deauther \ hardware \ esp8266 \ 2.0.0 \ libraries \ SimpleButton More than one library found for "DNSServer.h" Used: C: \ Users \ myname \ AppData \ Local \ Arduino15 \ packages \ deauther \ hardware \ esp8266 \ 2.0.0 \ libraries \ DNSServer exit status 1 'indexhtml' was not declared in this scope ```
Author
Owner

@Bommlon commented on GitHub (Oct 26, 2020):

Did you make sure 'indexhtml' was written correctly? Because this error usually means that there's no variable with that name in the code.

<!-- gh-comment-id:716454993 --> @Bommlon commented on GitHub (Oct 26, 2020): Did you make sure 'indexhtml' was written correctly? Because this error usually means that there's no variable with that name in the code.
Author
Owner

@castalia3 commented on GitHub (Oct 26, 2020):

@Bommlon

Did you make sure 'indexhtml' was written correctly? Because this error usually means that there's no variable with that name in the code.

yes I checked the code, I also opened the updated file in data / web and I checked that the contents of index.html.gz were written correctly.

What should be the step by step procedure to edit the html? Were you successful?

thanks for the support

<!-- gh-comment-id:716460275 --> @castalia3 commented on GitHub (Oct 26, 2020): @Bommlon > Did you make sure 'indexhtml' was written correctly? Because this error usually means that there's no variable with that name in the code. yes I checked the code, I also opened the updated file in data / web and I checked that the contents of index.html.gz were written correctly. What should be the step by step procedure to edit the html? Were you successful? thanks for the support
Author
Owner

@spacehuhn commented on GitHub (Oct 26, 2020):

The procedure to is very easy as long as you only modify existing files (without adding, renaming or removing files):

  1. Make your changes to the files in the folder web_interface
  2. Run utils/webconverter.py
  3. Upload the code using Arduino

If you add or remove files, you'll need to edit wifi.h as well.

If you make changes and don't see the result, try clearing the browser cache.

<!-- gh-comment-id:716475384 --> @spacehuhn commented on GitHub (Oct 26, 2020): The procedure to is very easy as long as you only modify existing files (without adding, renaming or removing files): 1. Make your changes to the files in the folder [`web_interface`](https://github.com/SpacehuhnTech/esp8266_deauther/tree/v2/web_interface) 2. Run [`utils/webconverter.py`](https://github.com/SpacehuhnTech/esp8266_deauther/tree/v2/utils/web_converter) 3. Upload the code using Arduino If you add or remove files, you'll need to edit [`wifi.h`](https://github.com/SpacehuhnTech/esp8266_deauther/blob/v2/esp8266_deauther/wifi.h#L233) as well. If you make changes and don't see the result, try clearing the browser cache.
Author
Owner

@castalia3 commented on GitHub (Oct 26, 2020):

@spacehuhn

The procedure to is very easy as long as you only modify existing files (without adding, renaming or removing files):

  1. Make your changes to the files in the folder web_interface
  2. Run utils/webconverter.py
  3. Upload the code using Arduino

If you add or remove files, you'll need to edit wifi.h as well.

If you make changes and don't see the result, try clearing the browser cache.

Thanks for replying, The procedure you indicated is the one I followed. When I try to upload the .ino file via IDE I get this error:

More` than one library found for "EEPROM.h"
Used: C: \ Users \ myname \ AppData \ Local \ Arduino15 \ packages \ deauther \ hardware \ esp8266 \ 2.0.0 \ libraries \ EEPROM
More than one library found for "ESP8266WiFi.h"
Used: C: \ Users \ myname \ AppData \ Local \ Arduino15 \ packages \ deauther \ hardware \ esp8266 \ 2.0.0 \ libraries \ ESP8266WiFi
More than one library found for "SSD1306Wire.h"
Used: C: \ Users \ myname \ AppData \ Local \ Arduino15 \ packages \ deauther \ hardware \ esp8266 \ 2.0.0 \ libraries \ esp8266-oled-ssd1306-4.0.0
More than one library found for "ESP8266WebServer.h"
Used: C: \ Users \ myname \ AppData \ Local \ Arduino15 \ packages \ deauther \ hardware \ esp8266 \ 2.0.0 \ libraries \ ESP8266WebServer
More than one library found for "ESP8266mDNS.h"
Used: C: \ Users \ myname \ AppData \ Local \ Arduino15 \ packages \ deauther \ hardware \ esp8266 \ 2.0.0 \ libraries \ ESP8266mDNS
More than one library found for "Hash.h"
Used: C: \ Users \ myname \ AppData \ Local \ Arduino15 \ packages \ deauther \ hardware \ esp8266 \ 2.0.0 \ libraries \ Hash
More than one library found for "ArduinoJson.h"
Used: C: \ Users \ myname \ Documents \ Arduino \ libraries \ ArduinoJson
Not used: C: \ Users \ myname \ AppData \ Local \ Arduino15 \ packages \ deauther \ hardware \ esp8266 \ 2.0.0 \ libraries \ ArduinoJson
More than one library found for "Wire.h"
Used: C: \ Users \ myname \ AppData \ Local \ Arduino15 \ packages \ deauther \ hardware \ esp8266 \ 2.0.0 \ libraries \ Wire
More than one library found for "SimpleButton.h"
Used: C: \ Users \ myname \ AppData \ Local \ Arduino15 \ packages \ deauther \ hardware \ esp8266 \ 2.0.0 \ libraries \ SimpleButton
More than one library found for "DNSServer.h"
Used: C: \ Users \ myname \ AppData \ Local \ Arduino15 \ packages \ deauther \ hardware \ esp8266 \ 2.0.0 \ libraries \ DNSServer
exit status 1
'indexhtml' was not declared in this scope

Have no idea what the problem could be?

I want to clarify that to run the python script, I load the files on a usb key that I insert in raspberry with the kali linux operating system, once the script has been executed I reload the files on a usb key and load them from windows10 via arduino IDE, it could depend on it?

**
i also tried doing everything from windows 10 without going through linux, i get the exact same error message.

Thank you,

<!-- gh-comment-id:716539554 --> @castalia3 commented on GitHub (Oct 26, 2020): @spacehuhn > The procedure to is very easy as long as you only modify existing files (without adding, renaming or removing files): > > 1. Make your changes to the files in the folder [`web_interface`](https://github.com/SpacehuhnTech/esp8266_deauther/tree/v2/web_interface) > 2. Run [`utils/webconverter.py`](https://github.com/SpacehuhnTech/esp8266_deauther/tree/v2/utils/web_converter) > 3. Upload the code using Arduino > > If you add or remove files, you'll need to edit [`wifi.h`](https://github.com/SpacehuhnTech/esp8266_deauther/blob/v2/esp8266_deauther/wifi.h#L233) as well. > > If you make changes and don't see the result, try clearing the browser cache. Thanks for replying, The procedure you indicated is the one I followed. When I try to upload the .ino file via IDE I get this error: ``` More` than one library found for "EEPROM.h" Used: C: \ Users \ myname \ AppData \ Local \ Arduino15 \ packages \ deauther \ hardware \ esp8266 \ 2.0.0 \ libraries \ EEPROM More than one library found for "ESP8266WiFi.h" Used: C: \ Users \ myname \ AppData \ Local \ Arduino15 \ packages \ deauther \ hardware \ esp8266 \ 2.0.0 \ libraries \ ESP8266WiFi More than one library found for "SSD1306Wire.h" Used: C: \ Users \ myname \ AppData \ Local \ Arduino15 \ packages \ deauther \ hardware \ esp8266 \ 2.0.0 \ libraries \ esp8266-oled-ssd1306-4.0.0 More than one library found for "ESP8266WebServer.h" Used: C: \ Users \ myname \ AppData \ Local \ Arduino15 \ packages \ deauther \ hardware \ esp8266 \ 2.0.0 \ libraries \ ESP8266WebServer More than one library found for "ESP8266mDNS.h" Used: C: \ Users \ myname \ AppData \ Local \ Arduino15 \ packages \ deauther \ hardware \ esp8266 \ 2.0.0 \ libraries \ ESP8266mDNS More than one library found for "Hash.h" Used: C: \ Users \ myname \ AppData \ Local \ Arduino15 \ packages \ deauther \ hardware \ esp8266 \ 2.0.0 \ libraries \ Hash More than one library found for "ArduinoJson.h" Used: C: \ Users \ myname \ Documents \ Arduino \ libraries \ ArduinoJson Not used: C: \ Users \ myname \ AppData \ Local \ Arduino15 \ packages \ deauther \ hardware \ esp8266 \ 2.0.0 \ libraries \ ArduinoJson More than one library found for "Wire.h" Used: C: \ Users \ myname \ AppData \ Local \ Arduino15 \ packages \ deauther \ hardware \ esp8266 \ 2.0.0 \ libraries \ Wire More than one library found for "SimpleButton.h" Used: C: \ Users \ myname \ AppData \ Local \ Arduino15 \ packages \ deauther \ hardware \ esp8266 \ 2.0.0 \ libraries \ SimpleButton More than one library found for "DNSServer.h" Used: C: \ Users \ myname \ AppData \ Local \ Arduino15 \ packages \ deauther \ hardware \ esp8266 \ 2.0.0 \ libraries \ DNSServer exit status 1 'indexhtml' was not declared in this scope ``` Have no idea what the problem could be? I want to clarify that to run the python script, I load the files on a usb key that I insert in raspberry with the kali linux operating system, once the script has been executed I reload the files on a usb key and load them from windows10 via arduino IDE, it could depend on it? ** i also tried doing everything from windows 10 without going through linux, i get the exact same error message. Thank you,
Author
Owner

@castalia3 commented on GitHub (Oct 26, 2020):

image

<!-- gh-comment-id:716604723 --> @castalia3 commented on GitHub (Oct 26, 2020): ![image](https://user-images.githubusercontent.com/73337350/97188854-45ea7200-17a4-11eb-9454-a589cc3feb97.png)
Author
Owner

@castalia3 commented on GitHub (Oct 29, 2020):

Does anyone have any idea what the problem might be?

<!-- gh-comment-id:718756140 --> @castalia3 commented on GitHub (Oct 29, 2020): Does anyone have any idea what the problem might be?
Author
Owner

@spacehuhn commented on GitHub (Jan 14, 2021):

This should be fixed, but for reference:
The compiler doesn't like the -. Instead of pt-brlang you could call it ptbrlang or pt_brlang.

<!-- gh-comment-id:760455787 --> @spacehuhn commented on GitHub (Jan 14, 2021): This should be fixed, but for reference: The compiler doesn't like the `-`. Instead of `pt-brlang` you could call it `ptbrlang` or `pt_brlang`.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/esp8266_deauther#27
No description provided.