GithubHelp home page GithubHelp logo

jamct / doorsignepd Goto Github PK

View Code? Open in Web Editor NEW
100.0 100.0 36.0 2.36 MB

Doorsign with E-Paper-Display with ESP32. Loading images from webserver.

License: GNU General Public License v3.0

PHP 59.23% C++ 40.77%
c-plus-plus door-sign esp32 esp32-arduino php

doorsignepd's People

Contributors

ahinrichs avatar gulaschcowboy avatar jamct avatar jdede avatar l3d00m avatar qwykx avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

doorsignepd's Issues

Display slightly moved to the right

Hi,
I'm trying to build this project and everything is working fine except that the display appears to have an left padding of approx 80 Pixels. So if I choose the Weather Image and 28 scale which should fill out the screen completely, it's cut of on the right. The fun part is, that the cut of part appears in the padding space on the left.
As server I am running Apache 2.4.25 on Debian.

a little help would be greatly appreciated.

best

Display 7.5bwr

Hi,

Die Einstellung

#define DISPLAY_TYPE '7.5bwr'

führt bei mir zu einem kontinuierlichen Reboot (jede Sekunde). 7.5 ohne bwr funktioniert.

Viele Grüße,

Daniel

ps. Board wie im Artikel LOLIN32 mit Lipo Charger. Gerade auch an einem zweiten, brandneuen Board ausprobiert mit identischem Ergebnis.

change sleeptime dynamicly

Is there a possiblity to change the sleeptime dynamicly like it is done with the Production mode?

//To stop productionMode (no deep sleep, web config), set http-header X-productionMode: false #header("X-productionMode: false");

If Yes: Please provide the required Header or publish in which file/library the Header is processed.

Error: -55

Hello,

after successfully compile with Arduino IDE 1.8.8 in Linuxmint and upload to an Olimex ESP32-EBV I just get this serial output:

`Basecamp V.0.1.6
MAC-Address: 24:0a:c4:17:5f:6c, Hardware MAC: 24:0a:c4:17:5f:6c


  • ACCESS POINT PASSWORD: NhU/,:yK

Wait till the client is connected
Not going to deep sleep. Reason: Not in production mode
Connection setup in progres
Error:-55
transmitDone
OnDisconnect
transmitDone
Not going to deep sleep. Reason: Not in production mode
Wait till the client is connected
Not going to deep sleep. Reason: Not in production mode
Connection setup in progres
Error:-55
transmitDone
OnDisconnect
transmitDone
`
The setup page looks like this:
doorsign_settings

I do use an dns name here and not the hostname or ip address!

Here are the test of the webserver (Apache 2.4) with debug=false
doorsign_webserver

and debug=true:
doorsign_webserver_true

btw. the display is connected to the pins like shown here:
tn_ct 0218 068-070 neu1 qxp_table_9813

But there is nothing shown on the display at all...

Maybe someone can point me to the right direction where to dig...

ESP32 ruft nach deep sleep keine Grafik ab

Hallo.
Der ESP ruft nach dem Aufwachen keine Grafik ab. Es erscheint im seriellen Monitor nur:
. . . . . . Wait till the client is connected Going to deep sleep now...
Selbst ein Aus- und wieder Einschalten, veranlasst den ESP32 nicht, die Grafik anzufordern.
Danke für die Hilfe.
Viele Grüße
Boris

Not showing correct SSID of AP

  • Basecamp now supports variable SSID, depending on MAC-address. When display is not configured, it says: "Connect to hotspot 'ESP32'".
  • Display always shows secret (even if no AP-secret is set)

entferne eraseDisplay

Hi
in der doorsignEPD.ino
Zeile 166
Ich hab mich schon länger gefragt warum das display zuerst gelöscht werden muss und dann upgedatet.
wenn Du das eraseDisplay(true); mit einen delay(3000); ersetzt wird das display upgedatet ohne vorher gelöscht werden zu müssen.

Anscheinen hat der http client eine delay wenn Du ihn zu früh abfragst ist das Ergebnis leer --> kein Bild auf dem Display.

Bilderstream modularisieren

Ich arbeite an einer ähnlichen Lösung, möchte dafür aber MagicMirror als Basis nehmen. Das ist sehr leicht konfigurierbar und mit Hilfe von Puppeteer kann ich per Skript automatisiert das MM-Bild als png wegspeichern.
Könnte man dieses Projekt hier irgendwie abspecken, damit ich nur den "Kanal" also den Stream des pngs. vom Server zum ESP32 alleine nutzen kann?
Der Rest läuft ja schon auf dem Raspi.
Auch bin ich mir nicht sicher, ob ich das irgendwie OHNE basecamp hinbekommen kann, welches ja nicht mehr supported wird.

Check gd enabled

Hi
if gd ein NOT enabled the is only a 500 (not responding) return code.
It wold be fine if gd is checked in the server index.php
eg:

@@ -47,6 +47,10 @@
^M
$displayWidth = explode("x",DISPLAYS[$displayType]['size'])[0];^M
$displayHeight = explode("x",DISPLAYS[$displayType]['size'])[1];^M
+#check GD support
+if ( ! extension_loaded('gd')) {

  •   echo "<br>GD support is NOT loaded ";
    

+}
$im = imagecreate($displayWidth, $displayHeight);^M
$background_color = ImageColorAllocate ($im, 255, 255, 255);^M
$black = imagecolorallocate($im, 0, 0, 0);^M

Best NoXorius

Watchdog (AsyncTCP)

Hi,

i try to use a e paper 4.2bwr (tried it with and without "bwr") with an AZ-Delivery ESp32 Dev Board. But, I always get the same error:

`Trying to connect ...
[E][AsyncTCP.cpp:722] connect(): error: -16
Not going to deep sleep. Reason: Not in production mode
Ongoing connection
In setup mode
Not going to deep sleep. Reason: Not in production mode
Ongoing connection
In setup mode
E (6042) task_wdt: Task watchdog got triggered. The following tasks did not reset the watchdog in time:
E (6042) task_wdt:  - async_tcp (CPU 0/1)
E (6042) task_wdt: Tasks currently running:
E (6042) task_wdt: CPU 0: IDLE0
E (6042) task_wdt: CPU 1: IDLE1
E (6042) task_wdt: Aborting.
abort() was called at PC 0x400ecf77 on core 0

Backtrace: 0x4008c970:0x3ffbe170 0x4008cba1:0x3ffbe190 0x400ecf77:0x3ffbe1b0 0x40084c49:0x3ffbe1d0 0x40185107:0x3ffbc8f0 0x400ee8fa:0x3ffbc910 0x4008a839:0x3ffbc930 0x40089055:0x3ffbc950

Rebooting...
ets Jun  8 2016 00:22:57

`

Backtrace
0x4008c970: invoke_abort at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/esp32/panic.c line 155 0x4008cba1: abort at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/esp32/panic.c line 170 0x400ecf77: task_wdt_isr at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/esp32/task_wdt.c line 174 0x40185107: esp_pm_impl_waiti at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/esp32/pm_esp32.c line 492 0x400ee8fa: esp_vApplicationIdleHook at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/esp32/freertos_hooks.c line 63 0x4008a839: prvIdleTask at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/freertos/tasks.c line 3382 0x40089055: vPortTaskWrapper at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/freertos/port.c line 143

I tried to follow the guide, but I`m a little lost
GxEPD 3.1.0
Basecamp 1.8.0
Adafruit_GFX 1.10.2
Asynctcp - latest via git clone
ArduinoJSON 5.13.5
ESPAsyncWebServer - latest via git clone

If i disable
display.update();
at
onDisconnectHandler
it seems no to crash.

How can I debug this? Does the display take too long? Is it a bad Wifi connection,...

GxEPD Example with 4.2 and 4.2bwr Display does work - so no hardware issue?

Try to reconnect to a WiFi network

If the connection to a WiFi network fails, the screen always displays the message Could not connect to <SSID>. The ESP32 has to be reset to update the display again. The device should try to reconnect to the network after a defined period of time (i.e. after the sleep period).

development?

Hi,
first line of the Readme states "Currently under development".
Is there any active development? last commit from 2 years ago

Display shows "Wifi not configured!". But Wifi is configured

Hello,

I have now rebuilt the door sign. However, the display shows all the time "Wifi not configured! Connect to hotspot 'ESP32' and open 192.168.4.1" although I have connected to the hostpot, set up the wifi and set the server address (in my case both times http: // 192.168.178.26/server/?debug=true&display=7.5&content=door_sign&scale=28).

Akku-Anzeige

Ich habe auch ein Lolin32 und einen 2500mAh Flachakku angeschlossen, mit 10 min sleeptime bin ich damit auf gut eine Woche Laufzeit gekommen. Ich überlege mir jetzt, die Akku-Messung aus dem Türsensor-Projekt mit einzubauen und den Wert auf das Display zu bringen. Ich bin mir nur nicht sicher, was dazu der beste Weg ist... im ESP-Code direkt auf‘s Display schreiben oder den Wert z.B. in die URL einbauen und vom index.php in die Grafik zeichnen lassen?

Pythonversion des Servers

Hallo,

ich ersetze gerade den Server durch mein eigenes Python Script. Soweit habe ich mit bottle schon einiges hinbekommen. Ich scheitere im Moment allerdings an dieser Funktion:

$bytes .= pack('H*', str_pad(base_convert($bits, 2, 16),2, "0", STR_PAD_LEFT))

Hat jemand eine Idee wie man das in Python schreibt?

Viele Grüße,

Daniel

compiling error the code

Hello, for unknown reasons. The compiling procedure stucks a some point?
I can´t figure out why. I did not change anything and it should work froim the startt. All errors occour- yeah I don´t know.

Any ideas?

Thanks in advance.

Regards Dominik

Below is the error code:

"Arduino: 1.8.7 (Windows 7), Board: "DOIT ESP32 DEVKIT V1, 80MHz, 115200, None"

WARNUNG: Bibliothek async-mqtt-client-0.8.1 behauptet auf (esp8266) Architektur(en) ausgeführt werden zu können und ist möglicherweise inkompatibel mit Ihrem derzeitigen Board, welches auf (esp32) Architektur(en) ausgeführt wird.
In file included from C:\Users...\Documents\Arduino\libraries\Basecamp-master/WebServer.hpp:16:0,

             from C:\Users\...\Documents\Arduino\libraries\Basecamp-master/Basecamp.hpp:23,

             from C:\Users\...\Documents\Arduino\libraries\DoorsignEPD-master\DoorsignEPD-master\esp32\doorsignEPD\doorsignEPD.ino:5:

C:\Users...\Documents\Arduino\libraries\ESPAsyncWebServer-master\src/AsyncJson.h:70:5: error: 'DynamicJsonBuffer' does not name a type

 DynamicJsonBuffer _jsonBuffer;

 ^

C:\Users...\Documents\Arduino\libraries\ESPAsyncWebServer-master\src/AsyncJson.h: In constructor 'AsyncJsonResponse::AsyncJsonResponse(bool)':

C:\Users...\Documents\Arduino\libraries\ESPAsyncWebServer-master\src/AsyncJson.h:78:17: error: '_jsonBuffer' was not declared in this scope

     _root = _jsonBuffer.createArray();

             ^

C:\Users...\Documents\Arduino\libraries\ESPAsyncWebServer-master\src/AsyncJson.h:80:17: error: '_jsonBuffer' was not declared in this scope

     _root = _jsonBuffer.createObject();

             ^

C:\Users...\Documents\Arduino\libraries\ESPAsyncWebServer-master\src/AsyncJson.h: In member function 'size_t AsyncJsonResponse::setLength()':

C:\Users...\Documents\Arduino\libraries\ESPAsyncWebServer-master\src/AsyncJson.h:86:30: error: 'class ArduinoJson650_0_0::JsonVariant' has no member named 'measureLength'

   _contentLength = _root.measureLength();

                          ^

C:\Users...\Documents\Arduino\libraries\ESPAsyncWebServer-master\src/AsyncJson.h: In member function 'size_t AsyncJsonResponse::getSize()':

C:\Users...\Documents\Arduino\libraries\ESPAsyncWebServer-master\src/AsyncJson.h:91:30: error: '_jsonBuffer' was not declared in this scope

size_t getSize() { return _jsonBuffer.size(); }

                          ^

C:\Users...\Documents\Arduino\libraries\ESPAsyncWebServer-master\src/AsyncJson.h: In member function 'virtual size_t AsyncJsonResponse::_fillBuffer(uint8_t*, size_t)':

C:\Users...\Documents\Arduino\libraries\ESPAsyncWebServer-master\src/AsyncJson.h:95:13: error: 'class ArduinoJson650_0_0::JsonVariant' has no member named 'printTo'

   _root.printTo( dest ) ;

         ^

In file included from C:\Users...\Documents\Arduino\libraries\Basecamp-master/WebServer.hpp:16:0,

             from C:\Users\...\Documents\Arduino\libraries\Basecamp-master/Basecamp.hpp:23,

             from C:\Users\...\Documents\Arduino\libraries\DoorsignEPD-master\DoorsignEPD-master\esp32\doorsignEPD\doorsignEPD.ino:5:

C:\Users...\Documents\Arduino\libraries\ESPAsyncWebServer-master\src/AsyncJson.h: In member function 'virtual void AsyncCallbackJsonWebHandler::handleRequest(AsyncWebServerRequest*)':

C:\Users...\Documents\Arduino\libraries\ESPAsyncWebServer-master\src/AsyncJson.h:136:9: error: 'DynamicJsonBuffer' was not declared in this scope

     DynamicJsonBuffer jsonBuffer;

     ^

C:\Users...\Documents\Arduino\libraries\ESPAsyncWebServer-master\src/AsyncJson.h:137:28: error: 'jsonBuffer' was not declared in this scope

     JsonVariant json = jsonBuffer.parse((uint8_t*)(request->_tempObject));

                        ^

C:\Users...\Documents\Arduino\libraries\ESPAsyncWebServer-master\src/AsyncJson.h:138:18: error: 'class ArduinoJson650_0_0::JsonVariant' has no member named 'success'

     if (json.success()) {

              ^

Mehrere Bibliotheken wurden für "WiFi.h" gefunden
Benutzt: C:\Users...\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.0\libraries\WiFi
Nicht benutzt: C:\Program Files (x86)\Arduino\libraries\WiFi
exit status 1
Fehler beim Kompilieren für das Board DOIT ESP32 DEVKIT V1.

Core panic

Sometime (it seems randomly) I get a Core Panic, but I didn't know what I could do.

15:42:16.890 -> Basecamp V.0.1.6
15:42:17.081 -> MAC-Address: 24:0a:c4:97:34:5c, Hardware MAC: 24:0a:c4:97:34:5c
15:42:17.081 -> *******************************************
15:42:17.081 -> * ACCESS POINT PASSWORD: nNF6z5WZ
15:42:17.081 -> *******************************************
15:42:17.081 ->
15:42:17.368 -> Wait till the client is connected
15:42:17.368 -> Not going to deep sleep. Reason: Connection setup in progres
15:42:17.368 -> OnConnect
15:42:17.368 ->
15:42:18.853 -> OnData: 1436 Bytes
15:42:18.853 -> HTTP/1.1 200 OK
15:42:18.853 -> Date: Wed, 10 Feb 2021 14:42:18 GMT
15:42:18.853 -> Server: Apache/2.4.41 (Ubuntu)
15:42:18.853 -> Strict-Transport-Security: max-age=63072000; includeSubDomains
15:42:18.853 -> X-sleepInterval: 40
15:42:18.853 -> Content-Length: 61440
15:42:18.853 -> Vary: Accept-Encoding
15:42:18.853 -> X-Content-Type-Options: nosniff
15:42:18.853 -> X-Frame-Options: SAMEORIGIN
15:42:18.853 -> X-XSS-Protection: 1; mode=block
15:42:18.853 -> Connection: close
15:42:18.853 -> Content-Type: text/html; charset=UTF-8
15:42:18.853 -> ProductionMode: 1
15:42:18.853 -> Printing 1063 Bytes to the screen
15:42:18.853 -> OnData: 1436 Bytes
15:42:18.853 -> Printing 1436 Bytes to the screen
15:42:18.853 -> OnData: 1436 Bytes
15:42:18.901 -> Printing 1436 Bytes to the screen
15:42:18.901 -> OnData: 1436 Bytes
15:42:18.901 -> Printing 1436 Bytes to the screen
15:42:18.948 -> OnData: 1436 Bytes
15:42:18.948 -> Printing 1436 Bytes to the screen
15:42:18.948 -> Guru Meditation Error: Core 1 panic'ed (LoadProhibited). Exception was unhandled.

Anzeige fehlerhaft: Nur eine Zeile "Buchstaben"

Hallo,
ich brauch mal eure Hilfe. ESP32 (Wemos) und Display (Waveshare 4.2) sind anscheinend korrekt angeschlossen. Ich bekomme die Anzeige "Wifi not configured (...)" auf dem Display zu sehen. Ich habe eine statische PNG auf den Server gelegt, mit "debug=true" wird die Grafik im Browser angezeigt.
Gebe ich in der Web-Config aber "/gfx?debug=false&content=static_image" ein und speichere, wird eine Zeile mit kleinen Schriftzeichen (?) ausgegeben. Das ist übrigens bei allen Beispielen so.

Seriell bekomme ich dabei folgendes ausgegeben:

OnData: 632 Bytes
HTTP/1.1 301 Moved Permanently
Date: Sat, 10 Mar 2018 18:32:03 GMT
Server: Apache/2.4.18 (Ubuntu)
Location: http://192.168.7.84/gfx/?debug=false&content=static_image&display=4.2
Content-Length: 363
Connection: close
Content-Type: text/html; charset=iso-8859-1
ProductionMode: 0
Printing 363 Bytes to the screen
OnDisconnect
Power On : 34946
update : 4069593
Power Off : 39930
transmitDone
Not going to deep sleep. Reason:
Not in production mode

Ich weiß jetzt echt nicht mehr weiter und wäre für Tipps dankbar.
Viele Grüße
Boris

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.