NEWS
Re-New DoorBird Adapter v1.0.x
-
Bei mir verschickt das Script das Bild nur einmal.
readFile("doorbird.0", "Doorbell1_01.jpg", function (error, data) { if (error) { console.error(error); } else { sendTo("telegram.0", { text: data, chatId: '28xxxxxxxx', type: "photo", }); } });
Deine Datenpunkte scheinen zu meinen unterschiedlich zu sein. Ich habe eine D205 und der Snapshot heißt "Doorbell1_01.jpg".
Die Chat-ID wird wohl keine Auswirkung haben. -
@negalein sagte in Re-New DoorBird Adapter v1.0.x:
@martybr sagte in Re-New DoorBird Adapter v1.0.x:
Klar, ist aber das Script von oben:
was mach ich falsch, da er mir mit dem Blockly 5x das Bild schickt?
Hi, zeig mal einen Debug-Log, wenn geklingelt wird.
-
@schmakus sagte in Re-New DoorBird Adapter v1.0.x:
Hi, zeig mal einen Debug-Log, wenn geklingelt wird.
hat etwas gedauert
doorbird.0 2023-08-22 20:43:44.382 debug Snapshot saved successfully! doorbird.0 2023-08-22 20:43:44.329 debug Received Ring-alert (ID: 102) from Doorbird! doorbird.0 2023-08-22 20:43:44.322 debug Snapshot saved successfully! doorbird.0 2023-08-22 20:43:44.289 debug Received Ring-alert (ID: 102) from Doorbird! doorbird.0 2023-08-22 20:43:44.283 debug Snapshot saved successfully! doorbird.0 2023-08-22 20:43:44.256 debug Received Ring-alert (ID: 102) from Doorbird! doorbird.0 2023-08-22 20:43:44.247 debug Snapshot saved successfully! doorbird.0 2023-08-22 20:43:44.213 debug Received Ring-alert (ID: 102) from Doorbird! doorbird.0 2023-08-22 20:43:43.719 debug Snapshot saved successfully! doorbird.0 2023-08-22 20:43:43.696 debug Received Ring-alert (ID: 102) from Doorbird! doorbird.0 2023-08-22 20:43:42.994 debug Snapshot saved successfully! doorbird.0 2023-08-22 20:43:42.975 debug Received Motion-alert from Doorbird! doorbird.0 2023-08-22 20:43:42.974 debug Snapshot saved successfully! doorbird.0 2023-08-22 20:43:42.942 debug Received Motion-alert from Doorbird! doorbird.0 2023-08-22 20:43:42.867 debug Snapshot saved successfully! doorbird.0 2023-08-22 20:43:42.823 debug Snapshot saved successfully! doorbird.0 2023-08-22 20:43:42.661 warn Error in downloading file: Error: Request failed with status code 404 doorbird.0 2023-08-22 20:43:42.568 debug Received Motion-alert from Doorbird! doorbird.0 2023-08-22 20:43:42.564 debug Received Motion-alert from Doorbird! doorbird.0 2023-08-22 20:43:42.562 debug Received Motion-alert from Doorbird! doorbird.0 2023-08-22 20:43:23.607 debug Server gestartet auf Port 8100 und IP 10.0.1.202 doorbird.0 2023-08-22 20:43:23.536 debug Okay we dont need to create any Doorbell-Schedules.. doorbird.0 2023-08-22 20:43:23.536 debug Okay we dont need to create any Doorbell-Schedules.. doorbird.0 2023-08-22 20:43:23.536 debug Checking if we need to create Schedules on DoorBird Device.. doorbird.0 2023-08-22 20:43:23.536 debug Favorites checked successfully. No actions needed! doorbird.0 2023-08-22 20:43:23.536 debug Checking if we need to create any favorites.. doorbird.0 2023-08-22 20:43:23.536 debug Favorite for Doorbell ID 101 exists! doorbird.0 2023-08-22 20:43:23.536 debug Cheking if Favorite for Doorbell ID 101 exists. doorbird.0 2023-08-22 20:43:23.536 debug Checking if we need to create any favorites.. doorbird.0 2023-08-22 20:43:23.536 debug Favorite for Doorbell ID 102 exists! doorbird.0 2023-08-22 20:43:23.536 debug Cheking if Favorite for Doorbell ID 102 exists. doorbird.0 2023-08-22 20:43:23.536 debug Checking if we need to create any favorites.. doorbird.0 2023-08-22 20:43:23.535 debug Entry "5" is: {"event":"http","param":"2","enabled":"1","schedule":{"weekdays":[{"from":"79200","to":"79199"}]}} doorbird.0 2023-08-22 20:43:23.535 debug Entry "4" is: {"event":"http","param":"2","enabled":"1","schedule":{"weekdays":[{"from":"79200","to":"79199"}]}} doorbird.0 2023-08-22 20:43:23.535 debug Entry "3" is: {"event":"http","param":"2","enabled":"1","schedule":{"weekdays":[{"from":"79200","to":"79199"}]}} doorbird.0 2023-08-22 20:43:23.535 debug Entry "2" is: {"event":"http","param":"2","enabled":"1","schedule":{"weekdays":[{"from":"79200","to":"79199"}]}} doorbird.0 2023-08-22 20:43:23.535 debug Entry "1" is: {"event":"http","param":"2","enabled":"1","schedule":{"weekdays":[{"from":"79200","to":"79199"}]}} doorbird.0 2023-08-22 20:43:23.535 debug Entry "0" is: {"event":"notify","param":"","schedule":{"weekdays":[{"from":"75600","to":"75599"}]}} doorbird.0 2023-08-22 20:43:23.535 debug The Output contains 6 entries! doorbird.0 2023-08-22 20:43:23.535 debug Detected Motion Schedule! doorbird.0 2023-08-22 20:43:23.535 debug Counted 2 Doorbells. doorbird.0 2023-08-22 20:43:23.535 debug Entry "5" is: {"event":"http","param":"1","enabled":"1","schedule":{"weekdays":[{"from":"79200","to":"79199"}]}} doorbird.0 2023-08-22 20:43:23.535 debug Entry "4" is: {"event":"http","param":"1","enabled":"1","schedule":{"weekdays":[{"from":"79200","to":"79199"}]}} doorbird.0 2023-08-22 20:43:23.535 debug Entry "3" is: {"event":"http","param":"1","enabled":"1","schedule":{"weekdays":[{"from":"79200","to":"79199"}]}} doorbird.0 2023-08-22 20:43:23.535 debug Entry "2" is: {"event":"http","param":"1","enabled":"1","schedule":{"weekdays":[{"from":"79200","to":"79199"}]}} doorbird.0 2023-08-22 20:43:23.534 debug Entry "1" is: {"event":"http","param":"1","enabled":"1","schedule":{"weekdays":[{"from":"79200","to":"79199"}]}} doorbird.0 2023-08-22 20:43:23.534 debug Entry "0" is: {"event":"notify","param":"","schedule":{"weekdays":[{"from":"75600","to":"75599"}]}} doorbird.0 2023-08-22 20:43:23.534 debug The Output contains 6 entries! doorbird.0 2023-08-22 20:43:23.534 debug The Param of the actual Schedule is: 101 doorbird.0 2023-08-22 20:43:23.534 debug Detected a Doorbell Schedule! doorbird.0 2023-08-22 20:43:23.534 debug Counted 1 Doorbells. doorbird.0 2023-08-22 20:43:23.534 debug Entry "5" is: {"event":"http","param":"0","enabled":"1","schedule":{"weekdays":[{"from":"79200","to":"79199"}]}} doorbird.0 2023-08-22 20:43:23.534 debug Entry "4" is: {"event":"http","param":"0","enabled":"1","schedule":{"weekdays":[{"from":"79200","to":"79199"}]}} doorbird.0 2023-08-22 20:43:23.534 debug Entry "3" is: {"event":"http","param":"0","enabled":"1","schedule":{"weekdays":[{"from":"79200","to":"79199"}]}} doorbird.0 2023-08-22 20:43:23.534 debug Entry "2" is: {"event":"http","param":"0","enabled":"1","schedule":{"weekdays":[{"from":"79200","to":"79199"}]}} doorbird.0 2023-08-22 20:43:23.534 debug Entry "1" is: {"event":"http","param":"0","enabled":"1","schedule":{"weekdays":[{"from":"79200","to":"79199"}]}} doorbird.0 2023-08-22 20:43:23.534 debug Entry "0" is: {"event":"notify","param":"","schedule":{"weekdays":[{"from":"75600","to":"75599"}]}} doorbird.0 2023-08-22 20:43:23.534 debug The Output contains 6 entries! doorbird.0 2023-08-22 20:43:23.533 debug The Param of the actual Schedule is: 102 doorbird.0 2023-08-22 20:43:23.533 debug Detected a Doorbell Schedule! doorbird.0 2023-08-22 20:43:23.533 debug Looping through the Schedules.. doorbird.0 2023-08-22 20:43:23.533 debug Following schedules found: [{"input":"doorbell","param":"102","output":[{"event":"notify","param":"","schedule":{"weekdays":[{"from":"75600","to":"75599"}]}},{"event":"http","param":"0","enabled":"1","schedule":{"weekdays":[{"from":"79200","to":"79199"}]}},{"event":"http","param":"0","enabled":"1","schedule":{"weekdays":[{"from":"79200","to":"79199"}]}},{"event":"http","param":"0","enabled":"1","schedule":{"weekdays":[{"from":"79200","to":"79199"}]}},{"event":"http","param":"0","enabled":"1","schedule":{"weekdays":[{"from":"79200","to":"79199"}]}},{"event":"http","param":"0","enabled":"1","schedule":{"weekdays":[{"from":"79200","to":"79199"}]}}]},{"input":"doorbell","param":"101","output":[{"event":"notify","param":"","schedule":{"weekdays":[{"from":"75600","to":"75599"}]}},{"event":"http","param":"1","enabled":"1","schedule":{"weekdays":[{"from":"79200","to":"79199"}]}},{"event":"http","param":"1","enabled":"1","schedule":{"weekdays":[{"from":"79200","to":"79199"}]}},{"event":"http","param":"1","enabled":"1","schedule":{"weekdays":[{"from":"79200","to":"79199"}]}},{"event":"http","param":"1","enabled":"1","schedule":{"weekdays":[{"from":"79200","to":"79199"}]}},{"event":"http","param":"1","enabled":"1","schedule":{"weekdays":[{"from":"79200","to":"79199"}]}}]},{"input":"motion","param":"","output":[{"event":"notify","param":"","schedule":{"weekdays":[{"from":"75600","to":"75599"}]}},{"event":"http","param":"2","enabled":"1","schedule":{"weekdays":[{"from":"79200","to":"79199"}]}},{"event":"http","param":"2","enabled":"1","schedule":{"weekdays":[{"from":"79200","to":"79199"}]}},{"event":"http","param":"2","enabled":"1","schedule":{"weekdays":[{"from":"79200","to":"79199"}]}},{"event":"http","param":"2","enabled":"1","schedule":{"weekdays":[{"from":"79200","to":"79199"}]}},{"event":"http","param":"2","enabled":"1","schedule":{"weekdays":[{"from":"79200","to":"79199"}]}}]},{"output":[{"schedule":{"weekdays":[{"from":"79200","to":"79199"}]},"param":"1","event":"relay"},{"schedule":{"weekdays":[{"from":"75600","to":"75599"}]},"param":"5","event":"http"}],"input":"rfid","param":"180,19463"},{"output":[{"schedule":{"weekdays":[{"from":"75600","to":"75599"}]},"param":"1","event":"relay"},{"event":"http","param":"7","schedule":{"weekdays":[{"from":"75600","to":"75599"}]}}],"input":"rfid","param":"184,63861"},{"output":[{"event":"relay","param":"1","schedule":{"weekdays":[{"from":"75600","to":"75599"}]}},{"event":"http","param":"4","schedule":{"weekdays":[{"from":"75600","to":"75599"}]}}],"input":"rfid","param":"162,45091"},{"output":[{"schedule":{"weekdays":[{"from":"75600","to":"75599"}]},"param":"1","event":"relay"},{"event":"http","param":"6","schedule":{"weekdays":[{"from":"75600","to":"75599"}]}}],"input":"rfid","param":"162,62522"},{"output":[{"schedule":{"weekdays":[{"from":"75600","to":"75599"}]},"param":"1","event":"relay"},{"event":"http","param":"3","schedule":{"weekdays":[{"from":"75600","to":"75599"}]}}],"input":"rfid","param":"184,36797"},{"input":"relay","param":"1","output":[]}] doorbird.0 2023-08-22 20:43:23.491 debug Result of Favorites: {"101":{"ID":"1","URL":"http://10.0.1.202:8100/ring?101"},"102":{"ID":"0","URL":"http://10.0.1.202:8100/ring?102"},"Motion":{"ID":"2","URL":"http://10.0.1.202:8100/motion"}} doorbird.0 2023-08-22 20:43:23.491 debug Found a Favorite that belongs to me.. (ID: '2') ('ioBroker doorbird.0 Motion': 'http://10.0.1.202:8100/motion') doorbird.0 2023-08-22 20:43:23.490 debug Found a Favorite that belongs to me.. (ID: '1') ('ioBroker doorbird.0 101 Ring': 'http://10.0.1.202:8100/ring?101') doorbird.0 2023-08-22 20:43:23.490 debug Found a Favorite that belongs to me.. (ID: '0') ('ioBroker doorbird.0 102 Ring': 'http://10.0.1.202:8100/ring?102') doorbird.0 2023-08-22 20:43:23.471 debug Checking favorites on DoorBird Device.. doorbird.0 2023-08-22 20:43:23.099 debug Authorization with User gheetq0002 successful! doorbird.0 2023-08-22 20:43:22.865 info starting. Version 1.2.3 (non-npm: iobroker-community-adapters/ioBroker.doorbird) in /opt/iobroker/node_modules/iobroker.doorbird, node: v18.17.1, js-controller: 4.0.24
-
@negalein sagte in Re-New DoorBird Adapter v1.0.x:
Mir fällt auf, dass du für jede Klinkel und motion jeweils 5 identische Zeitpläne hast! Bedeutet, bei jedem Klingeln werden 5 Snapshots erstellt. Da dies nahezu gleichzeitig passiert, kann es schnell zu einem Fehler 404 kommen. Gleiches beim Motion.
Es geht um die HTTP Zeitpläne. Bitte bei dir in der Doorbird App prüfen und die nicht benötigten Zeitpläne löschen.
-
@schmakus sagte in Re-New DoorBird Adapter v1.0.x:
Es geht um die HTTP Zeitpläne. Bitte bei dir in der Doorbird App prüfen und die nicht benötigten Zeitpläne löschen.
An das dachte ich auch gleich, aber das ist ja das komische.
Die sind nur 1x vorhanden. Das passt. -
@negalein sagte in Re-New DoorBird Adapter v1.0.x:
@schmakus sagte in Re-New DoorBird Adapter v1.0.x:
Es geht um die HTTP Zeitpläne. Bitte bei dir in der Doorbird App prüfen und die nicht benötigten Zeitpläne löschen.
An das dachte ich auch gleich, aber das ist ja das komische.
Die sind nur 1x vorhanden. Das passt.Das sind nicht die Zeitpläne! Das sind nur die Favoriten, also die HTTP Befehle! Die Zeitpläne findest du unter "Zeitplan für Türklingel"
-
@schmakus sagte in Re-New DoorBird Adapter v1.0.x:
Das sind nicht die Zeitpläne! Das sind nur die Favoriten, also die HTTP Befehle! Die Zeitpläne findest du unter "Zeitplan für Türklingel"
ah, die meintest du.
ist auch nur pro Klingel 1 Http Zeitplan vorhanden.
-
@negalein sagte in Re-New DoorBird Adapter v1.0.x:
@schmakus sagte in Re-New DoorBird Adapter v1.0.x:
Das sind nicht die Zeitpläne! Das sind nur die Favoriten, also die HTTP Befehle! Die Zeitpläne findest du unter "Zeitplan für Türklingel"
ah, die meintest du.
ist auch nur pro Klingel 1 Http Zeitplan vorhanden.
Irgendetwas stimmt nicht..... Die API gibt 5 Zeitpläne für ein und denselben Favorite aus.....Aber deine App zeigt jeweils nur einen Zeitplan.
Eventuell hängt es mit deinen RFID Zeitplänen zusammen?!Normal wäre:
Doorbell => Zeitplan für HTTP, Notify und evtl. SIP
Motion => Zeitplan für HTTP, Notifydoorbird.0 2023-08-22 20:43:23.534 debug Entry "5" is: {"event":"http","param":"0","enabled":"1","schedule":{"weekdays":[{"from":"79200","to":"79199"}]}} doorbird.0 2023-08-22 20:43:23.534 debug Entry "4" is: {"event":"http","param":"0","enabled":"1","schedule":{"weekdays":[{"from":"79200","to":"79199"}]}} doorbird.0 2023-08-22 20:43:23.534 debug Entry "3" is: {"event":"http","param":"0","enabled":"1","schedule":{"weekdays":[{"from":"79200","to":"79199"}]}} doorbird.0 2023-08-22 20:43:23.534 debug Entry "2" is: {"event":"http","param":"0","enabled":"1","schedule":{"weekdays":[{"from":"79200","to":"79199"}]}} doorbird.0 2023-08-22 20:43:23.534 debug Entry "1" is: {"event":"http","param":"0","enabled":"1","schedule":{"weekdays":[{"from":"79200","to":"79199"}]}} doorbird.0 2023-08-22 20:43:23.534 debug Entry "0" is: {"event":"notify","param":"","schedule":{"weekdays":[{"from":"75600","to":"75599"}]}} doorbird.0 2023-08-22 20:43:23.534 debug The Output contains 6 entries! doorbird.0 2023-08-22 20:43:23.533 debug The Param of the actual Schedule is: 102 ``
-
@schmakus sagte in Re-New DoorBird Adapter v1.0.x:
Eventuell hängt es mit deinen RFID Zeitplänen zusammen?!
die hab ich schon von Anfang an.
Ich teste jetzt mal ein paar ältere Versionen. -
@schmakus sagte in Re-New DoorBird Adapter v1.0.x:
Normal wäre:
hab jetzt alles mögliche probiert.
Zeitpläne gelöscht, neu angelegt, usw.Keine Änderung
-
@negalein sagte in Re-New DoorBird Adapter v1.0.x:
@schmakus sagte in Re-New DoorBird Adapter v1.0.x:
Normal wäre:
hab jetzt alles mögliche probiert.
Zeitpläne gelöscht, neu angelegt, usw.Keine Änderung
Interessant für mich wäre, ob mit es mit der letzten 0.2.0 Version funktionieren würde. Da war der Code noch mit request und nicht axios.
Da an der eigentlichen Logik des Adapters nichts geändert wurde. -
@schmakus sagte in Re-New DoorBird Adapter v1.0.x:
Interessant für mich wäre, ob mit es mit der letzten 0.2.0 Version funktionieren würde. Da war der Code noch mit request und nicht axios.
Hmmm, wie lautet nochmal der Befehl um die 0.2.0 zu installieren?
Über Admin gehts nur bis 1.?.x -
@negalein sagte
Hmmm, wie lautet nochmal der Befehl um die 0.2.0 zu installieren?
Über Admin gehts nur bis 1.?.xnpm install ioBroker.doorbird@0.2.0
-
@schmakus sagte in Re-New DoorBird Adapter v1.0.x:
npm install ioBroker.doorbird@0.2.0
funktioniert leider nicht
nega@ioBroker:/opt/iobroker$ npm install ioBroker.doorbird@0.2.0 [sudo] password for nega: npm ERR! code E404 npm ERR! 404 Not Found - GET https://registry.npmjs.org/ioBroker.doorbird - Not found npm ERR! 404 npm ERR! 404 'ioBroker.doorbird@0.2.0' is not in this registry. npm ERR! 404 This package name is not valid, because npm ERR! 404 1. name can no longer contain capital letters npm ERR! 404 npm ERR! 404 Note that you can also install from a npm ERR! 404 tarball, folder, http url, or git url. npm ERR! A complete log of this run can be found in: /home/iobroker/.npm/_logs/2023-09-01T18_13_52_342Z-debug-0.log nega@ioBroker:/opt/iobroker$
-
@negalein sagte in Re-New DoorBird Adapter v1.0.x:
capital letters
Keine Grossbuchstaben verwenden, also
npm install iobroker.doorbird@0.2.0
-
@djmarc75 sagte in Re-New DoorBird Adapter v1.0.x:
@negalein sagte in Re-New DoorBird Adapter v1.0.x:
capital letters
Keine Grossbuchstaben verwenden, also
npm install iobroker.doorbird@0.2.0
mein Fehler! Sorry.
-
Hallo,
2 kurze Fragen:
- habe die aktuelle 1.2.3 installiert, habe aber leider immer noch das Maximum Call Stack Problem, alle 3 Minuten... kann ich dagegen irgendetwas tun?
Error in Parsing Schedules: RangeError: Maximum call stack size exceeded
- gibt es einen Trick, wie ich die erstellten Bilder in VIS darstellen kann,
habe es mit /opt/iobroker/iobroker-data/files/doorbird.0/Doorbell1_1.jpg probiert,
funktioniert leider nicht, Bild wird nicht angezeigt.
Der Pfad ist korrekt und das Bild ist auch vorhanden/ wurde erstellt.
Wenn ich mich recht erinnere, gab es doch Probleme, Bilder in VIS darzustellen, welche nicht
im VIS Ordner liegen, oder?
Mit der ursprünglichen Adapter-Version hat es noch funktioniert.
Vielen Dank.
Grüße
-
Hallo alle zusammen,
ich habe seit gestern auch nun diese Fehlermeldungen im Log.
Ich habe leider noch keine Zeit zum debuggen gehabt, muss ich am Wochenende mir anschauen.Ich habe eine D2101V und weiß, das gestern eine neue Firmware installiert wurde (000142).
Ich möchte daher nicht ausschließen, dass es evtl damit etwas zu tun hat.RELEASE NOTES Firmware version 000142 ======================= Release type: Production Release date: 2023-08-16 Products affected: DoorBird D10x, DoorBird D20x, DoorBird D21x, BirdGuard B10x Preceding version: 000141 Corrections: Improved communication via cloud, optimize connection to hardware modules (very rare cases) New Features: n/a Known Bugs/Limitations: n/a Roll-out status: Rolling out
Ich schaue mir das ganze jedoch am Wochenede mal genauer an.
Viele Grüße
-
@ritschy2000 sagte in Re-New DoorBird Adapter v1.0.x:
Der Pfad ist korrekt und das Bild ist auch vorhanden/ wurde erstellt.
schau dir mein Widget an.
Du darfst nicht/opt/.......
schreiben.
Bei mit steht im Bildpfad/doorbird.0/Motion_1.jpg
[{"tpl":"tplImage","data":{"g_fixed":false,"g_visibility":false,"g_css_font_text":false,"g_css_background":false,"g_css_shadow_padding":false,"g_css_border":false,"g_gestures":false,"g_signals":false,"g_last_change":false,"visibility-cond":"==","visibility-val":1,"visibility-groups-action":"hide","refreshInterval":"4400","signals-cond-0":"==","signals-val-0":true,"signals-icon-0":"/vis/signals/lowbattery.png","signals-icon-size-0":0,"signals-blink-0":false,"signals-horz-0":0,"signals-vert-0":0,"signals-hide-edit-0":false,"signals-cond-1":"==","signals-val-1":true,"signals-icon-1":"/vis/signals/lowbattery.png","signals-icon-size-1":0,"signals-blink-1":false,"signals-horz-1":0,"signals-vert-1":0,"signals-hide-edit-1":false,"signals-cond-2":"==","signals-val-2":true,"signals-icon-2":"/vis/signals/lowbattery.png","signals-icon-size-2":0,"signals-blink-2":false,"signals-horz-2":0,"signals-vert-2":0,"signals-hide-edit-2":false,"lc-type":"last-change","lc-is-interval":true,"lc-is-moment":false,"lc-format":"","lc-position-vert":"top","lc-position-horz":"right","lc-offset-vert":0,"lc-offset-horz":0,"lc-font-size":"12px","lc-font-family":"","lc-font-style":"","lc-bkg-color":"","lc-color":"","lc-border-width":"0","lc-border-style":"","lc-border-color":"","lc-border-radius":10,"lc-zindex":0,"src":"/doorbird.0/Motion_1.jpg","stretch":true,"refreshOnWakeUp":true,"refreshOnViewChange":true},"style":{"left":"1837px","top":"493px","width":"193px","height":"109px","z-index":"29"},"widgetSet":"basic"}]
-