Closed dasfranky1 closed 6 months ago
Kann das vllt am Markdown hängen das die Umbrüche nicht korrekt sind?
Wenn du ein beispiel hättest könnte ich das noch besser nachvollziehen
Beispiel: ein script wird per cron alle X minuten ausgeführt. im script wird der dateiinhalt wie folgt gefüllt und gesendet:
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:
im Web:
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
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.
ok gut wie gesagt ich schau es mir an und versuche es mit dem nächsten release zu fixen
So mal schnell im Internet gestöbert und konnte das Problem lösen, ist im nächsten Update definitiv dabei (siehe Bilder)
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.