QR Code on OLED
Moderators: grovkillen, Stuntteam, TD-er
-
- Normal user
- Posts: 57
- Joined: 28 Sep 2020, 13:58
QR Code on OLED
I have made a heater controller for an Espresso machine. I have an OLED display and a web interface (dashboard) to set the temperature. My idea is to use the ESP in Access Point mode and show the QR code for the AP on start up. Then, ideally the dashboard would be the default web page.
Tall order, I know. Is it possible?
Thanks
Tony
Tall order, I know. Is it possible?
Thanks
Tony
Re: QR Code on OLED
Not yet, but I guess it would be a nice feature to setup a "captive portal" which will redirect to the dashboard when available.
There is already code for a "captive portal" in the setup phase, to redirect to /setup when no WiFi is configured.
So I guess we can add a checkbox to redirect to /dashboard.esp when it is available.
There is already code for a "captive portal" in the setup phase, to redirect to /setup when no WiFi is configured.
So I guess we can add a checkbox to redirect to /dashboard.esp when it is available.
Re: QR Code on OLED
The currently supported OLed displays (P023 and P036) don't have support for displaying user-defined graphics.
I have planned to create a plugin for the SSD1306/SH1106 displays that uses the AdafruitGFX Helper, already in use for P095 (TFT), P096 (ePaper), P116 (TFT) and P131 (NeoPixel matrix), that can display BMP graphics files (for a predefined QR code stored on the Flash filesystem), but also you can draw the QR code using rules (that will be a tedious job though ), but haven't started work on that yet.
You must also take in account that 128x64 pixels is rather small for a QR code (that is supposed to be square, so effectively 64x64 pixels) and also the largest OLed I've seen is 1.3" diagonal, it will be a challenge to get that working.
I have planned to create a plugin for the SSD1306/SH1106 displays that uses the AdafruitGFX Helper, already in use for P095 (TFT), P096 (ePaper), P116 (TFT) and P131 (NeoPixel matrix), that can display BMP graphics files (for a predefined QR code stored on the Flash filesystem), but also you can draw the QR code using rules (that will be a tedious job though ), but haven't started work on that yet.
You must also take in account that 128x64 pixels is rather small for a QR code (that is supposed to be square, so effectively 64x64 pixels) and also the largest OLed I've seen is 1.3" diagonal, it will be a challenge to get that working.
/Ton (PayPal.me)
Re: QR Code on OLED
The dashboard.esp portal can fetch the QR code from an external source, of course, the presentation is then left to the users' web browser.
/Ton (PayPal.me)
Re: QR Code on OLED
Technically the QR code of how to access the access point could be fixed and then it is possible to....
Well it does require quite some tech knowledge and requires a lot of experience in handling...
But it should be possible to create a QR online using one of the many online generators and then print it. Then stick this print on the device.
I know it is a bit hard-core, but it should be doable...
Well it does require quite some tech knowledge and requires a lot of experience in handling...
But it should be possible to create a QR online using one of the many online generators and then print it. Then stick this print on the device.
I know it is a bit hard-core, but it should be doable...
-
- Normal user
- Posts: 57
- Joined: 28 Sep 2020, 13:58
Re: QR Code on OLED
There are examples on Youtube of QR code reading from 1.3" OLED - so that bit is viable. And my own experiments with small QR codes on a laptop screen give me some confidence.
Thanks
Tony
- how can I do this? I have a 1.3" SH1106.you can draw the QR code using rules
That sounds like a really useful feature!There is already code for a "captive portal" in the setup phase, to redirect to /setup when no WiFi is configured.
So I guess we can add a checkbox to redirect to /dashboard.esp when it is available.
Thanks
Tony
Re: QR Code on OLED
That requires that I create that plugin P136 for this display type, using AdafruitGFX helper... that doesn't exist yetwiredcharlie wrote: ↑27 Aug 2022, 14:34- how can I do this? I have a 1.3" SH1106.you can draw the QR code using rules
/Ton (PayPal.me)
-
- Normal user
- Posts: 57
- Joined: 28 Sep 2020, 13:58
Re: QR Code on OLED
But, no pressure.
-
- Normal user
- Posts: 57
- Joined: 28 Sep 2020, 13:58
Re: QR Code on OLED
Yes it is. But what if then flashed up an optional bitmap for an optional period of time? Eh?
-
- Normal user
- Posts: 57
- Joined: 28 Sep 2020, 13:58
Re: QR Code on OLED
I'm still keen on this - is it likely to happen - PleaseTD-er wrote: ↑27 Aug 2022, 13:05 Not yet, but I guess it would be a nice feature to setup a "captive portal" which will redirect to the dashboard when available.
There is already code for a "captive portal" in the setup phase, to redirect to /setup when no WiFi is configured.
So I guess we can add a checkbox to redirect to /dashboard.esp when it is available.
Who is online
Users browsing this forum: No registered users and 1 guest