2016-04-26, 11:03
Hi,
how to change this old format to new json api?
how to change this old format to new json api?
Code:
--Get the currently playing info from the XBMC
function getCurrentlyPlayingInfo(self)
local http = SocketHttp(jnt, settings["xbmc_ip_address"], settings["xbmc_port"], "xbmc")
local req = RequestHttp( function(chunk, err)
if chunk then
parseCurrentlyPlayingInfo(self, chunk) --Parse the recieved info
end
end,
'GET',
'/xbmcCmds/xbmcHttp?command=GetCurrentlyPlaying')
http:fetch(req)
end