JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32) +--- Forum: Kodi Application (https://forum.kodi.tv/forumdisplay.php?fid=93) +---- Forum: JSON-RPC (https://forum.kodi.tv/forumdisplay.php?fid=174) +---- Thread: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC (/showthread.php?tid=68263) Pages:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
|
RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - houser - 2015-03-16 Dear all, Can anyone tell me what the syntax is to get just one setting in Kodi via JSON using Settings.SetSettingValue or Settings.GetSettingValue? I need to ask for "audiooutput.passthrough" specifically. Any chance of a hint on what I am doing wrong here. I have searched the forum and had no luck. From learning from the wiki I managed to build this simple code which works fine to switch "audiooutput.passthrough" on and off: http://xxx.xxx.x.xx:8080/jsonrpc?request={"jsonrpc":"2.0","method":"Settings.SetSettingValue", "params":{"setting":"audiooutput.passthrough","value":true}, "id":1} Now if anyone can tell me what the syntax is to just ask for what that setting is without changing it and get that as boolean feedback in the browser it would make my day. It is a little too deep for me to figure it out. I am out of ideas to get settings. Grateful for any help. RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - houser - 2015-03-18 Figured it out and answering my own question. I guess I was overcomplicating it. If someone needs it it's here: http://xxx.xxx.x.xx:8080/jsonrpc?request={"jsonrpc": "2.0", "method": "Settings.GetSettingValue", "params": {"setting": "audiooutput.passthrough"}, "id": 1 }') Returns boolean: {"id":1,"jsonrpc":"2.0","result":{"value":true}} or {"id":1,"jsonrpc":"2.0","result":{"value":false}} Works for any setting so far I've tried. RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - Tolriq - 2015-03-19 @Montellese : Never tested before but {"jsonrpc":"2.0","id":1,"method":"VideoLibrary.GetTVShows","params":{"properties":["season","episode","watchedepisodes"]}} Will always return -1 for season while it should return the number of season if I understand the purpose of the field. RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - houser - 2015-03-21 Is there a JSON command that allows you to remove USB disks safely? I found this in the ControlSystem category: 5.11.1 System.EjectOpticalDrive Ejects or closes the optical disc drive (if available) Permissions: ControlSystem But nothing for disks generally. Would this be possible? TIA RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - Montellese - 2015-03-23 (2015-03-11, 13:26)Tolriq Wrote: AudioLibrary.GetArtists : Fixing the "Various Artists" issue will be difficult because it is pretty much broken on the music database level. Especially the fact that we create an artist with the translated string of "Various Artists" which will be unusable after having changed the GUI language is very troublesome. Concerning the "compilationartist" property I checked the code and its commit history and it actually looks like you introduced the "compilationartist" property in 16767de3dad0654db94eef04732d9e4f21bd04e9 but according to fb639c56b84ad97e0f7fead86e2a46dcf17f207c, which introduced the compilation flag, it is only valid for albums. So that should probably be changed to a "compilation" property for albums and change the condition on the "compilationartist" property to something that makes more sense. RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - Tolriq - 2015-03-23 Well I guess one of my first commit when I was still hoping The source post http://forum.kodi.tv/showthread.php?tid=154377 already talked about the need, seems I miss read the code at this time and should have asked for more help. Anyway after reading https://github.com/xbmc/xbmc/blob/master/xbmc/music/MusicDatabase.cpp#L5598 it seems it will be near impossible to simply add this missing field, meaning the logic have to be handled at application level to reproduce the different queries, complicated queries not optimal at all on low end devices RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - Tolriq - 2015-04-06 @Montellese : Was reported a few times, but it seems more and more users are using smart playlist as they expand their capabilities. When using player.open on smartplaylist the random order setting of the smart playlist is not respected, it's always played in default order and it seems most users use this for random music of some kind RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - stevegal - 2015-06-09 (2014-11-30, 12:57)ASH_Macedo Wrote: Montellese, I've just submitted a pull request for this functionality to add a timer via the json-rpc interface based on the broadcastId. I've tested it on my pi and it seems to work fine. Hopefully that'll appear in the main repo at some point (it's my first pull request into the main repo... so I'm not sure how it will go!) Steve. RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - Martijn - 2015-06-09 Thx Hopefully some of the knowledgeable devs will review it. RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - doozer - 2015-06-17 Hi All, Where can I find the JSON-RPC docs for the "Profiles" namespace? Couldn't see anything here: http://kodi.wiki/view/JSON-RPC_API/v6 Thanks in advance. Matt. RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - axa88 - 2015-06-20 (2015-06-17, 12:49)doozer Wrote: Hi All, Can get the schema from introspect. RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - regystro - 2015-07-13 Hi. Is it possible to change values from advancedsettings.xml via JSON-RPC? I'd like to dynamically set/get the <latency> <delay> value from here http://kodi.wiki/view/Advancedsettings.xml#video Code: <latency> <!-- Compensate display latency (video lag). Latency is given in msecs. --> I've been trying to get as much info as I could using JSON.Introspect and seeking settings.xml, but I'm stuck. Any ideas? Thanks in advance. RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - Martijn - 2015-07-13 No not possible RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - axa88 - 2015-08-27 (2014-03-30, 21:47)Montellese Wrote:(2014-03-30, 21:09)wuench Wrote: What property values will trigger a Player.OnPropertyChanged notification? The JSONRPC documentation lists a lot of properties like time, percentage, etc. But I don't see any OnPropertyChanged notifications coming in at all so I assume it can't return those values.... Is this still valid? Understand triggering a notification on everything that is in PlayerProperty.Value (especially the time/percentage values) would be busy to say the least, but event driven code for things other than shuffle and repeat would be nice... RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - thesicpit - 2015-10-25 So before I go and reinvent the wheel has anybody produced a now playing solution that can be displayed on a php page? |