Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

information on publishing to kodi #25

Open
mattthhdp opened this issue Feb 16, 2017 · 1 comment
Open

information on publishing to kodi #25

mattthhdp opened this issue Feb 16, 2017 · 1 comment

Comments

@mattthhdp
Copy link

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 !

@NovaGL
Copy link

NovaGL commented May 13, 2017

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/#

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants