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 - Montellese - 2013-03-31 You misunderstood. You need to pass the "window": "video" parameter and in addition you need to pass Code: "parameters": [ "videodb://2/2" ] RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - johnsills1 - 2013-03-31 macrosreg, once you get this to work, could you post the command here that you use RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - Montellese - 2013-03-31 It should be Code: { "jsonrpc": "2.0", "method": "GUI.ActivateWindow", "params": { "window": "video", "parameters": [ "videodb://2/2" ] }, "id": 1 } RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - marcosreg - 2013-03-31 (2013-03-31, 18:38)Montellese Wrote: It should be Dear Montellese, I really dont know how to include the information "videodb://2/2" in the parameters field of the command. Please note that the command you use as an example: Code: { "jsonrpc": "2.0", "method": "GUI.ActivateWindow", "params": { "window": "video", "parameters": [ "videodb://2/2" ] }, "id": 1 } jsonrpc?request=%7B%22jsonrpc%22%3A%222.0%22%2C%22method%22%3A%22GUI.ActivateWindow%22%2C%22params%22%3A%7B%22window%22%3A%22video%22%7D%2C%22id%22%3A%221%22%7D%7D So I currently have in the params field: params%22%3A%7B%22 Where shoud I include the information you asked me to include "videodb://2/2" ? regards and many thanks for your attention and time. marcosreg RE: - devkid - 2013-04-01 (2011-12-26, 11:54)Montellese Wrote:null_pointer Wrote:Is there any way to get the "Exclude from scan" setting for the source using the JSON-RPC Files.GetSources or any other RPC call or approach for that matter? (2011-12-27, 05:07)null_pointer Wrote:Hm, is this functionality available now? The ticket got closed with "Obsolete", so I guess it is already possible?Quote:That's not possible right now but it's a good idea. Can you create a feature request ticket for it and CC me? We could either return an additional property "excluded" for every source or we could add a parameter with which you can specify wether to provide the excluded sources as well. RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - Montellese - 2013-04-01 (2013-03-31, 22:55)marcosreg Wrote: Dear Montellese, You obviously need to URL encode my example for you to work as an HTTP GET request but it works for me 100% independent of the path I put in the "parameters" parameter. RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - m0v1em4n - 2013-04-01 Hi Guys, I am using a program called HSTouch ( Homeseer ) to send command to Window XBMC Frodo but seem to be struggling with nextaudio Is nextaudio available in the latest Frodo json-rpc? Came across a list which would suggest it is but in the script I am using is giving me an error Being a compleat no hoper where scripts are concerned any help would be great thanks this is the command I am sending Code: JsonStr="{""jsonrpc"":""2.0"",""method"":""Input.ExecuteAction"",""params"":{""action"":""audionextlanguage""},""id"":1}" here is the error Code: 01/04/2013 15:42:24 - XBMC - {"error":{"code":-32601,"message":"Method not found."},"id":1,"jsonrpc":"2.0"} Here is the full script that was created by jon00 a guy over at the homeseer forum all the command are working other than the nextaudio Code: Sub Main(ByVal ComStr As String) RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - marcosreg - 2013-04-01 [/quote]You obviously need to URL encode my example for you to work as an HTTP GET request but it works for me 100% independent of the path I put in the "parameters" parameter.[/quote] Dear Montellese, Now I am understanding what you were trying to say me. I am using the URL Decoder/Encoder found at http://meyerweb.com/eric/tools/dencoder/ I have no previous experience in programming, but I gave a big step ahead today. Thank you again marcosreg RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - claymic - 2013-04-01 (2013-04-01, 20:17)marcosreg Wrote:MarcosQuote:You obviously need to URL encode my example for you to work as an HTTP GET request but it works for me 100% independent of the path I put in the "parameters" parameter.Dear Montellese, You are using this to control the xbmc over IRule, right ? You dont need to encode your command in a URL, you can send the JSON directly from the IRule. To open windows you have to use something like this : Quote:{"jsonrpc":"2.0","method":"GUI.ActivateWindow","params": {"window":"videolibray","parameters":"MusicVideos"},"id":1}Its more simple to control the XBMC using the code without have to use use URL encode, so you can easily change the code if you need. To control over the IRule you need to create a new Gateway Network, see the setup : Name : give any name IP Address : your xbmc ip Port : 9090 Put the username and password if you have. Works here for IRule and CommandFusion, so, will work for you too. Anyway, ask Wanilton my username in the Google+, we can help you using Hangout, its more easy to show how works. Clayton[/code] RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - marcosreg - 2013-04-02 Thank you both, Montellese and Claymic, everything is OK now. I was abble to create commands for: MovieTitles, MovieGenres, MovieActors, MovieDirectors, RecentlyAddedMovies, TvShowTitles, RecentlyAdded Episodes, MusicVideoTitles, MusicVideo Artists. using a Nexus7, iRule and XBMC Gotham. Regards marcosreg RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - mikebzh44 - 2013-04-02 When requesting TVShows episodes, is it possible to get Seasons artwork ? For now, getting Art from VideoLibrary.GetEpisodes : Code: _json_query = xbmc.executeJSONRPC('{"jsonrpc": "2.0", "method": "VideoLibrary.GetEpisodes", "params": { "tvshowid": %s, "properties": ["art"] }, "id": 1}' %(_file['id'])) will return the list of episodes for the show and art will be populated with TVShow artworks (tvshow.poster, tvshow.fanart, tvshow.banner, ...) and episode artworks (thumbnail, ...) Does it cost to much time to return season artwork related to each episode. For example, to get art(season.poster) S01E01 episode for Dexter. Thanks. RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - Montellese - 2013-04-04 Version 6.2.0 April 4th 2013: Commit: 408ceb032934b3148586500cc3ffd34169118fea jsonrpc: add support for resume in VideoLibrary.SetFooDetails RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - rdehouss - 2013-04-06 Hello I'm a new user of the JSON-RPC api, using WebSocket and it rocks! I love it. Thanks a lot for this! I was wondering the status of this http://trac.xbmc.org/ticket/11990 I'm using the latest XBMC 12.1 and as far as I tried, it is not implemented, neither documented in http://wiki.xbmc.org/index.php?title=JSON-RPC_API/v6#Playlist.Add If it has not yet been handled in the forum, then, I will do it, otherwise, sorry Indeed, this recursive option would be handy because, now, using the API, to add an entire folder (and subfolders) to a playlist, we have to recursively browse the directory and append each directory to the playlist. Which, due to network, code, etc. is quite long, while, if it would be done on the server itself, it would go a lot faster. WDYT? Thanks a lot for your attention. Best regards, Raphaƫl RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - Montellese - 2013-04-07 Nothing has been done in that direction so far. RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - Tolriq - 2013-04-07 I'll look into this one since I need it too :p I'd also like to add a Playlist.Move to simplify users that want to reorder playlist. Should I do 2 PR ? |