Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
kodi2mqtt_import
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
42loop
kodi2mqtt_import
Commits
26ab4317
Commit
26ab4317
authored
9 years ago
by
Patrick Pimentel Jr.
Browse files
Options
Downloads
Plain Diff
Merge pull request #1 from owagner/master
merge upstream into fork
parents
1e325761
726a6586
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
README.md
+2
-1
2 additions, 1 deletion
README.md
service.mqtt/addon.xml
+1
-1
1 addition, 1 deletion
service.mqtt/addon.xml
service.mqtt/changelog.txt
+3
-0
3 additions, 0 deletions
service.mqtt/changelog.txt
service.mqtt/service.py
+1
-1
1 addition, 1 deletion
service.mqtt/service.py
with
7 additions
and
3 deletions
README.md
+
2
−
1
View file @
26ab4317
...
...
@@ -53,7 +53,8 @@ The addon publishes on the following topics (prefixed with the configured topic
*
status/title: a JSON-encoded object with the fields
-
"val": the title of the current playback item
-
"kodi_details": an object with further details about the current playback items. This is effectivly the result
of a JSON-RPC call Player.GetItem with the properties "title", "streamdetails" and "file"
of a JSON-RPC call Player.GetItem with the properties "title", "streamdetails", "file", "thumbnail"
and "fanart"
The addon listens to the following topics (prefixed with the configured topic prefix):
...
...
This diff is collapsed.
Click to expand it.
service.mqtt/addon.xml
+
1
−
1
View file @
26ab4317
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<addon
id=
"service.mqtt"
name=
"MQTT Adapter"
version=
"0.
6
"
provider-name=
"owagner"
>
<addon
id=
"service.mqtt"
name=
"MQTT Adapter"
version=
"0.
7
"
provider-name=
"owagner"
>
<requires>
<import
addon=
"xbmc.python"
version=
"2.19.0"
/>
</requires>
...
...
This diff is collapsed.
Click to expand it.
service.mqtt/changelog.txt
+
3
−
0
View file @
26ab4317
v0.7 - 2015-08-01 - existsec
- include "thumbnail" and "fanart" in title message
v0.6 - 2015-07-29 - owagner
- include "kodi_playerid" and "kodi_playertype" in playbackstate updates [#2]
...
...
This diff is collapsed.
Click to expand it.
service.mqtt/service.py
+
1
−
1
View file @
26ab4317
...
...
@@ -81,7 +81,7 @@ def publishdetails():
global
lasttitle
,
lastdetail
if
not
player
.
isPlaying
():
return
res
=
sendrpc
(
"
Player.GetItem
"
,{
"
playerid
"
:
activeplayerid
,
"
properties
"
:[
"
title
"
,
"
streamdetails
"
,
"
file
"
]})
res
=
sendrpc
(
"
Player.GetItem
"
,{
"
playerid
"
:
activeplayerid
,
"
properties
"
:[
"
title
"
,
"
streamdetails
"
,
"
file
"
,
"
thumbnail
"
,
"
fanart
"
]})
if
"
result
"
in
res
:
newtitle
=
res
[
"
result
"
][
"
item
"
][
"
title
"
]
newdetail
=
{
"
kodi_details
"
:
res
[
"
result
"
][
"
item
"
]}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment