loving_ntfy

joined 1 year ago
[–] [email protected] 1 points 11 hours ago

Confusing and confused comment.

English indeed belongs to the Germanic branch of the Indo-European language family i.e. has german it its core structure and basic vocabulary (pronouns, basic verbs, nouns). Also some idiomatic expressions are also rooted in its Germanic heritage.

Latin influence primarily came through old English (Latin via christianity) and middle English when the Normans invaded England. This Latin is mainly in areas like law, governance, religion and literature. It’s estimated that over 60% of modern English vocabulary is derived from Latin, often via French.

Greek is everywhere in the fields of science, medicine, philosophy, and the arts. It makes up a smaller percentage compared to Latin—perhaps around 10% of the English vocabulary, though it forms the basis of many complex and specialized terms.

A modern German speaker might recognize some English words with Germanic roots, but the recognition is often less obvious due to centuries of language evolution.

For Greek speakers, recognizing Greek-derived words in English is significantly easier and straightforward. This is because the words have been adopted verbatim, with barely any transformation. And these words usually fall in the category of more academic, high-level English.

In the parent comment for example, 4 out of 6 words are purely Greek (Cacography, Epeolatry, Kakistocracy, Oikophilia).

[–] [email protected] 2 points 11 months ago

Not quite clear.

Given I have no tiers, I am covered just with cache-duration and can completely ignore message-expiry-duration?

I have a single service that POSTs messages to ntfy which sends them to subscribers. Any subscriber will have to connect within cache-duration or else ntfy deletes messages older than that from the database. Is that accurate? The intention is to keep the sqlite db lean and small.

 

What is the difference between the two.

The cache-duration is explained in the docs and is fairly clear:

Duration for which messages will be buffered before they are deleted

so it is to account for network interruptions of subscribers.

message-expiry-duration is mentioned but there is no explanation for it in the docs.

[–] [email protected] 2 points 1 year ago (1 children)

That would work great! So anything sent under "extras" would be forwarded verbatim to the mobile app.

Is it too much trouble to implement?

[–] [email protected] 2 points 1 year ago (3 children)

My backend POSTs notification JSON to self-hosted ntfy server:

{
 "topic": "1234", 
 "message": "foo",
 "title": "bar",
 "customField": "baz"
}

The ntfy server should broadcast all fields, including customField to the websockets/subscribers of this topic.

Am I missing something?

[–] [email protected] 1 points 1 year ago (1 children)

I also see log-file option. Is it possible to log both to a file (for later inspection) and to stderr?

 

I have a self-hosted ntfy instance and I am gradually building a bare-bones mobile app to display my notifications.

I am publishing by POSTing as JSON. Is it possible for the ntfy server to send all the data fields that are included in the JSON? I would like to pass data in custom fields. Makes sense?

If this does not exist, is it possible to make a feature-request?

[–] [email protected] 2 points 1 year ago (3 children)

Nevermind. I found the problem. It was not NTFY's fault. Some of the notifications that were POSTed to NTFY, didn't follow the correct syntax (was sending "attach" in the JSON as string[] instead of a single string).

Would be nice though if NTFY could provide a debug log to catch such cases.

 

I do POSTs from a backend app to a self-hosted ntfy instance (docker). The POSTs do not fail and I also save them in local db. I now compare the notifications cached in /var/cache/ntfy/cache.db against the ones I save in my local db and I see that ntfy is missing a lot. As an example, today for example I have POSTed 540 times and in cache.db I see only 60 of them. The skipped ones are not even at regular intervals.

Is there a logfile I can check in the ntfy service? The output of the ntfy process itself only shows the expected INFO Server stats... message but not errors.

Is there any reason ntfy may not be registering some of the POSTed notifications?

Best regards.

Edit: I can also confirm on the mobile app that I did not receive the skipped ones; I have only received indeed the ones that I see in ntfy's cache.db.