androidseb25 / iGotify-Notification-Assistent

Docker container for sending Gotify notifications to iOS devices (bridge to gotify websocket)
MIT License
101 stars 3 forks source link

newline oder zeilenumbruch #16

Closed dasfranky1 closed 6 months ago

dasfranky1 commented 6 months ago

Ich habe das Problem, dass der Zeilenumbruch auf dem iPhone nicht korrekt dargestellt wird. In der gotify push sind die Umbrüche richtig, in der igotify app nicht (alle).

ich sende von Linux einen Multiline echo in eine Datei, die Datei wird per gotify push (gotify push -t "titel" -p X < datei) gesendet.

androidseb25 commented 6 months ago

Kann das vllt am Markdown hängen das die Umbrüche nicht korrekt sind?

androidseb25 commented 6 months ago

Wenn du ein beispiel hättest könnte ich das noch besser nachvollziehen

dasfranky1 commented 6 months ago

Beispiel: ein script wird per cron alle X minuten ausgeführt. im script wird der dateiinhalt wie folgt gefüllt und gesendet:

Build content

echo " Hostname: $hostname Uptime: $uptime_hours [hours] Location: $currentlocation Boottime: $boottime Systemtime: $currenttime Network: eth0 $networketh0 Network: eth1 $networketh1 Network: tun0 $networktun0 CPU Load: $load1 $load5 $load15 [1/5/15] RAM Usage: $ramused of $ramtotal [GB] Temp CPU: $cputemp Temp NVME1: $tempnvme11-$tempnvme12 Temp NVME2: $tempnvme21-$tempnvme22 Temp SSD: $tempsda $tempsdb DiskUsage Sys: $disk_sys DiskUsage DB: $disk_sql DiskUsage Data: $disk_data DiskUsage Backup: $disk_ba DiskUsage RAMdisk: $disk_ram Apps Analyseapp: $process_analyse Apps Captureapp: $process_capture Apps Storage: $process_storage Apps Dump: $process_dump FilesQ PreProcess: $traceqprepro FilesQ PreAnalysis: $traceqpreana Interfaces WLAN: $countwlanint Interfaces MON: $countwlanmon IM: ${arr_mon[]} CH: ${arr_chan[]} HT: ${arr_ht[*]} " | tee -a $tmpfile gotify push -t "titel" -p 1 < $tmpfile

Auf dem iPhone: IMG_1685

im Web: ex_web

androidseb25 commented 6 months ago

Es sieht so aus als würde er beim Interpretieren des Textes als Markdown den normalen Zeilenumbruch nicht darstellen nehmen, probiere mal </br> das sollte funktionieren, aber ich schau mal bis zum nächsten Release ob ich das auch so hinbekomme

dasfranky1 commented 6 months ago

mit den </br> wird der Inhalt korrekt angezeigt, aber im web client sowie in der preview der push-nachricht sind die </br> im Klartext zu lesen.

androidseb25 commented 6 months ago

ok gut wie gesagt ich schau es mir an und versuche es mit dem nächsten release zu fixen

androidseb25 commented 6 months ago

So mal schnell im Internet gestöbert und konnte das Problem lösen, ist im nächsten Update definitiv dabei (siehe Bilder)

Vorher:

Vorher

Nachher

Nachher