On 2023-03-27 17:03, Bengt Gördén wrote:
On 2023-03-27 16:07, Bengt Gördén wrote:
On 2023-03-27 15:26, Per Jessen wrote:
Adam Mizerski wrote:
Maybe https://ntfy.sh/ ? You can use the public server or self-host.
Very nice - thanks for the tip!
Ah. That one looks really nice. Must be tested.
Downloaded the self-hosted rpm version and started it on my dev machine. Worked like a charm.
$ curl -d "Oinkoink" localhost/phone {"id":"KAtAvxktxcO2","time":1679928251,"expires":1679971451,"event":"message","topic":"phone","message":"Oinkoink"}
On phone: 2023-03-27 16:44 Oinkoink
I'm having problems. I configured the server like this: /etc/ntfy/server.yml: listen-http: ":2586" base-url: "http://isengard.valinor" cache-file: "/var/cache/ntfy/cache.db" attachment-cache-dir: "/var/cache/ntfy/attachments" And the client like this: /etc/ntfy/client.yml: default-host: http://isengard.valinor:2586 And I try to use the client like this: ntfy publish mytopic "Backup successful 😀" I don't know if this is correct, because the docs do not say how to specify a port in the client. The server does not appear to react (but it might and I don't know). I also tried: curl -H tags:warning -H prio:high -d "Laptop warning" \ isengard.valinor/mytopic:2586 but it is going to port 80 an apache responds instead. I tried to find how to specify a port in the curl manual, and failed, because the word "port" happens thousands of times in the word "supported" :-/ I only found "-P, --ftp-port" which is not it. I also noticed the server logs way too many stats to syslog:
Isengard:~ # tail -f /var/log/messages <3.6> 2023-04-03T11:32:45.729684+02:00 Isengard ntfy 10221 - - INFO Server stats (emails_received=0, emails_received_failure=0, emails_received_success=0, emails_sent=0, emails_sent_failure=0, emails_sent_success=0, messages_cached=0, messages_published=0, subscribers=0, tag=manager, topics_active=0, users=0, visitors=0) <3.6> 2023-04-03T11:33:45.731675+02:00 Isengard ntfy 10221 - - INFO Server stats (emails_received=0, emails_received_failure=0, emails_received_success=0, emails_sent=0, emails_sent_failure=0, emails_sent_success=0, messages_cached=0, messages_published=0, subscribers=0, tag=manager, topics_active=0, users=0, visitors=0) <3.6> 2023-04-03T11:34:45.732440+02:00 Isengard ntfy 10221 - - INFO Server stats (emails_received=0, emails_received_failure=0, emails_received_success=0, emails_sent=0, emails_sent_failure=0, emails_sent_success=0, messages_cached=0, messages_published=0, subscribers=0, tag=manager, topics_active=0, users=0, visitors=0) <3.6> 2023-04-03T11:35:45.733835+02:00 Isengard ntfy 10221 - - INFO Server stats (emails_received=0, emails_received_failure=0, emails_received_success=0, emails_sent=0, emails_sent_failure=0, emails_sent_success=0, messages_cached=0, messages_published=0, subscribers=0, tag=manager, topics_active=0, users=0, visitors=0) <3.6> 2023-04-03T11:39:45.738806+02:00 Isengard ntfy 10221 - - message repeated 4 times: [ INFO Server stats (emails_received=0, emails_received_failure=0, emails_received_success=0, emails_sent=0, emails_sent_failure=0, emails_sent_success=0, messages_cached=0, messages_published=0, subscribers=0, tag=manager, topics_active=0, users=0, visitors=0)] <3.6> 2023-04-03T11:40:45.741168+02:00 Isengard ntfy 10221 - - INFO Server stats (emails_received=0, emails_received_failure=0, emails_received_success=0, emails_sent=0, emails_sent_failure=0, emails_sent_success=0, messages_cached=0, messages_published=0, subscribers=0, tag=manager, topics_active=0, users=0, visitors=0)
So, once per minute. I did not find a setting for that. -- Cheers / Saludos, Carlos E. R. (from 15.4 x86_64 at Telcontar)