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.