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
|
- Manromen - 2011-03-19 Hi, is there a way to set the playcount of a movie yet ? I just got all the informations i need from all movies, but i want to set a movie as seen. (i want to sync seen movies between diffrent xbmc machines by using trakt) thanks for help :-) - Montellese - 2011-03-20 Manromen Wrote:is there a way to set the playcount of a movie yet ? Altering the database through json rpc is not yet possible. - Manromen - 2011-03-20 Okay thanks anyway. :-) - carmenm - 2011-03-20 ook i use xbmc git:009d446 I connect correctly to my xbmc over telnet on 9090. I start an scan from xbmc. I get nothing over telnet. WOuld it also be a way to feedbacks from xbmc? like "start playing", "paused", "started playing movie ..."? Now i see that there is no command over json yet. So what would be the best way to make a remote for you right now? is it UDP or something else? The thing is that i would like the user to only setup one address/port in the settings for easy access. - Montellese - 2011-03-20 carmenm Wrote:ook i use xbmc git:009d446 TCP port 9090 is correct (although this can be customized in latest git through advancedsettings.xml). You should also be able to send json rpc requests, receive responses and receive announcements like "Player.PlaybackStopped" or "Application.Quit" or whatever there is. I'm not sure what you're problem is?! - topfs2 - 2011-03-20 And I tried it, it works. Code: topfs@tobias-laptop:~$ telnet localhost 9090 - carmenm - 2011-03-21 OK i get PlaybackPaused so it seems good. Yet i dont get updateLibrary reports. Maybe because there is nothing to update Anyway that s an amazing news! Now do you know how to create a listening thread for 9090? I must say that i dont know how to create a telnet or something similar thread. THanks for you amazing work!!!!!! PS: where can i find the list of methods already implemented? - Montellese - 2011-03-21 carmenm Wrote:PS: where can i find the list of methods already implemented? For now the wiki page at http://wiki.xbmc.org/index.php?title=JSON_RPC is the best way of getting information about the available methods. Or you make the following json rpc: Code: { "jsonrpc": "2.0", "method": "JSONRPC.Introspect", "id": 1 } - carmenm - 2011-03-21 oh yeah thanks i forgot about Introspect - wuench - 2011-03-21 carmenm Wrote:Now i see that there is no command over json yet. So what would be the best way to make a remote for you right now? If you want to use a single port for all control then use the HTTP port (default 8080). It will accept JSON and you can still use the HTTP API for the remote/navigation and other commands not implemented via JSON yet. The downside is you will lose the announcements that come over the 9090 socket. - carmenm - 2011-03-21 Yes that exactly what bugs me losing the announcements .... Maybe i ll make the user enter the address+port for the http, then put a special settings for telnet port. Right now if i underestood correctly you can only change it through advance settings so it s not for everyone. - carmenm - 2011-03-21 I need a little putting my sync library into place. I could ask regularly for VideoLibrary.GetMovies and parse all movies to see if new ones. BUt i would also need to update all the others. Moreover i would have to look at the library on my side and see if there are some that were not reported so that i delete them. It seems extremly long to me. Does anyone see another way to do it? Thanks - Montellese - 2011-03-21 carmenm Wrote:I need a little putting my sync library into place. IMO you'll always have to consider the possibility that the library is updated while your remote device is not connected with XBMC using JSON RPC. In that case there's no way around a complete sync anyway. - rhormaza - 2011-03-22 Hi Folks, I've been trying to add content to audio playlist using json. I'm using the next command which works fine Code: curl -i -X POST -d '{"jsonrpc": "2.0", "method": "AudioPlaylist.Add", "params": { "albumid": 4, "media": "audio"}, "id": 1}' http://IP:8080/jsonrpc it adds the album with id 4 in the DB to my AudioPlaylist now I would like to add that content in either ascending or descending way...because it seems to be added randomly... is there a way to sort the AudioPlaylist? I tried Suffle and UnShuffle but it didnt work Thanks - carmenm - 2011-03-24 I have a question. I am trying to send a switch show OSD command when playing. I must use htttp interface as json doesnt implement this yet. But my proplem is that using Action(24) it locks the GUI. And i dont see a Key that would switch between show and hide OSD Does anyone see a way to do that in JSON or HTTP? Also to get nowplaying info (label, year, tagline ...) i read somewhere that i could use System.GetInfoLabels. Am I wrong? If not what parameter to use. If yes how i can i get it. Thanks |