Skip to content
  • Home
  • Recent
  • Tags
  • 0 Unread 0
  • Categories
  • Unreplied
  • Popular
  • GitHub
  • Docu
  • Hilfe
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
ioBroker Logo

Community Forum

donate donate
  1. ioBroker Community Home
  2. Deutsch
  3. ioBroker Allgemein
  4. VIS: Doorbird History Zeitstempel in VIS

NEWS

  • Monatsrückblick Januar/Februar 2026 ist online!
    BluefoxB
    Bluefox
    18
    1
    652

  • Jahresrückblick 2025 – unser neuer Blogbeitrag ist online! ✨
    BluefoxB
    Bluefox
    18
    1
    5.7k

  • Neuer Blogbeitrag: Monatsrückblick - Dezember 2025 🎄
    BluefoxB
    Bluefox
    13
    1
    1.5k

VIS: Doorbird History Zeitstempel in VIS

Scheduled Pinned Locked Moved ioBroker Allgemein
1 Posts 1 Posters 212 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    chrizzel
    wrote on last edited by
    #1

    Hi alle,

    ist es schon jemandem gelungen die Doorbird mit den letzten Besuchern in die VIS einzubinden? (Bild und daneben Zeitpunkt des Klingels)
    Es gibt ja die Möglichkeit mittels IP/bha-api/history.cgi?event=doorbell&index=1
    das Bild des letzten Klingels aufzurufen.
    Im Doorbird eigenen Webinterface erhält man auch die Uhrzeit des Klingels mittels
    IP/bha-api/view.html

    Wie bekommt man die Uhrzeit in die VIS eingebunden?
    Leider reichten meine Programmierkenntnisse nicht aus um den Code dahingehend auszulesen.
    Ab Code Zeile 700 scheint es dort los zu gehen:
    (Auszug)

    
    		function showHistoryImage(httpResponse) {
    			if (httpResponse && httpResponse.status == AjaxHTTPResponseStatusCode.OK && httpResponse.content != null) {
    				var parameter = httpResponse.getParameter();
    				if (parameter != null) {
    					var container = parameter.get("container");
    					var timeContainer = parameter.get("timeContainer");
    					if (container != null) {
    						var arrayBufferView = new Uint8Array(httpResponse.content);
    						var blob = new Blob([arrayBufferView], {
    							'type': 'image\/jpeg'
    						});
    						objectURL = window.URL.createObjectURL(blob);
    						container.src = objectURL;
    						if (timeContainer) {
    							try {
    								var timestamp = httpResponse.getHeader("X-Timestamp");
    								if (timestamp == null) {
    									timestamp = httpResponse.getHeader("x-timestamp");
    								}
    
    								if (timestamp) {
    									var time = parseInt(timestamp) * 1000;
    									var date = new Date(time);
    									var weekdays = new Array("Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat");
    									timeContainer.innerHTML = weekdays[date.getDay()] + " " + fillLeadingZeros(date
    											.getDate(),
    											2) + "." + fillLeadingZeros(date.getMonth() + 1, 2) + "." + date
    										.getFullYear() +
    										" " + fillLeadingZeros(date.getHours(), 2) + ":" + fillLeadingZeros(date
    											.getMinutes(),
    											2) + ":" + fillLeadingZeros(date.getSeconds(), 2);
    								}
    							} catch (e) {
    								//ignore
    							}
    						}
    					}
    				}
    			} else {
    				loadFailedHistory();
    			}
    		}
    
    		function fillLeadingZeros(value, size) {
    			var res = '';
    			for (var i = 1; i < size; i++) {
    				if (value < Math.pow(10, i)) {
    					res += '0';
    				}
    			}
    			res += '' + value;
    			return res;
    		}
    
    		function changeDesktopNotificationSetting(showAlert) {
    			if (checkNoDesktopNotificationSupport()) {
    				if (showAlert)
    					alert("This browser does not support desktop notification.");
    				return;
    			} else if (Notification.permission === "granted") {
    				showDesktopNotification = !showDesktopNotification;
    			} else if (Notification.permission === "denied") {
    				alert("You have prohibited desktop notifications of this page in your browser settings.");
    			} else {
    				Notification.requestPermission(function (permission) {
    					if (permission === "granted") {
    						showDesktopNotification = true;
    					}
    					switchDesktopNotificationEntry();
    					delete showDesktopNotification;
    				});
    				return;
    			}
    			switchDesktopNotificationEntry();
    		}
    
    		function switchDesktopNotificationEntry() {
    			updateCookieSettings();
    			if (showDesktopNotification && !monitorRunning)
    				startNotificationMonitor();
    			var notificationImg = document.getElementById("checkmark_notification_desktop");
    			if (notificationImg) {
    				if (showDesktopNotification) {
    					notificationImg.style.display = "inline";
    				} else {
    					notificationImg.style.display = "none";
    				}
    			}
    		}
    
    

    Beste Grüße

    Chris

    1 Reply Last reply
    0

    Hello! It looks like you're interested in this conversation, but you don't have an account yet.

    Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

    With your input, this post could be even better 💗

    Register Login
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    Support us

    ioBroker
    Community Adapters
    Donate
    FAQ Cloud / IOT
    HowTo: Node.js-Update
    HowTo: Backup/Restore
    Downloads
    BLOG

    511

    Online

    32.7k

    Users

    82.6k

    Topics

    1.3m

    Posts
    Community
    Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen | Einwilligungseinstellungen
    ioBroker Community 2014-2025
    logo
    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Home
    • Recent
    • Tags
    • Unread 0
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe