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 - thica - 2013-02-07 Hello, thanks for the reply. Didn't tried it, but this looks like retrieving a filtered list and not like setting a filter. To be more precise. I want to remotely send a command to XBMC, which filteres the curent shown Movie list or openes a filtered movie list. Same if I choose those filter using te Gui. RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - Montellese - 2013-02-07 You can do it with the advanced filter functionality in the "filter" parameter. It takes a bit to get going but once you've understood how it works, it should be straight forward. Maybe take a look at webinterface.awxi which offers an interface to create such filters and then sends the proper JSON-RPC request. RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - houser - 2013-02-07 (2013-02-04, 20:53)johnsills1 Wrote: Devices under the User for XBMC JSON (John's) and import it. I have done alot of work to find out how everything is supposed to work. With the help of many people here on the forum, I have my remote back up and running with JSON.... Hope this helps Ok with follow up on subject? John, Great work on the json codes for iRule. Thanx so much! Works great in my irule setup... Quick question, the toggle subtitles code does not work on my system. Separate on and off buttons work great but not the toggle. Known problem or something we can tweak? String now is: jsonrpc?{"jsonrpc":"2.0","method":"Input.ExecuteAction","params":{"action":"ShowSubtitles"},"id":1} Checked the documentation but can't find any error. Any advice appreciated! Thanx again! RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - thica - 2013-02-07 Thx for your reply. The filter interface is so poor documentetd, taht i wil struggle to implement anything based on this. The webinterface is interesting, but thre is nothing in, to control xmbc... (Its pulling information only) (2013-02-07, 09:42)Montellese Wrote: You can do it with the advanced filter functionality in the "filter" parameter. It takes a bit to get going but once you've understood how it works, it should be straight forward. Maybe take a look at webinterface.awxi which offers an interface to create such filters and then sends the proper JSON-RPC request. RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - N3MIS15 - 2013-02-08 thica maybe this is what you are looking for? http://forum.xbmc.org/showthread.php?tid=149701 RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - Montellese - 2013-02-08 OK now I'm unsure what you try to achieve. Do you want to manipulate the GUI listing in XBMC or do you want to retrieve a filtered list of movies to your client? RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - thica - 2013-02-08 (2013-02-08, 09:43)Montellese Wrote: OK now I'm unsure what you try to achieve. Do you want to manipulate the GUI listing in XBMC or do you want to retrieve a filtered list of movies to your client? Its for a remote control: " Do you want to manipulate the GUI listing in XBMC " is what I want.... RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - doozer - 2013-02-11 Is it possible in Frodo 12.0 to jump to the Aeon Nox "Favorites" screen using Input.ExecuteAction or something similar? Thanks, Matt. RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - Tolriq - 2013-02-11 @thica N3MIS15 gives you the solution in his previous post @doozer : If the skin use the standard favorites things you can use GUI.ActivateWindow(Favourites) @Montellese : as you suggested I openned some FR on this forum to open discution since some times but still don't have any feedback Do you think you can take just 5 mn to comment them with a simple : Won't be accepted, You can try do it, Good idea the team will add, thanks in advance. RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - doozer - 2013-02-11 (2013-02-11, 08:52)Tolriq Wrote: @doozer : If the skin use the standard favorites things you can use GUI.ActivateWindow(Favourites) Thank you, much appreciated. I was looking in the wrong area. Cheers, Matt. RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - thica - 2013-02-11 (2013-02-08, 07:45)N3MIS15 Wrote: thica maybe this is what you are looking for? http://forum.xbmc.org/showthread.php?tid=149701 Hello, thanks for the hint, found and integrated this for the genre topic: Code: {"jsonrpc": "2.0", "method": "GUI.ActivateWindow", "params": {"window": "video", "parameters":["videodb://1/1/6"] },"id": "1"} But still looking for a solution for the watched/unwatched/all movies part... RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - Montellese - 2013-02-11 @Tolriq: I'm currently very busy with finishing my master's thesis because I have to be done till end of February so I don't have much time for XBMC. I'll take a closer look as soon as that chapter of my life is finished @thica: IIRC there's no way to toggle watched/unwatched through JSON-RPC right now. RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - Tolriq - 2013-02-11 @Montellese : no problem IRL > All I was just wondering if there's something I can start playing with to change a little from coding Java for Yatse :p RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - thica - 2013-02-12 (2013-02-11, 18:20)Montellese Wrote: @thica: IIRC there's no way to toggle watched/unwatched through JSON-RPC right now. Thanks for the update, it's one of my most used functions... :-) Maybe in the next release or a hack something for my own.. RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - Millencolin007 - 2013-02-12 @Montellese: Good luck with your master's thesis This is just an observation and nothing urgent. When starting music playback on xbmc from "Music Library => Songs" all songs are queued in the music playlist and xbmc sends a notification for every song in your library... Code: {"jsonrpc":"2.0","method":"Playlist.OnAdd","params":{"data":{"item":{"id":23630,"type":"song"} As a result apps listening on port 9090 may get hit by > 10'000 notifications at the same time. I have the feeling that the notifications are sent from the ui thread and as a result xbmc freezes until all notifications are read and processed by the client(s) which can take a while (10 seconds or more... ) (Tested on xbmc frodo) I can probably just selectively disable playlist notifications using "Configuration.Notifications" but I actually would like to use the Playlist.OnXXX notifications since you don't have to poll xbmc for playlist changes every couple of seconds. Maybe notifications could be grouped somehow using additional "item" types so that we get a notification that an album with id xx or a genre with id xx was added instead of sending notifications for a large list of songs. Maybe also something like Playlist.OnAddAll to notify clients that all songs have been added. Also there is no notification sent when moving items up/down in the playqueue. I will add a feature requests in a separate thread. |