You can find kodi's official documentation of the JSON-RCP API here and the full list of available commands (for protocol version 6) here.
Note: This adapter requires Node 0.12+ (so 0.10 not supported)
Remote control enable. ![Remote control enable.] (admin/remote.jpg) JSON-RPC API ΠΈΡΠΏΠΎΠ»ΡΠ·ΡΠ΅Ρ ΠΏΠΎ ΡΠΌΠΎΠ»ΡΠ°Π½ΠΈΡ ΠΏΠΎΡΡ 9090, Π΄Π»Ρ ΡΠΎΠ³ΠΎ ΡΡΠΎΠ±Ρ Π΅Π³ΠΎ ΠΈΠ·ΠΌΠ΅Π½ΠΈΡΡ Π½Π΅ΠΎΠ±Ρ ΠΎΠ΄ΠΈΠΌΠΎ Π²Π½Π΅ΡΡΠΈ ΠΈΠ·ΠΌΠ΅Π½Π΅Π½ΠΈΡ Π² ΡΠ°ΠΉΠ» advancedsettings.xml
Note: The advancedsettings.xml file does not exist by default. You have to create it first!
<jsonrpc>
<compactoutput>true</compactoutput>
<tcpport>9999</tcpport>
</jsonrpc>
Π Π½Π°ΠΉΡΡΡΠΎΠΉΠΊΠ°Ρ Π΄ΡΠ°ΠΉΠ²Π΅ΡΠ° ΡΠΊΠ°Π·ΡΠ²Π°Π΅ΡΡΡ IP Π°Π΄ΡΠ΅Ρ KODI ΠΈ ΠΏΠΎΡΡ Π΄Π»Ρ JSON-RPC API (ΠΏΠΎ ΡΠΌΠΎΠ»ΡΠ°Π½ΠΈΡ 9090).
ΠΠ΄ΠΈΠ½ Π²Π°ΠΆΠ½ΡΠΉ ΠΌΠΎΠΌΠ΅Π½Ρ, Π΅ΡΠ»ΠΈ ΠΈΡΠΏΠΎΠ»ΡΠ·ΡΠ΅ΡΡΡ Π·Π°Π³ΠΎΠ»ΠΎΠ²ΠΎΠΊ ΡΠΎΠΎΠ±ΡΠ΅Π½ΠΈΡ, ΡΠΎ ΠΎΠ½ Π΄ΠΎΠ»ΠΆΠ΅Π½ Π²ΡΠ΅Π³Π΄Π° Π½Π°Ρ ΠΎΠ΄ΠΈΡΡΡ ΠΏΠ΅ΡΠ΅Π΄ ΡΠ°ΠΌΠΈΠΌ ΡΠ΅ΠΊΡΡΠΎΠΌ ΡΠΎΠΎΠ±ΡΠ΅Π½ΠΈΡ (ΠΠ½ΠΈΠΌΠ°Π½ΠΈΠ΅;ΠΡΠΎΡΠ΅ΡΠΊΠ° Π²ΠΎΠ΄Ρ), ΡΠ°ΡΠΏΠΎΠ»ΠΎΠΆΠ΅Π½ΠΈΠ΅ ΠΎΡΡΠ°Π»ΡΠ½ΡΡ ΠΏΠ°ΡΠ°ΠΌΠ΅ΡΡΠΎΠ² Π½Π΅ ΠΊΡΠΈΡΠΈΡΠ½ΠΎ.
Image: Π£ΡΠΎΠ²Π΅Π½Ρ ΡΠΎΠΎΠ±ΡΠ΅Π½ΠΈΡ
- 'info' - 0 (default),
- 'warning' - 1,
- 'error' - 2.
displaytime: ΠΡΠ΅ΠΌΡ ΠΎΡΠΎΠ±ΡΠ°ΠΆΠ΅Π½ΠΈΡ ΡΠΎΠΎΠ±ΡΠ΅Π½ΠΈΡ Π² ΠΌΠΈΠ»ΠΈΡΠ΅ΠΊΡΠ½Π΄Π°Ρ , ΠΌΠΈΠ½ΠΈΠΌΡΠΌ 1500 ΠΌΠ°ΠΊΡ 30000 ΠΌΡ.
ΠΡΠΈΠΌΠ΅Ρ:
- 1;ΠΠ½ΠΈΠΌΠ°Π½ΠΈΠ΅;ΠΡΠΎΡΠ΅ΡΠΊΠ° Π²ΠΎΠ΄Ρ;15000
- ΠΠ½ΠΈΠΌΠ°Π½ΠΈΠ΅;ΠΡΠΎΡΠ΅ΡΠΊΠ° Π²ΠΎΠ΄Ρ;2;10000
- ΠΠ½ΠΈΠΌΠ°Π½ΠΈΠ΅;ΠΡΠΎΡΠ΅ΡΠΊΠ° Π²ΠΎΠ΄Ρ
- ΠΡΠΎΡΠ΅ΡΠΊΠ° Π²ΠΎΠ΄Ρ
Π’Π°ΠΊ ΠΆΠ΅ ΡΠΎΠΎΠ±ΡΠ΅Π½ΠΈΡ ΠΌΠΎΠΆΠ½ΠΎ ΠΎΡΠΏΡΠ°Π²Π»ΡΡΡ ΠΈΠ· Π΄ΡΠ°ΠΉΠ²Π΅ΡΠ° javascript:
sendTo("kodi.0", {
message: 'ΠΠΎΠ·ΠΌΠΎΠΆΠ½ΠΎ ΠΏΡΠΎΡΠ΅ΡΠΊΠ° Π²ΠΎΠ΄Ρ ', //Π’Π΅ΠΊΡΡ ΡΠΎΠΎΠ±ΡΠ΅Π½ΠΈΡ
title: 'ΠΠΠΠΠΠΠΠ!!!', //ΠΠ°Π³ΠΎΠ»ΠΎΠ²ΠΎΠΊ ΡΠΎΠΎΠ±ΡΠ΅Π½ΠΈΡ
image: 'https://raw.githubusercontent.com/instalator/ioBroker.kodi/master/admin/kodi.png', //Π‘ΡΡΠ»ΠΊΠ° Π½Π° ΠΈΠΊΠΎΠ½ΠΊΡ
delay: 7000 //ΠΡΠ΅ΠΌΡ ΠΎΡΠΎΠ±ΡΠ°ΠΆΠ΅Π½ΠΈΡ ΡΠΎΠΎΠ±ΡΠ΅Π½ΠΈΡ ΠΌΠΈΠ»ΠΈΡΠ΅ΠΊΡΠ½Π΄Π°Ρ
(ΠΌΠΈΠ½ΠΈΠΌΡΠΌ 1500 ΠΌΠ°ΠΊΡ 30000 ΠΌΡ)
});
ΠΠ΅ΡΠ΅ΠΊΠ»ΡΡΠ΅Π½ΠΈΠ΅ PVR IPTV ΠΊΠ°Π½Π°Π»ΠΎΠ² ΠΏΠΎ Π½Π°Π·Π²Π°Π½ΠΈΡ ΠΊΠ°Π½Π°Π»Π° Π² ΠΏΠ»Π΅ΠΉΠ»ΠΈΡΡΠ΅. ΠΡΠΈΠΌΠ΅Ρ: Π’Π ΠΊΠ°Π½Π°Π» - Discovery Science Π½Π°ΠΉΠ΄Π΅Ρ ΠΊΠ°ΠΊ ΠΏΠΎ ΠΏΠΎΠ»Π½ΠΎΠΌΡ Π½Π°ΠΈΠΌΠ΅Π½ΠΎΠ²Π°Π½ΠΈΡ ΡΠ°ΠΊ ΠΈ ΠΏΠΎ discover,
ΠΠ»Ρ ΠΎΡΠΊΡΡΡΠΈΡ Π²ΠΈΠ΄Π΅ΠΎ Ρ ΡΠ°ΠΉΡΠ° youtube Π΄ΠΎΡΡΠ°ΡΠΎΡΠ½ΠΎ Π·Π°ΠΏΠΈΡΠ°ΡΡ ΠΊΠΎΠ΄ Π²ΠΈΠ΄Π΅ΠΎ Π² Π΄Π°Π½Π½ΡΠΉ ΡΡΠ°ΡΡΡ. ΠΠ°ΡΠΈΠ½Π°Ρ Ρ Π²Π΅ΡΡΠΈΠΈ 0.1.5 ΠΈ Π²ΡΡΠ΅ ΠΌΠΎΠΆΠ½ΠΎ Π²ΡΡΠ°Π²Π»ΡΡΡ ΠΏΡΡΠΌΡΡ ΡΡΡΠ»ΠΊΡ Π½Π° Π²ΠΈΠ΄Π΅ΠΎ, Π° ΡΠ°ΠΊΠΆΠ΅ ΠΊΠΎΠ΄ ΠΈΠ»ΠΈ ΠΏΠΎΠ»Π½ΡΡ ΡΡΡΠ»ΠΊΡ Π½Π° ΠΏΠ»Π΅ΠΉΠ»ΠΈΡΡ. ΠΠ°ΠΏΡΠΈΠΌΠ΅Ρ: ΠΠ»Ρ ΠΎΡΠΊΡΡΡΠΈΡ ΡΡΠΎΠ³ΠΎ Π²ΠΈΠ΄Π΅ΠΎ, Π½Π΅ΠΎΠ±Ρ ΠΎΠ΄ΠΈΠΌΠΎ ΡΡΡΠ°Π½ΠΎΠ²ΠΈΡΡ Π² ΡΡΠ°ΡΡΡ - Bvmxr24D4TA
Π‘ΡΠ΄Π° Π·Π°ΠΏΠΈΡΡΠ²Π°Π΅ΡΡΡ ΡΡΡΠ»ΠΊΠ° Π½Π° ΠΌΠ΅Π΄ΠΈΠΊΠΎΠ½ΡΠ΅Π½Ρ Π² ΡΠ΅ΡΠΈ ΠΈΠ½ΡΠ΅ΡΠ½Π΅Ρ Π»ΠΈΠ±ΠΎ ΠΏΡΡΡ Π΄ΠΎ Π»ΠΎΠΊΠ°Π»ΡΠ½ΠΎΠ³ΠΎ ΠΌΠ΅Π΄ΠΈΠ° ΡΠ°ΠΉΠ»Π°. ΠΠΎΡΠ»Π΅ Π·Π°ΠΏΠΈΡΠΈ Π·Π½Π°ΡΠ΅Π½ΠΈΡ Π½Π°ΡΠ½Π΅ΡΡΡ Π²ΠΎΡΠΏΡΠΎΠΈΠ·Π²Π΅Π΄Π΅Π½ΠΈΠ΅ Π½Π° ΠΏΡΠΎΠΈΠ³ΡΠΎΠ²Π°ΡΠ΅Π»Π΅ KODI.
Π’Π΅ΠΊΡΡΠ°Ρ ΠΏΠΎΠ·ΠΈΡΠΈΡ Π² ΠΏΠ»Π΅ΠΉΠ»ΠΈΡΡΠ΅, ΡΠ°ΠΊ ΠΆΠ΅ Π² ΡΡΠΎΡ ΡΡΠ°ΡΡΡ ΠΌΠΎΠΆΠ½ΠΎ Π·Π°ΠΏΠΈΡΠ°ΡΡ Π½Π΅ΠΎΠ±Ρ ΠΎΠ΄ΠΈΠΌΡΡ ΠΏΠΎΠ·ΠΈΡΡΡ ΠΈ KODI ΡΡΡ ΠΆΠ΅ ΠΏΠ΅ΡΠ΅ΠΉΠ΄Π΅Ρ ΠΊ Π²ΠΎΡΠΏΡΠΎΠΈΠ·Π²Π΅Π΄Π΅Π½ΠΈΡ ΡΡΠΎΠΉ ΠΏΠΎΠ·ΠΈΡΠΈΠΈ.
Π’Π΅ΠΊΡΡΠ΅Π΅ Π·Π½Π°ΡΠ΅Π½ΠΈΠ΅ ΠΏΠΎΠ·ΠΈΡΠΈΠΈ Π²ΠΎΡΠΏΡΠΎΠΈΠ·Π²Π΅Π΄Π΅Π½ΠΈΡ Π² ΠΏΡΠΎΡΠ΅Π½ΡΠ°Ρ ΠΎΡ 0 Π΄ΠΎ 100.
ΠΠΎΠ²ΡΠΎΡ Π²ΠΎΡΠΏΡΠΎΠΈΠ·Π²Π΅Π΄Π΅Π½ΠΈΡ, ΠΏΡΠΈΠ½ΠΈΠΌΠ°Π΅Ρ ΡΠ»Π΅Π΄ΡΡΡΠΈΠ΅ Π·Π½Π°ΡΠ΅Π½ΠΈΡ:
- off - ΠΏΠΎΠ²ΡΠΎΡ Π²ΠΎΡΠΏΡΠΎΠΈΠ·Π²Π΅Π΄Π΅Π½ΠΈΡ ΠΎΡΠΊΠ»ΡΡΠ΅Π½
- on - ΠΏΠΎΠ²ΡΠΎΡ Π²ΠΎΡΠΏΡΠΎΠΈΠ·Π²Π΅Π΄Π΅Π½ΠΈΡ ΡΠ΅ΠΊΡΡΠ΅Π³ΠΎ ΡΡΠ΅ΠΊΠ°
- all - ΠΏΠΎΠ²ΡΠΎΡ Π²ΡΠ΅Π³ΠΎ ΠΏΠ»Π΅ΠΉΠ»ΠΈΡΡΠ°
ΠΠ΅ΡΠ΅ΠΌΠ΅ΡΠΈΠ²Π°Π½ΠΈΠ΅ ΡΠΏΠΈΡΠΊΠ° ΡΡΠ΅ΠΊΠΎΠ² Π² ΠΏΠ»Π΅ΠΉΠ»ΠΈΡΡΠ΅ Π΄Π»Ρ ΡΠ»ΡΡΠ°ΠΉΠ½ΠΎΠ³ΠΎ Π²ΠΎΡΠΏΡΠΎΠΈΠ·Π²Π΅Π΄Π΅Π½ΠΈΡ. ΠΡΠΈΠ½ΠΈΠΌΠ°Π΅Ρ Π·Π½Π°ΡΠ΅Π½ΠΈΡ true ΠΈ false
Π‘ΡΠ°ΡΡ Π²ΠΎΡΠΏΡΠΎΠΈΠ·Π²Π΅Π΄Π΅Π½ΠΈΡ (true, false)
Π‘ΠΊΠΎΡΠΎΡΡΡ Π²ΠΎΡΠΏΡΠΎΠΈΠ·Π²Π΅Π΄Π΅Π½ΠΈΡ. Π€ΠΈΠΊΡΠΈΡΠΎΠ²Π°Π½Π½ΡΠ΅ Π·Π½Π°ΡΠ΅Π½ΠΈΡ -32, -16, -8, -4, -2, -1, 0, 1, 2, 4, 8, 16, 32, Π° ΡΠ°ΠΊΠΆΠ΅ increment ΠΈ decrement
Π‘ΡΠ΄Π° Π·Π°ΠΏΠΈΡΡΠ²Π°Π΅ΡΡΡ ΠΏΡΡΡ Π΄ΠΎ ΠΏΠ°ΠΏΠΊΠΈ ΠΈΠ»ΠΈ Π΄ΠΈΡΠΊΠ°, Π² ΠΎΡΠ²Π΅Ρ Π² ΡΡΠΎΡ ΡΡΠ°ΡΡΡ Π·Π°ΠΏΠΈΡΡΠ²Π°Π΅ΡΡΡ ΡΠΏΠΈΡΠΎΠΊ ΠΊΠ°ΡΠ°Π»ΠΎΠ³ΠΎΠ² ΡΠΊΠ°Π·Π°Π½Π½ΠΎΠΉ ΠΏΠ°ΠΏΠΊΠΈ ΠΈΠ»ΠΈ Π΄ΠΈΡΠΊΠ°.
ΠΠΊΡΠΈΠ²ΠΈΠ·ΠΈΡΡΠ΅Ρ Π² ΠΏΡΠΎΠΈΠ³ΡΡΠ²Π°ΡΠ΅Π»Π΅ ΠΎΠΊΠ½ΠΎ. ΠΠΎΠ΄Π΄Π΅ΡΠΆΠΈΠ²Π°Π΅Ρ ΡΠ»Π΅Π΄ΡΡΡΠΈΠΉ ΡΠΏΠΈΡΠΎΠΊ:
"home", "programs", "pictures", "filemanager", "files", "settings", "music", "video", "videos", "tv", "pvr", "pvrguideinfo", "pvrrecordinginfo", "pvrtimersetting", "pvrgroupmanager", "pvrchannelmanager", "pvrchannelmanager", "pvrguidesearch", "pvrchannelscan", "pvrupdateprogress", "pvrosdchannels", "pvrosdguide", "pvrosddirector", "pvrosdcutter", "pvrosdteletext", "systeminfo", "testpattern", "screencalibration", "guicalibration", "picturessettings", "programssettings", "weathersettings", "musicsettings", "systemsettings", "videossettings", "networksettings", "servicesettings", "appearancesettings", "pvrsettings", "tvsettings", "scripts", "videofiles", "videolibrary", "videoplaylist", "loginscreen", "profiles", "skinsettings", "addonbrowser", "yesnodialog", "progressdialog", "virtualkeyboard", "volumebar", "submenu", "favourites", "contextmenu", "infodialog", "numericinput", "gamepadinput", "shutdownmenu", "mutebug", "playercontrols", "seekbar", "musicosd", "addonsettings", "visualisationsettings", "visualisationpresetlist", "osdvideosettings", "osdaudiosettings", "videobookmarks", "filebrowser", "networksetup", "mediasource", "profilesettings", "locksettings", "contentsettings", "songinformation", "smartplaylisteditor", "smartplaylistrule", "busydialog", "pictureinfo", "accesspoints", "fullscreeninfo", "karaokeselector", "karaokelargeselector", "sliderdialog", "addoninformation", "musicplaylist", "musicfiles", "musiclibrary", "musicplaylisteditor", "teletext", "selectdialog", "musicinformation", "okdialog", "movieinformation", "textviewer", "fullscreenvideo", "fullscreenlivetv", "visualisation", "slideshow", "filestackingdialog", "karaoke", "weather", "screensaver", "videoosd", "videomenu", "videotimeseek", "musicoverlay", "videooverlay", "startwindow", "startup", "peripherals", "peripheralsettings", "extendedprogressdialog", "mediafilter".
ΠΠΎΠΆΠ½ΠΎ Π²ΡΠΏΠΎΠ»Π½ΠΈΡΡ ΠΎΠ΄Π½ΠΎ ΠΈΠ· ΡΠ»Π΅Π΄ΡΡΡΠΈΡ Π΄Π΅ΠΉΡΡΠ²ΠΈΠΉ:
"left", "right", "up", "down", "pageup", "pagedown", "select", "highlight", "parentdir", "parentfolder", "back", "previousmenu", "info", "pause", "stop", "skipnext", "skipprevious", "fullscreen", "aspectratio", "stepforward", "stepback", "bigstepforward", "bigstepback", "osd", "showsubtitles", "nextsubtitle", "codecinfo", "nextpicture", "previouspicture", "zoomout", "zoomin", "playlist", "queue", "zoomnormal", "zoomlevel1", "zoomlevel2", "zoomlevel3", "zoomlevel4", "zoomlevel5", "zoomlevel6", "zoomlevel7", "zoomlevel8", "zoomlevel9", "nextcalibration", "resetcalibration", "analogmove", "rotate", "rotateccw", "close", "subtitledelayminus", "subtitledelay", "subtitledelayplus", "audiodelayminus", "audiodelay", "audiodelayplus", "subtitleshiftup", "subtitleshiftdown", "subtitlealign", "audionextlanguage", "verticalshiftup", "verticalshiftdown", "nextresolution", "audiotoggledigital", "number0", "number1", "number2", "number3", "number4", "number5", "number6", "number7", "number8", "number9", "osdleft", "osdright", "osdup", "osddown", "osdselect", "osdvalueplus", "osdvalueminus", "smallstepback", "fastforward", "rewind", "play", "playpause", "delete", "copy", "move", "mplayerosd", "hidesubmenu", "screenshot", "rename", "togglewatched", "scanitem", "reloadkeymaps", "volumeup", "volumedown", "mute", "backspace", "scrollup", "scrolldown", "analogfastforward", "analogrewind", "moveitemup", "moveitemdown", "contextmenu", "shift", "symbols", "cursorleft", "cursorright", "showtime", "analogseekforward", "analogseekback", "showpreset", "presetlist", "nextpreset", "previouspreset", "lockpreset", "randompreset", "increasevisrating", "decreasevisrating", "showvideomenu", "enter", "increaserating", "decreaserating", "togglefullscreen", "nextscene", "previousscene", "nextletter", "prevletter", "jumpsms2", "jumpsms3", "jumpsms4", "jumpsms5", "jumpsms6", "jumpsms7", "jumpsms8", "jumpsms9", "filter", "filterclear", "filtersms2", "filtersms3", "filtersms4", "filtersms5", "filtersms6", "filtersms7", "filtersms8", "filtersms9", "firstpage", "lastpage", "guiprofile", "red", "green", "yellow", "blue", "increasepar", "decreasepar", "volampup", "volampdown", "channelup", "channeldown", "previouschannelgroup", "nextchannelgroup", "leftclick", "rightclick", "middleclick", "doubleclick", "wheelup", "wheeldown", "mousedrag", "mousemove", "noop".
- EjectOpticalDrive - ΠΠ·Π²Π»Π΅ΠΊΠ°Π΅Ρ ΠΈΠ»ΠΈ Π·Π°ΠΊΡΡΠ²Π°Π΅Ρ Π΄ΠΈΡΠΊΠΎΠ²ΠΎΠ΄ ΠΎΠΏΡΠΈΡΠ΅ΡΠΊΠΈΡ Π΄ΠΈΡΠΊΠΎΠ² (Π΅ΡΠ»ΠΈ ΠΈΠΌΠ΅Π΅ΡΡΡ)
- Hibernate - Π²ΠΊΠ»ΡΡΠ΅Π½ΠΈΠ΅ ΡΠΏΡΡΠ΅Π³ΠΎ ΡΠ΅ΠΆΠΈΠΌΠ°
- Reboot - ΠΏΠ΅ΡΠ΅Π·Π°Π³ΡΡΠ·ΠΊΠ° ΡΠΈΡΡΠ΅ΠΌΡ
- Shutdown - Π²ΡΠΊΠ»ΡΡΠ°Π΅Ρ ΡΠΈΡΡΠ΅ΠΌΡ
- Suspend - ΠΏΡΠΈΠΎΡΡΠ°Π½Π°Π²Π»ΠΈΠ²Π°Π΅Ρ Kodi
- (instalator) up to stable
- (instalator) fix error
- (instalator) fix error switchPVR
- (instalator) Added description "System" to readme
- (instalator) added object - System (EjectOpticalDrive, Hibernate, Reboot, Shutdown, Suspend)
- (instalator) fix playlist widget
- (instalator) added object - state
- (instalator) change repeat to bool
- (instalator) change for vis-players
- (instalator) change open youtube playlist
- (instalator) added Tests
- (instalator) added open youtube playlist and open youtube link
- (instalator) fix error for Open
- (instalator) fix method number
- (bluefox) fix error milti instance
- (instalator) change pvr switch - add stop
- (instalator) change dependencies
- (instalator) fix change play/stop state
- (instalator) change admin setting
- (instalator) Fix error 'playerid' of undefined
- (instalator) beta
- (bluefox) fixed crash when the driver turned on the KODI
- (bluefox) make adapter disabled by default, because no IP set
- (instalator) Thumbnail widget
- (instalator) added GetDirectory, GetVideoLibrary
- (instalator) added Scan & Clean Library
- (instalator) change creating object
- (instalator) added info.connection state
- (instalator) fix error
- (instalator) added VIS widgets
- (instalator) fix error
- (instalator) added send message from JS
- (instalator) remote player
- (instalator) ShowNotification
- (instalator) info playing
- (instalator) GetPVRChannel
- (instalator) initial (17.04.2016)