Comment on [Question] Send NTFY notification to a dashboard like Glance? | Self-host a simple dynamic json api to hook to the Glance dashboard (custom API)?

<- View Parent
N0x0n@lemmy.ml ⁨5⁩ ⁨weeks⁩ ago

Hello :)

This looked promising, thank you for the hint ! However, the format is probably not what Glance is expecting (ndjson) so there is no way to query the expected key and throws the following error: invalid response JSON !

This would have been so nice and easier than to mess around with a database and postgREST haha ! I think I going to stop here as it gets kinda messy and out of my personal comfort… Maybe in the near future there will be someone adding a widget who knows xD Myself I’m not able to do so… Will probably give also AI a try with copilote as mentioned by another user see if I get better results.

My “half-baked” solution involves a postgREST database container which gets it’s query from my bash script send via curl… It somehow works for simple queries like “Backup failed” but as soon as they are some special characters (from stderr), it just breaks…

source
Sort:hotnewtop