resoai / TileBoard

A simple yet highly configurable Dashboard for HomeAssistant
MIT License
1.63k stars 278 forks source link

Issue with Network host options #777

Closed piltous closed 2 years ago

piltous commented 2 years ago

Hello, I was previously using an old version with HA and www folder for an IPAD3. I tried to switch to the add-on app and it's works inside HA and with the API from my desktop and smartphone but not from the IPAD3 (error 401 Unauthorized). I tried to enable a port (8999) in add-on conf so for me http://192.168.178.xx:8999/ but I have only a blue screen from any devices. I'm not sure if it's an issue from the add-on or from my setup but I really would like to enjoy the last version on my old IPAD that I use for wall mount (I have small issue with TYPES.CAMERA and TYPES.MEDIA that seems to be fixed with the last release). Thanks for your help!

rchl commented 2 years ago

Please try with the latest version of the addon (released today).

piltous commented 2 years ago

Hello, many thanks for the release! I'm certainly doing something wrong but I'm not able to reach the custome URL. I set 8999 in the conf and 192.168.178.39:8999 fall from everywhere on http://192.168.178.39:8999/null/auth/authorize?client_id=http%3A%2F%2F192.168.178.39%3A8999&redirect_uri=http%3A%2F%2F192.168.178.39%3A8999%2F%3Foauth%3D1 with an 404 nginx error. Not sure how to fix this...

piltous commented 2 years ago

So I added the long life token, now 192.168.178.39:8999 doesn't redirect to an "auth" url but still no luck to show something, still an emply blue page when it works fine with ingress. any help is welcome.

rchl commented 2 years ago

Open developer tools in the browser and reload the page. Do you see any errors in the Console tab or any failing requests in the Network tab.

You could screenshot what you see if there is no private information in there.

rchl commented 2 years ago

Well, if you have problem with Ipad then I guess that could be difficult if not impossible to do...

There could be something in your config file that breaks in the old browser version. You could try playing with that or post it if you don't mind people seeing your entities.

piltous commented 2 years ago

Hi, thank you for your help. The issue is not only from the Ipad but also from my computer. I don't have SSL enable in HA neither in Tileboard Add-on conf and this is maybe the source of the issue. In the Console I have this websocket issue...

angular.js:15697 DOMException: Failed to construct 'WebSocket': The URL 'null/api/websocket' is invalid.
    at o._connect (http://192.168.178.39:8999/scripts/app-2dfad20a.js:50:17913)
    at http://192.168.178.39:8999/scripts/app-2dfad20a.js:50:15397
    at http://192.168.178.39:8999/scripts/app-2dfad20a.js:7:95657
    at http://192.168.178.39:8999/scripts/app-2dfad20a.js:7:95795
    at c.$digest (http://192.168.178.39:8999/scripts/app-2dfad20a.js:7:101158)
    at c.$apply (http://192.168.178.39:8999/scripts/app-2dfad20a.js:7:103151)
    at http://192.168.178.39:8999/scripts/app-2dfad20a.js:7:10446
    at Object.invoke (http://192.168.178.39:8999/scripts/app-2dfad20a.js:7:26451)
    at i (http://192.168.178.39:8999/scripts/app-2dfad20a.js:7:10367)
    at Object.Dt [as bootstrap] (http://192.168.178.39:8999/scripts/app-2dfad20a.js:7:10656) `Possibly unhandled rejection: {"stack":"Error: Failed to construct 'WebSocket': The URL 'null/api/websocket' is invalid.\n    at o._connect (http://192.168.178.39:8999/scripts/app-2dfad20a.js:50:17913)\n    at http://192.168.178.39:8999/scripts/app-2dfad20a.js:50:15397\n    at http://192.168.178.39:8999/scripts/app-2dfad20a.js:7:95657\n    at http://192.168.178.39:8999/scripts/app-2dfad20a.js:7:95795\n    at c.$digest (http://192.168.178.39:8999/scripts/app-2dfad20a.js:7:101158)\n    at c.$apply (http://192.168.178.39:8999/scripts/app-2dfad20a.js:7:103151)\n    at http://192.168.178.39:8999/scripts/app-2dfad20a.js:7:10446\n    at Object.invoke (http://192.168.178.39:8999/scripts/app-2dfad20a.js:7:26451)\n    at i (http://192.168.178.39:8999/scripts/app-2dfad20a.js:7:10367)\n    at Object.Dt [as bootstrap] (http://192.168.178.39:8999/scripts/app-2dfad20a.js:7:10656)"}`
(anonymous) @ angular.js:15697
(anonymous) @ angular.js:11956
c @ angular.js:18105
$digest @ angular.js:19241
$apply @ angular.js:19630
(anonymous) @ angular.js:1966
invoke @ angular.js:5208
i @ angular.js:1964
Dt @ angular.js:1984
(anonymous) @ init.js:15
n @ angular.js:3587
load (async)
Le @ angular.js:3600
fe @ angular.js:3325
fe @ angular.js:3319
window.initApp @ init.js:14
Z_ @ index.js:24
Q_.onload @ index.js:32
load (async)
(anonymous) @ index.js:32
(anonymous) @ index.js:34
192.168.178.39/:1 Error while trying to use the following icon from the Manifest: http://192.168.178.39:8999/favicon.png (Resource size is not correct - typo in the Manifest?)
rchl commented 2 years ago

What do you have set in the General HA settings:

Screenshot 2021-11-04 at 20 13 47

?

If nothing then you could try to set the Internal URL.

The latest version of the addon also allows you to choose whether the Internal or External URL is preferred if you have both set. Check addon configuration.

piltous commented 2 years ago

Right, it was not set and I disabled "useExternalUrl". It works now :) Many thanks!!!