Anrufanzeige an Samsung mit Tizen geht nicht

Begonnen von Mitch, 03 Februar 2018, 12:26:16

Vorheriges Thema - Nächstes Thema

Mitch

Hallo Zusammen,

ich würde gerne mit DLNA eine Nachricht bei Anruf ausgeben.
Habe mich an die Anleitung gehalten, aber es geht einfach nicht  :(

Grundaufbau:
Samsung UE50KU6079
miniDLNA auf fhem Server
EUERfriendlynamedesSamsungTV: qfTV

In fhem:
Zitatdefine MeinRenderer DLNAClient qfTV
Zitatset MeinRenderer stream http://minidlna:8200/MediaItems/30.jpg
-> geht ab und zu

Zitatdefine myrss RSS jpg qfserver ./FHEM/rss/rss_caller.layout

Wei bekomme ich jetzt das jpg vom RSS Feed als Stream an den TV?
FHEM im Proxmox Container

KölnSolar

Hi,
das
Zitat-> geht ab und zu
hängt vermutlich mit der Eigenart des miniDLNA zusammen, dass die Medien bei Änderung neu indiziert werden. Mit inotify=no lässt sich dieses Verhalten abstellen.

Wenn das streaming dann stabil funktioniert, die URI in die callerURI im STV-device eintragen. Dort kannst Du dann über set DeinTV caller den stream ausgeben.

Und wenn alles klappt, könntest Du die neue Version aus dem Hauptthread testen.  ;)

Grüße Markus
RPi3/2 buster/stretch-SamsungAV_E/N-RFXTRX-IT-RSL-NC5462-Oregon-CUL433-GT-TMBBQ-01e-CUL868-FS20-EMGZ-1W(GPIO)-DS18B20-CO2-USBRS232-USBRS422-Betty_Boop-EchoDot-OBIS(Easymeter-Q3/EMH-KW8)-PCA301(S'duino)-Deebot(mqtt2)-zigbee2mqtt

Mitch

Witzig, eigentlich hatte ich den Thread wieder gelöscht  ;)

Egal, Danke für Deine Antwort.
Eigentlich brauche ich ja inotify, weil ich immer beim Klingeln ein neuen Snapshot von meiner Kamera erzeugen lasse und diesen dann ausgeben will. Ich teste aber auch gerade mit Livestream. hatte vorhin funktioniert.

Mir kommt es so vor, als ob der TV das immer nur einmal macht. Danach muß ich ihn ausschalten und einschalten, damit es wieder einmal geht.
Das muß ich nochmal testen.

Ich habe auch mittlerweile RSS am laufen und lasse ein Bild des Anrufers erzeugen. Geht.
Nur in STV mag er den Befehl set Samsung caller einfach nicht.

Ein set Samsung screen geht.
FHEM im Proxmox Container

Gerhard

@KölnSolar:

was meinst du mit
Zitatinotify=no
?
FB6890LTE, cubietruck, orangePi, raspberry 2/3/4, HM/HMIP, shelly > 50, etc.

Mitch

Das ist der automatische Update in MiniDLNA.
Kommt ein neues Bild/Video/Audio dazu, wird es automatisch indiziert
FHEM im Proxmox Container

Gerhard

FB6890LTE, cubietruck, orangePi, raspberry 2/3/4, HM/HMIP, shelly > 50, etc.

KölnSolar

RPi3/2 buster/stretch-SamsungAV_E/N-RFXTRX-IT-RSL-NC5462-Oregon-CUL433-GT-TMBBQ-01e-CUL868-FS20-EMGZ-1W(GPIO)-DS18B20-CO2-USBRS232-USBRS422-Betty_Boop-EchoDot-OBIS(Easymeter-Q3/EMH-KW8)-PCA301(S'duino)-Deebot(mqtt2)-zigbee2mqtt

Gerhard

o.k.

könnt ihr mir sagen was noch eingestellt werden muss?, hier mein minidlna.conf:

# This is the configuration file for the MiniDLNA daemon, a DLNA/UPnP-AV media
# server.
#
# Unless otherwise noted, the commented out options show their default value.
#
# On Debian, you can also refer to the minidlna.conf(5) man page for
# documentation about this file.

# Specify the user name or uid to run as.
#user=minidlna


# Path to the directory you want scanned for media files.
#
# This option can be specified more than once if you want multiple directories
# scanned.
#
# If you want to restrict a media_dir to a specific content type, you can
# prepend the directory name with a letter representing the type (A, P or V),
# followed by a comma, as so:
#   * "A" for audio    (eg. media_dir=A,/var/lib/minidlna/music)
#   * "P" for pictures (eg. media_dir=P,/var/lib/minidlna/pictures)
#   * "V" for video    (eg. media_dir=V,/var/lib/minidlna/videos)
#   * "PV" for pictures and video (eg. media_dir=PV,/var/lib/minidlna/digital_camera)
media_dir=/var/lib/minidlna

# Set this to merge all media_dir base contents into the root container
# (The default is no.)
#merge_media_dirs=no

# Path to the directory that should hold the database and album art cache.
#db_dir=/var/cache/minidlna

# Path to the directory that should hold the log file.
#log_dir=/var/log

# Type and minimum level of importance of messages to be logged.
#
# The types are "artwork", "database", "general", "http", "inotify",
# "metadata", "scanner", "ssdp" and "tivo".
#
# The levels are "off", "fatal", "error", "warn", "info" or "debug".
# "off" turns of logging entirely, "fatal" is the highest level of importance
# and "debug" the lowest.
#
# The types are comma-separated, followed by an equal sign ("="), followed by a
# level that applies to the preceding types. This can be repeated, separating
# each of these constructs with a comma.
#
# The default is to log all types of messages at the "warn" level.
#log_level=general,artwork,database,inotify,scanner,metadata,http,ssdp,tivo=warn

# Use a different container as the root of the directory tree presented to
# clients. The possible values are:
#   * "." - standard container
#   * "B" - "Browse Directory"
#   * "M" - "Music"
#   * "P" - "Pictures"
#   * "V" - "Video"
#   * Or, you can specify the ObjectID of your desired root container
#     (eg. 1$F for Music/Playlists)
# If you specify "B" and the client device is audio-only then "Music/Folders"
# will be used as root.
#root_container=.

# Network interface(s) to bind to (e.g. eth0), comma delimited.
# This option can be specified more than once.
#network_interface=

# Port number for HTTP traffic (descriptions, SOAP, media transfer).
# This option is mandatory (or it must be specified on the command-line using
# "-p").
port=8200

# URL presented to clients (e.g. http://example.com:80).
#presentation_url=/

# Name that the DLNA server presents to clients.
# Defaults to "hostname: username".
friendly_name="[TV] UE48J5550: fhemuser"

# Serial number the server reports to clients.
# Defaults to 00000000.
serial=681019810597110

# Model name the server reports to clients.
#model_name=Windows Media Connect compatible (MiniDLNA)

# Model number the server reports to clients.
# Defaults to the version number of minidlna.
#model_number=

# Automatic discovery of new files in the media_dir directory.
inotify=no

# List of file names to look for when searching for album art.
# Names should be delimited with a forward slash ("/").
# This option can be specified more than once.
album_art_names=Cover.jpg/cover.jpg/AlbumArtSmall.jpg/albumartsmall.jpg
album_art_names=AlbumArt.jpg/albumart.jpg/Album.jpg/album.jpg
album_art_names=Folder.jpg/folder.jpg/Thumb.jpg/thumb.jpg

# Strictly adhere to DLNA standards.
# This allows server-side downscaling of very large JPEG images, which may
# decrease JPEG serving performance on (at least) Sony DLNA products.
#strict_dlna=no

# Support for streaming .jpg and .mp3 files to a TiVo supporting HMO.
#enable_tivo=no

# Notify interval, in seconds.
#notify_interval=895

# Path to the MiniSSDPd socket, for MiniSSDPd support.
#minissdpdsocket=/run/minissdpd.sock

# Always set SortCriteria to this value, regardless of the SortCriteria
# passed by the client
# e.g. force_sort_criteria=+upnp:class,+upnp:originalTrackNumber,+dc:title
#force_sort_criteria=

# maximum number of simultaneous connections
# note: many clients open several simultaneous connections while streaming
#max_connections=50


Danke, Gerhard
FB6890LTE, cubietruck, orangePi, raspberry 2/3/4, HM/HMIP, shelly > 50, etc.

KölnSolar

ggfs. den Pfad, wo Du die Bilder ablegst. also z.B. media_dir=P,/var/lib/minidlna/Bilder Wichtig ist dann auch, dass der gewählte Pfad Lese- u. Schreibberechtigung für den user fhem hat !
RPi3/2 buster/stretch-SamsungAV_E/N-RFXTRX-IT-RSL-NC5462-Oregon-CUL433-GT-TMBBQ-01e-CUL868-FS20-EMGZ-1W(GPIO)-DS18B20-CO2-USBRS232-USBRS422-Betty_Boop-EchoDot-OBIS(Easymeter-Q3/EMH-KW8)-PCA301(S'duino)-Deebot(mqtt2)-zigbee2mqtt

KölnSolar

ZitatNur in STV mag er den Befehl set Samsung caller einfach nicht.

Ein set Samsung screen geht.
Das kann eigentlich nicht sein. Die funktionieren beide gleich. Der Befehl caller ist aber vorhanden oder ? Und der unter callerURI eingetragene URI geht mit dem DLNAClient ?
RPi3/2 buster/stretch-SamsungAV_E/N-RFXTRX-IT-RSL-NC5462-Oregon-CUL433-GT-TMBBQ-01e-CUL868-FS20-EMGZ-1W(GPIO)-DS18B20-CO2-USBRS232-USBRS422-Betty_Boop-EchoDot-OBIS(Easymeter-Q3/EMH-KW8)-PCA301(S'duino)-Deebot(mqtt2)-zigbee2mqtt

Gerhard

was wird unter callerURI & screenURI eingetragen?

Gerhard
FB6890LTE, cubietruck, orangePi, raspberry 2/3/4, HM/HMIP, shelly > 50, etc.

Mitch

Zitat von: KölnSolar am 03 Februar 2018, 14:53:56
Hi,
das  hängt vermutlich mit der Eigenart des miniDLNA zusammen, dass die Medien bei Änderung neu indiziert werden. Mit inotify=no lässt sich dieses Verhalten abstellen.

Wenn das streaming dann stabil funktioniert, die URI in die callerURI im STV-device eintragen. Dort kannst Du dann über set DeinTV caller den stream ausgeben.

Und wenn alles klappt, könntest Du die neue Version aus dem Hauptthread testen.  ;)

Grüße Markus

Also ich kann jetzt Bilder an den TV schicken, geht gut.

Problem, welches ich habe, ist der Pfad.
Wenn es klingelt wird ein Bild erzeugt und abgelegt. Den Pfad im DLNA kenne ich da ja natürlich nicht, ist auch jedes Mal ein anderer.

Genauso habe ich das Problem, wie ich das RSS Bild in den DLNA Server "reinbekomme"?
FHEM im Proxmox Container

KölnSolar

Du hattest hier den unteren part mit dem notify und curl gesehen ?
RPi3/2 buster/stretch-SamsungAV_E/N-RFXTRX-IT-RSL-NC5462-Oregon-CUL433-GT-TMBBQ-01e-CUL868-FS20-EMGZ-1W(GPIO)-DS18B20-CO2-USBRS232-USBRS422-Betty_Boop-EchoDot-OBIS(Easymeter-Q3/EMH-KW8)-PCA301(S'duino)-Deebot(mqtt2)-zigbee2mqtt

Mitch

Ja, hatte ich, hatte es nur erst nicht verstanden  :-[

Jetzt glaube ich es kapiert zu haben  ;D
Werde nun mal umbauen bzw. erweitert und schauen.

Nachdem was ich verstanden habe, bleibt der Pfad im miniDLNA immer gleich, auch wenn per curl ein neues Bild kopiert/geholt wurde. Richtig?
Deswegen auch inotify deaktivieren

Wie sieht denn das mit dem RSS Bild aus? wird das vom RSS Modul automatisch erneuert, oder muß ich das bei Anruf auch neu erzeugen?
(Sorry, habe mich noch nie mit dem RSS Modul befasst)
FHEM im Proxmox Container

KölnSolar

ZitatNachdem was ich verstanden habe, bleibt der Pfad im miniDLNA immer gleich, auch wenn per curl ein neues Bild kopiert/geholt wurde. Richtig?
Deswegen auch inotify deaktivieren
Richtig  ;D

ZitatWie sieht denn das mit dem RSS Bild aus? wird das vom RSS Modul automatisch erneuert, oder muß ich das bei Anruf auch neu erzeugen?
Automatisch, bzw. in dem Augenblick, wo curl aufgerufen wird, wird das "Bild" generiert. In Anführungszeichen deshalb, weil es ja nirgends existiert, außer dann auf dem Media-Server.  ;)

Ich weiß, alles etwas kompliziert, aber die einzige Lösung. Sieh es positiv. Man lernt viel über DLNA/UPnP und es tun sich dadurch neue Möglichkeiten auf, wie ich ja schon als letzten Post im Dokuthread schrieb.
RPi3/2 buster/stretch-SamsungAV_E/N-RFXTRX-IT-RSL-NC5462-Oregon-CUL433-GT-TMBBQ-01e-CUL868-FS20-EMGZ-1W(GPIO)-DS18B20-CO2-USBRS232-USBRS422-Betty_Boop-EchoDot-OBIS(Easymeter-Q3/EMH-KW8)-PCA301(S'duino)-Deebot(mqtt2)-zigbee2mqtt