mirror of
https://github.com/tzapu/WiFiManager.git
synced 2026-04-27 17:15:53 +03:00
[GH-ISSUE #1397] Change favicon #1196
Labels
No labels
📶 WiFi
🕸️ HTTP
Branch
DEV Help Wanted
Discussion
Documentation
ESP32
Example
Good First Issue
Hotfix
In Progress
Incomplete
Needs Feeback
Priority
QA
Question
Task
Upstream/Dependancy
bug
duplicate
enhancement
invalid
pull-request
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/WiFiManager#1196
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @by-pm on GitHub (Apr 19, 2022).
Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/1397
Hi,
Is it possible to change the favicon of the WifiManager? I'd like to put my logo init.
Thanks,
pienmatla.
@makeSmartio commented on GitHub (Apr 19, 2022):
I haven't done it via the samples here, but you can set it with this line in Setup:
client.print("HTTP/1.1 301 Moved Permanently\r\nLocation: http://{ipAddress}/favicon.ico\r\n\r\n");
@tablatronix commented on GitHub (Apr 19, 2022):
Yeah there is a custom head html setter, you would have to use a base64 image though
@tablatronix commented on GitHub (Apr 19, 2022):
@tablatronix commented on GitHub (Apr 19, 2022):
You could also add a custom webhook and return an image from whereever, spiffs and proper header etc.
Or just modify the strings.h file and add it there
@by-pm commented on GitHub (Apr 20, 2022):
I think I might be too new in C/C++ for this haha. Anyone who can explain what to do exactly to change it? :)
@tablatronix commented on GitHub (Apr 20, 2022):
Do you know how to encode the image ? (its web design)
this just adds this html into the <head> of the output
and needs to be set before anything else like autoconnect() etc
@by-pm commented on GitHub (May 29, 2022):
I know how to create a base64 image, i always use base64-image.de
But i dont know where to change any code haha, as in which file or something.
Someone told me i can do it for you but i wanna learn it myself ofcourse :)
@tablatronix commented on GitHub (May 29, 2022):
I added an example to the kitchen sink example, hit up the discord for chat its not veyr active but theres a few folks in there
https://github.com/tzapu/WiFiManager/blob/master/examples/Super/OnDemandConfigPortal/OnDemandConfigPortal.ino#L147
@by-pm commented on GitHub (May 29, 2022):
Hmm i cant find that line number in my code tho. I use the wifimanager whitin another project: https://github.com/ESPWortuhr/Wortuhr
And this is the icon i wanna use:
data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAACZElEQVQ4y5WR30tTYRjHv+fwnvO87zlnO/7YdsYpydbUubnpNHI/nNNlE3NDwkzC6y7C6LaL8CIhiO67KC+EMuo/KJCkG/FWEC+C8iIoiArKCF3mTjebbKhUz933hc/n+fECAC5PTUn4z7pYKMgHwWNZD4dyOfGv8LlEwu9qaLh78KAKsam73euZbNb9N7g7Hj/Ndf0TI3pSJ2BEjjCMtz19fZ7j4Fg83kWa9k3hfOdMe3umTqAKUVI43+O6/iGRSp2sBQvFItpCoYQqxE9ViB+RaLQvlck01wmEYWy1hUJjCucl0rQvXd3d7QBwe24OwY6OUYXzXdK0r7F4vKM1EJhUOF88JLgzP4/OSCRV6bQdicXigWDwSmWyjz29vS1c14kR7Ry6gTCMrWoOR6MxVYjvCuclhWhfM4x3yXTaCwCMiDOi3apAxhEV6ezcME1zwXEcVVXVzXA43Lu2uvq5MD0Nn9ebBaDUAbUTZIeHJcu27zOisss0V5PptAYA12dnEQgGpxTO9xiRc+QK5/N52ePzLTAix2xqejGSz6sAcGlyEqcCgWsK5/vCMN4zot9HChTOGxnRfqPH82xgcJABwIXRUcluabnFiMq6273h8/ut2hvUCVQhGj2W9WC8WJQB4OrMjOS37XuMqGyY5tpQLqcxIjpWcLa/XypOTEgAMJjNyh7LelRZ52VqYIAqv3BYwHV9XXe731Tz2Pi43Oz1PlaFKDV7vc9H8nlW04yrQmyrQiwCAAOAZCKRlWVZerW8DABwuVyOz+e7EY1Gb56w7e2nS0vlqiCZTJYkx2mFJP16vbKCP8G9l0P6iF3cAAAAAElFTkSuQmCC
@by-pm commented on GitHub (May 29, 2022):
So if someone has time and wanna have a look (bc i use the wifimanager in another project i mentioned above) that would be great. If not, i understand :) Let me know, thanks in advance :)
@tablatronix commented on GitHub (May 31, 2022):
What version of wm is it?
@by-pm commented on GitHub (May 31, 2022):
The only thing I can find is @Version 0.0.0 in the WifiManager.cpp and WifiManager.h files.