[gelöst] IPCAM Cam Web aktualisieren

Begonnen von wthiess, 28 Juni 2018, 19:53:25

Vorheriges Thema - Nächstes Thema

wthiess

Hallo!

Ich komm wieder mal nicht weiter. Ich habe in Fhem meine Cam eingebunden.
Ich drücke einen Knopf um ein neues Bild von der Cam zu holen. Dieses aktuelle Bild ist auch dann in einem Ordner gespeichert. Allerdings muss ich das Bild anklicken um es groß darzustellen und dann F5 drücken. Wenn ich dann wieder zurückgehe sehe ich das aktuelle Bild. Ich hätte gerne das sich die Webansicht und die Großansicht automatisch aktualisiert wird.

Hier mein Fhem.cfg
#Torsprechanlage
define TCam2 IPCAM 192.168.26.123
attr TCam2 basicauth meinusername:meinPasswort
attr TCam2 delay 5
attr TCam2 path cgi-bin/images_cgi?channel=0
attr TCam2 room Sprechanlage
attr TCam2 snapshots 1
attr TCam2 storage /opt/fhem/www/snapshots/tor

define TCam2s dummy
attr TCam2s alias Tor Cam aktualisieren
attr TCam2s devStateIcon on:HOME_Status.0 off:HOME_Status.1 .*:HOME_Status.1
attr TCam2s group Sprechanlage
attr TCam2s room Sprechanlage
attr TCam2s setList on off
attr TCam2s webCmd NEU
define TCam2z notify TCam2s:on sleep 1;; set TCam2s off

#hier sollte die Webdarstellung aktualisiert werden.
define TCam2ButtonN notify TCam2s:on trigger WEB JS:location.reload(true)
attr TCam2ButtonN room Unsorted
define TCam2s1 notify TCam2s:on get TCam2 image
attr TCam2s1 group Unsorted
attr TCam2s1 room Unsorted

define TCam2a weblink htmlCode { torsprechanlage1(1,1,360,240)}
attr TCam2a group Sprechanlage
attr TCam2a room Sprechanlage


Hat jemand bitte einen Tipp für mich.
lg
Wolfgang
Raspberry Pi 3; 8xRelais; Aptodec Nano V3.0 Pro; FS1000a; RF-5V; Hama TS33C; 3x Brennerstuhl FunkSteckdosen; 9x Dooya funk Rollo; KWL Systemair VR400; Thermokon Modbusthermostat; diverse China Modbus Thermostate; 1-wire Bus; Telegram; QuickFhem; FhemNative; Firmata; Alexa ......