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 - edrikk - 2014-10-18 Thank you both SO much! It's good to know its a known issue regarding the thumbnail... I'll double check/post my code in a couple of hours when the kids are asleep... RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - edrikk - 2014-10-18 Hi guys, Here's my sample of my code which doesn't seem to respect the time for the notification. Code: #!/bin/sh The notification does not stay on the screen for 50 seconds... (I've set it this high for testing)... I've got a separate Python call for a different Kodi automation, and that also doesn't follow the timing... So I'm sure its my error: Code: showAddedRequest='{"jsonrpc":"2.0","method":"GUI.ShowNotification","params":{"title":"Just Added","message":"'+episodeMsg+'"},"displaytime":30000,"id":1}' RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - Milhouse - 2014-10-18 Yes, it seems to be ignoring the displaytime over HTTP (the notification is displayed for about 5 seconds, not 50 seconds), but the displaytime is being respected over RPC (my test last night was over RPC). RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - Montellese - 2014-10-18 I was testing over HTTP and WebSockets and it worked fine with both. @Milhouse: RPC is not a transport so I guess you meant TCP RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - edrikk - 2014-10-18 Hmmm... Weird. So I'm reading that Milhouse you were able to reproduce, but Montellese you weren't? Well, at least reading between the lines I guess my call is correct. But for sure Kodi isn't keeping the notification that long... RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - Milhouse - 2014-10-18 Yes, tcp RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - Milhouse - 2014-10-18 Well this is strange, the following curl request (based on what my script would use) over HTTP is working as expected: Code: curl --data-binary '{"jsonrpc": "2.0", "params": {"message": "message", "displaytime": 50000, "title": "title"}, "method": "GUI.ShowNotification", "id": "libNotification"}' -H 'content-type:application/json;' 'http://192.168.0.8:8080/jsonrpc' but the following (based on @edrikk's command) is not: Code: curl --data-binary '{"jsonrpc":"2.0","method":"GUI.ShowNotification","params":{"title":"Phone Call","message":"xxx"},"displaytime":50000,"id":1}' -H 'content-type:application/json;' 'http://192.168.0.8:8080/jsonrpc' Edit: Aha, looks like @edrikk hasn't included "displaytime" in params{} RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - Montellese - 2014-10-18 Yup just saw it as well. The "displaytime" property needs to be inside the "params" object and not outside of it. That explains it. RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - edrikk - 2014-10-18 #%|t!!! Banging head against a hard object... As usual problem is between monitor and keyboard. ;( Thank you guys so much! RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - Tolriq - 2014-11-05 @Montellese : In Kodi beta 1 (Don't know since when since I did not really check this) Input.SendText does not seems to work on text input in global dialogs. For example in movie list view, go to filter, in the dialog position cursor to title: the send text does not fill the edit. Press enter to open the title dialog, now the send text does work. RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - Montellese - 2014-11-06 (2014-11-05, 15:53)Tolriq Wrote: @Montellese : In Kodi beta 1 (Don't know since when since I did not really check this) Input.SendText does not seems to work on text input in global dialogs. Thanks for the report. It's very odd as it works perfectly fine in the settings window for me. RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - goundoulf - 2014-11-13 Code: $ curl -X POST -H "Content-Type: application/json" -d '{"jsonrpc": "2.0", "method": "Player.GetItem", "params": { "properties": ["title", "album", "artist", "duration", "thuils"], "playerid": 0 }, "id": "AudioGetItem"}' http://192.168.1.16/jsonrpc This command make Kodi play the UPNP stream sent from my PC. However the title displayed is "c3RyZWFtaW5n", and there is no thumbnail. Is it possible to change the "label" and "thumbnail" displayed? Thanks! RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - ASH_Macedo - 2014-11-26 I'm using Kodi beta 5 to test the json against a command fusion control that I'm creating and I'm having problems returning info from player.Getitem. In Gotham i was able to return informations for the pvr like plot, label, genre and others. Now at leat in this latest beta this information is not returning. All that is returning is channel number, id and channel. Maybe something broke for the pvr in the getitem part because this same information still returns correctly if the pvr.getboradcastdetails is called. This is also only happening with pvr everything else is working fine. Also is there a way to set timers for recordings from the json? If not that will be really good if implemented in the future. Thanks, Marcelo. RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - Lunatixz - 2014-11-26 ::EDIT:: Nevermind RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - Montellese - 2014-11-29 (2014-11-26, 12:10)ASH_Macedo Wrote: I'm using Kodi beta 5 to test the json against a command fusion control that I'm creating and I'm having problems returning info from player.Getitem. See https://github.com/xbmc/xbmc/pull/5843 for a fix. Thanks for the report. |