Your Universal Remote Control Center
RemoteCentral.com
Philips Pronto Professional Forum - View Post
Up level
Up level
The following page was printed from RemoteCentral.com:

Login:
Pass:
 
 

Original thread:
Post 34 made on Thursday August 6, 2020 at 17:39
mpg7321
Regular Member
Joined:
Posts:
June 2020
111
I even went back to the sample in the developers guide and still no luck.

function kodi2(){
receivedData = "";
socket.onConnect = function() {
write("GET /t/p/original/"+cover+".jpg /HTTP1.0\r\n");
};
socket.onData = function() {
receivedData += read();
};
socket.onIOError = function (e) {
widget("MOVIE_COVER").label = "IOError " + e;
};
socket.onClose = function () {
var imageStartIndex, bitmapData, myImage;
// remove the HTTP header from the received data
imageStartIndex = receivedData.indexOf("\r\n\r\n");
bitmapData = receivedData.substring(imageStartIndex+4);
// make and display the image
myImage = new Image(bitmapData);
widget("MOVIE_COVER").setImage(myImage);
};
socket.connect("image.tmdb.org",80,3000);
scheduleAfter(500,kodi3);
};

With this script I am getting an error "IOError PanelIERROR: Failed to connect

Last edited by mpg7321 on August 6, 2020 17:46.


Hosting Services by ipHouse