I’ve never really played with it, but was hoping it might help. If I have some time this afternoon I can play some more (honestly I’m intrigued as well).
In the mean time, you might try the command below and see if it will work instead. It should just return messages already sent, it I’m not sure how many.
ntfy.sh/mytopic/json?poll=1
N0x0n@lemmy.ml 1 week 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…