I need some help to valide my code for a TTGO camera that works with ESPHome in HA.
I enabled stream in ESPHome to be able to get img stream direct from an http url without using HA to get more fts (I have +/- 1.3fts).
I use this code in Tileboard but after some times it freeze.
Could you help me to correct this if possible?
``
//Doorbell Camera
{
position: [1.7, 0],
width: 3.5,
height: 2.2,
type: TYPES.CAMERA,
id: {},
// bgSize: 'contain',
//width: 2,
state: false,
fullscreen: {
type: TYPES.CAMERA,
refresh: 1000,
filter: function (item, entity) {
return "http://192.168.178.77:8080"; },
// refresh: 500, // can be number in milliseconds
bgSize: 'contain'
},
// refresh: 1000,
filter: function (item, entity) {
return "http://192.168.178.77:8080" }
},
//Doorbell Camera
// {
// position: [1.7, 0],
// id: 'camera.doorbell_camera',
// type: TYPES.CAMERA,
//// //bgSize: 'cover',
// width: 3.5,
// height: 2.2,
// state: false,
// //fullscreen: {
// // type: TYPES.CAMERA_STREAM,
// // objFit: 'contain', // https://developer.mozilla.org/en-US/docs/Web/CSS/object-fit
// // id: 'camera.doorbell_camera', // Optional: camera entity to use on fullscreen, defaults to the tile camera entity if omitted
// // bufferLength: 5 // Optional: buffer length in seconds for the HLS buffer, default is 5 seconds
// //},
//// refresh: 1000, // can be number in milliseconds
// refresh: function () { // can also be a function
// return 1000 + Math.random() * 1000 }
// },
``
I already tried many things based on my research but no luck for now...
Hi! (again...),
I need some help to valide my code for a TTGO camera that works with ESPHome in HA.
I enabled stream in ESPHome to be able to get img stream direct from an http url without using HA to get more fts (I have +/- 1.3fts).
I use this code in Tileboard but after some times it freeze.
Could you help me to correct this if possible?
`` //Doorbell Camera { position: [1.7, 0], width: 3.5, height: 2.2, type: TYPES.CAMERA, id: {}, // bgSize: 'contain', //width: 2, state: false, fullscreen: { type: TYPES.CAMERA, refresh: 1000, filter: function (item, entity) { return "http://192.168.178.77:8080"; }, // refresh: 500, // can be number in milliseconds bgSize: 'contain' }, // refresh: 1000, filter: function (item, entity) { return "http://192.168.178.77:8080" } },
//Doorbell Camera
// { // position: [1.7, 0], // id: 'camera.doorbell_camera', // type: TYPES.CAMERA, //// //bgSize: 'cover', // width: 3.5, // height: 2.2, // state: false, // //fullscreen: { // // type: TYPES.CAMERA_STREAM, // // objFit: 'contain', // https://developer.mozilla.org/en-US/docs/Web/CSS/object-fit // // id: 'camera.doorbell_camera', // Optional: camera entity to use on fullscreen, defaults to the tile camera entity if omitted // // bufferLength: 5 // Optional: buffer length in seconds for the HLS buffer, default is 5 seconds // //}, //// refresh: 1000, // can be number in milliseconds // refresh: function () { // can also be a function // return 1000 + Math.random() * 1000 } // }, ``
I already tried many things based on my research but no luck for now...
Thanks in advance. Rgds.