Homepage Dash - PiAlert API Error? reddit / selfhosted ---------------------------------------------------------------------- Sparkynerd · 2023-12-23 14:59 I get the following error in my Homepage PiAlert widget: * **API Error: HTTP Error** * **URL: http://10.50.0.108/php/server/devices.php?action=getDevicesTotals** Any ideas what I'm doing wrong here? ---------------------------------------------------------------------- A-Void-Me · 2023-12-23 17:42 How does your services.yaml looks like? for me it looks like you are missing the port widget: type: pialert url: http://ip:port ---------------------------------------------------------------------- Sparkynerd · 2023-12-23 19:21 Currently I have this: - PiAlert: icon: pi-alert.png href: http://10.50.0.108:80 fields: ["total", "connected", "new_devices", "down_alerts"] description: PiAlert widget: type: pialert url: http://10.50.0.108:80 ---------------------------------------------------------------------- A-Void-Me · 2023-12-23 19:54 can you access the url above? [http://10.50.0.108/php/server/devices.p hp?action=getDevicesTotals](http://10.50.0.108/php/server/devices.php? action=getDevicesTotals) try to use: url: [http://10.50.0.108:80/pialert/](http://10.50.0.108:80/pialert/) or /pialert which fork did you use for pialert? ---------------------------------------------------------------------- Sparkynerd · 2023-12-23 20:47 The first link doesn't work (404), the second link does work. I am running PiAlert in an LXC container and used the Tteck script. ---------------------------------------------------------------------- A-Void-Me · 2023-12-23 21:09 So widget: type: pialert url: http://10.50.0.108:80/pialert/ Should be the solution? ---------------------------------------------------------------------- Sparkynerd · 2023-12-23 21:10 I'm spinning up a Debian container and will install on there to see if it's any better... ---------------------------------------------------------------------- Sparkynerd · 2023-12-23 21:58 Not sure if i tried that yet, I'll give it a go. ---------------------------------------------------------------------- Sparkynerd · 2023-12-23 22:11 Update: not working with the new instance either. ---------------------------------------------------------------------- A-Void-Me · 2023-12-23 23:31 i just tried and used the tteck script. default settings. my config: \- PiAlert: icon: pi-alert.png href: http://192.168.100.45/pialert/ widget: type: pialert url: [http://192.168.100.45/pialert/](http://192.168.100.45/pialert/) should work ---------------------------------------------------------------------- Sparkynerd · 2023-12-23 23:38 Here is the latest log: ​ >\[2023-12-23T20:40:15.829Z\] error: Error calling http://10.50.0.108/php/server/devices.php... \[2023-12-23T20:40:15.830Z\] error: \[ 500, Error: connect ECONNREFUSED 10.50.0.108:80 at TCPConnectWrap.afterConnect \[as oncomplete\] (node:net:1555:16) { errno: -111, code: 'ECONNREFUSED', syscall: 'connect', address: '10.50.0.108', port: 80 } \] ---------------------------------------------------------------------- A-Void-Me · 2023-12-23 23:59 its still the wrong url, change it to: \- PiAlert: icon: pi-alert.png href: http://10.50.0.108:80 description: PiAlert widget: type: pialert url: http://10.50.0.108/pialert/ ---------------------------------------------------------------------- Sparkynerd · 2023-12-24 16:24 I tried that also, still no love, same API Error: HTTP Error. Literally all of my other widgets work beautifully except this one, and I'm out of ideas. It's almost to the point of not being worth the grief. I may take a break from troubleshooting this one and come back to it later. ---------------------------------------------------------------------- Sparkynerd · 2023-12-24 17:06 I tried that and it didn't appear to work. My WinSCP needed to reconnect to upload the services yaml file. Working finally, thanks!!!