kodi2mqtt
kodi2mqtt copied to clipboard
information on publishing to kodi
Thank you for your great addons, and sorry for my bad english. Im trying to get whats currently playing and the time of whats playing, so i can push that to a temporary variable into my mqtt server, play some google TTS into kodi and then resume where i was
Do you know how to push all that into json ?
Example:
{"kodi_details": {"title": "Young Atlas", "fanart": "image://http%3a%2f%2fthetvdb.com%2fbanners%2ffanart%2foriginal%2f318201-3.jpg/", "id": 4216, "file": "smb://DATA/TV/Serie/Trollhunters/Season 1/Trollhunters - S01E10 - Young Atlas.mkv", "label": "Young Atlas", "type": "episode", "thumbnail": "image://http%3a%2f%2fthetvdb.com%2fbanners%2fepisodes%2f318201%2f5892231.jpg/", "streamdetails": {"video": [{"stereomode": "", "width": 1280, "codec": "h264", "aspect": 1.7777780294418335, "duration": 1333, "height": 720}], "audio": [{"channels": 2, "codec": "ac3", "language": ""}], "subtitle": []}}, "val": "Young Atlas"}
{"kodi_time": "00:00:12", "kodi_totaltime": "00:22:13", "val": "1.0"}
Im trying with Mosquitto publish but cannot seems to put all those togeter :-/
hope my question is clear ?
And thank you for the Hand !
It is not in the same topic.
Title is the title topic and time is in status/progress
To view all topics use a mqtt viewer and do something like kodi/#