Blink Security Home Kamera - Modul - 48_BlinkCamera.pm

Begonnen von viegener, 26 Oktober 2016, 22:31:25

Vorheriges Thema - Nächstes Thema

taskkill

Hallo,
habe Blink installiert und bin beim einstellen.
Habe die Ordner einfach erstellt, so wie im Reading vorgegeben
Nun meine Frage, wie kann ich den "path" networkCamera512658File
/opt/fhem/BlinkCamera_blink_thumbnail_camera_512658_thumbnail.jpg?ts=1731508733&ext=.jpg ändern damit er nicht direkt im Fhem-Verzeichnis die Bilder ablegt. Und wo oder wie finde ich die mp4-Dateien.

anbei list und def

Internals:
   AuthToken  5sLTW1kYwpxxxxxx
   DEF        xxx@gmx.de
   Email      xxx@gmx.de
   FAILS      0
   FUUID      67346385-f33f-9a8d-69dc-xxxx
   NAME       blink
   NR         244
   POLLING    0
   SNAME      blink
   STATE      Polling
   TYPE       BlinkCamera
   URL        https://rest-prde.immedia-semi.com
   account    400000
   alertSkipped 0
   clientid   18800000
   cmd        cmd :login:
   cmdJson   
   cmdResult  SUCCESS
   doStatus   
   eventCount 367
   pollResult homescreen : SUCCESS
   sourceVersion $Id: 48_BlinkCamera.pm 27656 2023-06-05 08:23:39Z viegener $
   thumbnail512658Url /api/v3/media/accounts/400465/networks/664174/owl/512658/thumbnail/thumbnail.jpg?ts=1731508733&ext=
   updateTimestamp 2024-11-13T14:38:52+00:00
   HU_DO_PARAMS:
     NAME       
     addr       https://rest-prde.immedia-semi.com:443
     auth       0
     cmd        alerts
     code       200
     compress   1
     conn       
     data       
     displayurl
     header     agent: TelegramBot/1.0
User-Agent: TelegramBot/1.0
Host: rest-prde.immedia-semi.com
token-auth: 5sLTW1kYwpnxxxxx
     hideurl    1
     host       rest-prde.immedia-semi.com
     httpheader HTTP/1.1 200 OK
Content-Type: application/json
Connection: close
Date: Wed, 13 Nov 2024 14:47:06 GMT
X-Content-Type-Options: nosniff
X-Powered-By: Phusion Passenger(R)
Account-Id: 400000
Client-Id: 188xxxx
Client-Verified: 1
Server: nginx + Phusion Passenger(R)
Status: 200 OK
User-Id: 400000
Vary: Accept-Encoding
X-Blink-Served-By: i-0d5ecf4b4d9b66316
X-Cache: Miss from cloudfront
Via: 1.1 c31ad517510d586c0f2aa3c5dbc40b06.cloudfront.net (CloudFront)
X-Amz-Cf-Pop: DUS51-P1
X-Amz-Cf-Id: tehPB4W323iI32uVkn2jquixxxxtO-se_Y4R_aUA7cDg==
     hu_blocking 0
     hu_filecount 365
     hu_port    443
     hu_portSfx
     loglevel   4
     method     GET
     par1       1
     par2       HIDDEN
     path       /api/v1/accounts/400000/media/changed?page=1&since=2024-11-13T14:38:52Z
     protocol   https
     redirects  0
     timeout    30
     url        https://rest-prde.immedia-semi.com/api/v1/accounts/400465/media/changed?page=1&since=2024-11-13T14:38:52Z
     args:
       alerts
       1
       HIDDEN
       2
     hash:
     sslargs:
   READINGS:
     2024-11-13 15:39:01   alertCamera     512658
     2024-11-13 15:39:01   alertCameraName Blink
     2024-11-13 15:39:01   alertID         6446633452
     2024-11-13 15:39:01   alertTime       2024-11-13T14:38:52+00:00
     2024-11-13 15:39:01   alertVideo      /api/v3/media/accounts/400000/networks/664174/owl/512658/pir/6446633452.mp4
     2024-11-13 15:14:05   cmd             login
     2024-11-13 15:47:06   cmdResult       SUCCESS
     2024-11-13 15:39:01   eventTimestamp  2024-11-13T14:38:52+00:00
     2024-11-13 14:56:00   liveCam         512658
     2024-11-13 14:56:00   liveVideo       immis://18.159.133.212:443/G8wh-R4clX6nx6fz__IMDS_G8T1940011320R8C?client_id=512658
     2024-11-13 15:47:06   networkArmed    true
     2024-11-13 15:47:06   networkCamera512658 Blink:armed
     2024-11-13 15:47:06   networkCamera512658Active armed
     2024-11-13 15:47:06   networkCamera512658Enabled 1
     2024-11-13 15:39:02   networkCamera512658File /opt/fhem/BlinkCamera_blink_thumbnail_camera_512658_thumbnail.jpg?ts=1731508733&ext=.jpg
     2024-11-13 15:47:06   networkCamera512658Firmware 9.96
     2024-11-13 15:39:02   networkCamera512658Img blink/thumbnail/camera/512658_thumbnail.jpg?ts=1731508733&ext=.jpg">blink/thumbnail/camera/512658_thumbnail.jpg?ts=1731508733&ext=.jpg" height=36 widht=64>/fhem/BlinkCamera/blink/thumbnail/camera/512658_thumbnail.jpg?ts=1731508733&ext=.jpg
     2024-11-13 15:47:06   networkCamera512658Name Blink
     2024-11-13 15:47:06   networkCamera512658Status online
     2024-11-13 15:39:02   networkCamera512658Thumbnail /api/v3/media/accounts/400000/networks/664174/owl/512658/thumbnail/thumbnail.jpg?ts=1731508733&ext=
     2024-11-13 15:47:06   networkCamera512658Type owl
     2024-11-13 15:47:06   networkCamera512658Url /fhem/BlinkCamera/blink/thumbnail/camera/512658.jpg
     2024-11-13 15:47:06   networkCameras  512658:Blink

     2024-11-13 15:47:06   networkName     blink
     2024-11-13 15:47:06   networkSyncFirmware
     2024-11-13 15:47:06   networkSyncId   
     2024-11-13 15:47:06   networkSyncModule
     2024-11-13 15:47:06   networkSyncName
     2024-11-13 15:47:06   networkSyncSerial
     2024-11-13 15:47:06   networkSyncType
     2024-11-13 15:47:06   networkSyncWifi
     2024-11-13 15:47:06   networks        664174:blink
     2024-11-13 15:14:05   region          prde
     2024-11-13 15:14:05   regionName      eu
   cmdQueue:
   getoptions:
     cameraList
     getInfo   
     getInfoCamera Blink,512658,all
     getNetworks
     getThumbnail Blink,512658,all
     getVideoAlert
     liveview   Blink,512658,all
   setoptions:
     arm       
     camDisable Blink,512658,all
     camEnable  Blink,512658,all
     disarm     
     login     
     reset     
     resetUniqueID
     verifyPin 
     videoDelete
     zDebug     
   videos:
     6445083805 2024-11-13T09:35:20+00:00|2024-11-13T09:35:20+00:00|512658||/api/v3/media/accounts/400000/networks/664174/owl/512658/pir/6445083805.mp4
     6445097124 2024-11-13T09:38:20+00:00|2024-11-13T09:38:20+00:00|512658||/api/v3/media/accounts/400000/networks/664174/owl/512658/pir/6445097124.mp4
     6445098928 2024-11-13T09:38:45+00:00|2024-11-13T09:38:45+00:00|512658||/api/v3/media/accounts/400000/networks/664174/owl/512658/pir/6445098928.mp4
     6445120186 2024-11-13T09:43:30+00:00|2024-11-13T09:43:30+00:00|512658||/api/v3/media/accounts/400000/networks/664174/owl/512658/pir/6445120186.mp4
     
Attributes:
   homeScreenV3 1
   imgOriginalFile 1
   pollingTimeout 11
   proxyDir   /opt/fhem/


defmod blink BlinkCamera xxx@gmx.de
attr blink homeScreenV3 1
attr blink imgOriginalFile 1
attr blink pollingTimeout 11
attr blink proxyDir /opt/fhem/

setstate blink Polling
setstate blink 2024-11-13 15:39:01 alertCamera 512658
setstate blink 2024-11-13 15:39:01 alertCameraName Blink
setstate blink 2024-11-13 15:39:01 alertID 6446633452
setstate blink 2024-11-13 15:39:01 alertTime 2024-11-13T14:38:52+00:00
setstate blink 2024-11-13 15:39:01 alertVideo /api/v3/media/accounts/400000/networks/664174/owl/512658/pir/6446633452.mp4
setstate blink 2024-11-13 15:14:05 cmd login
setstate blink 2024-11-13 16:07:28 cmdResult SUCCESS
setstate blink 2024-11-13 15:39:01 eventTimestamp 2024-11-13T14:38:52+00:00
setstate blink 2024-11-13 14:56:00 liveCam 512658
setstate blink 2024-11-13 14:56:00 liveVideo immis://18.159.133.212:443/G8wh-R4clX6nxxxxxx940011320R8C?client_id=512658
setstate blink 2024-11-13 16:07:28 networkArmed true
setstate blink 2024-11-13 16:07:28 networkCamera512658 Blink:armed
setstate blink 2024-11-13 16:07:28 networkCamera512658Active armed
setstate blink 2024-11-13 16:07:28 networkCamera512658Enabled 1
setstate blink 2024-11-13 15:39:02 networkCamera512658File /opt/fhem/BlinkCamera_blink_thumbnail_camera_512658_thumbnail.jpg?ts=1731508733&ext=.jpg
setstate blink 2024-11-13 16:07:28 networkCamera512658Firmware 9.96
setstate blink 2024-11-13 15:39:02 networkCamera512658Img <html><a href="/fhem/BlinkCamera/blink/thumbnail/camera/512658_thumbnail.jpg?ts=1731508733&ext=.jpg"><img src="/fhem/BlinkCamera/blink/thumbnail/camera/512658_thumbnail.jpg?ts=1731508733&ext=.jpg" height=36 widht=64>/fhem/BlinkCamera/blink/thumbnail/camera/512658_thumbnail.jpg?ts=1731508733&ext=.jpg</a></html>
setstate blink 2024-11-13 16:07:28 networkCamera512658Name Blink
setstate blink 2024-11-13 16:07:28 networkCamera512658Status online
setstate blink 2024-11-13 15:39:02 networkCamera512658Thumbnail /api/v3/media/accounts/400465/networks/664174/owl/512658/thumbnail/thumbnail.jpg?ts=1731508733&ext=
setstate blink 2024-11-13 16:07:28 networkCamera512658Type owl
setstate blink 2024-11-13 16:07:28 networkCamera512658Url /fhem/BlinkCamera/blink/thumbnail/camera/512658.jpg
setstate blink 2024-11-13 16:07:28 networkCameras 512658:Blink\

setstate blink 2024-11-13 16:07:28 networkName blink
setstate blink 2024-11-13 16:07:28 networkSyncFirmware
setstate blink 2024-11-13 16:07:28 networkSyncId
setstate blink 2024-11-13 16:07:28 networkSyncModule
setstate blink 2024-11-13 16:07:28 networkSyncName
setstate blink 2024-11-13 16:07:28 networkSyncSerial
setstate blink 2024-11-13 16:07:28 networkSyncType
setstate blink 2024-11-13 16:07:28 networkSyncWifi
setstate blink 2024-11-13 16:07:28 networks 664174:blink
setstate blink 2024-11-13 15:14:05 region prde
setstate blink 2024-11-13 15:14:05 regionName eu
RPI 3B+ mit Raspbian Bullseye auf SSD, aktiver USB-Hub, Fhem (is klar), TI CC2652P, nanoCUL 868 WMBUS, Echo Plus 2te Gen., ESPxxxx, usw.

h3llsp4wn

Hallo zusammen,

ich habe seit einiger Zeit das Problem, dass meine set blink arm/disarm Befehle nicht ausgeführt werden. Ich habe es nun genauer analysiert - mal geht der Befehl durch, mal bleibt er hängen (Callback returned error:Unauthorized Access:). Das ist ziemlich nervig, da die Kameras entweder an bleiben, nicht angehen, etc.

Wenn ich kurze Zeit später über FHEM den Befehl erneut absetze geht er einfach durch. Ich kann aber ja nicht vorher wissen, warum auf einmal die Anmeldung nicht geht. Eine Fehlerroutine einzubauen finde ich akutell daneben, ich denke das Modul sollte da irgendwie handhaben oder "zuverlässiger" arbeiten. Wenn das mal passieren würde - ok - aber es passiert täglich/ständig.

Jetzt überlege ich eine Schleife einzubauen, wenn Fehler, dann 3x probieren, ob es nicht doch klappt ... aber das ist ja irgendwie total schräg.

Falls jemand Tipps/Ideen hat gerne. Oder muss ich vor jedem Befehl neuerdings neu einen Auth absetzen?


... und ja - über die App funktioniert alles problemlos ...