Ankündigung

Einklappen
Keine Ankündigung bisher.

Synology Chat als Pushmitteilung von EDOMI

Einklappen
X
 
  • Filter
  • Zeit
  • Anzeigen
Alles löschen
neue Beiträge

    Synology Chat als Pushmitteilung von EDOMI

    Guten Morgen, versuche Synology Chat als Pushdienst für EDOMI zu verwenden und damit Telegram abzulösen. Grundsätzlich funktioniert das auch (Push-Mitteilung kommt an), jedoch:

    1) Laufzeit von Synology Chat teilweise erheblich länger als bei Telegram
    2) Teilweise landen die Request im Fehlerlog (failed to open stream: HTTP request failed!)
    3) Sende ich den Request über den Browser erhalte ich ein "success", sende ich über EDOMI folgende Fehlermeldung "{"error":{"code":120,"errors":{"name":"payload"," reason":"required"}},"success":false}" als Rückmeldung.

    Um die Pushmitteilung auszulösen sende ich mit EDOMI einen HTTP-Request, der aus der Webhook-Url aus Synology Chat + &payload={"text": "test HTTP"} besteht.
    Wäre für Hinweise dankbar.

    #2
    Hat keiner hierzu eine Idee?

    Kommentar


      #3
      Ich habe das gleiche Setup, konnte bisher aber noch keine Probleme feststellen. Im Betrieb ist noch nie eine Nachricht in Fehler gelaufen.
      Ich muss aber auch dazu sagen, dass ich dies nur für sehr sporadische Nachrichten nutze.
      Insofern habe ich jetzt leider auch keine Idee was dort das Problem sein könnte.

      Kommentar


        #4
        Nutzt du den Hostnamen oder die IP deines Synology? Ggf Probleme mit deinem DNS.
        Grüße
        Sebastian

        Kommentar


          #5
          Danke für die Rückmeldung. Ich nutze die IP.
          Mittlerweile habe ich festgestellt, dass jede Nachricht eine der folgenden Fehlermeldungen im Fehlerlog produziert:

          Datei: /usr/local/edomi/main/queuecmd/cmd140.php | Fehlercode: 2 | Zeile: 20 | file_get_contents(http://...@192.xxx.xx.xx:xxxx/webapi/entry.cgi?api=SYNO.Chat.External&method=incoming&v ersion=2&token=%XXXXX%22&payload={"text": "Briefkasten"}): failed to open stream: HTTP request failed!

          Das merkwürdige ist, das die Nachrichten ja trotzdem ankommen, allerdings mit einigem Zeitverzug (geschätzt 20 - 60 Sek).

          Kommentar


            #6
            Du könntest mal den HTTP-Request LBS versuchen. Der macht HTTP-Requests basierend auf php-curl.

            Kommentar


              #7
              Werde ich versuchen. Danke!

              Kommentar


                #8
                Hallo jonofe, komme leider nicht weiter. Habe folgende Eingangs. und Ausgangsbelegung. Die Verbindung zur Synology scheint ja zu Stande zu kommen, aber es wird keine Kurzmitteilung versendet.

                E2 IP der Synology:Port
                E3 GET
                E14 Application/json
                E17 http://192.XXX.XXX.XX:5000/webapi/en...;method=incomi ng&version=2&token=%22XXXXX%22&payloa d ={"text": "testtext"}

                A1 200
                A2 HTTP/1.1 200 OK
                Server: nginx
                Date: Mon, 27 Dec 2021 14:17:34 GMT
                Content-Type: text/html; charset="UTF-8"
                Transfer-Encoding: chunked
                Connection: keep-alive
                Keep-Alive: timeout=20
                Vary: Accept-Encoding
                Cache-control: no-store
                X-Content-Type-Options: nosniff
                X-XSS-Protection: 1; mode=block
                X-Frame-Options: SAMEORIGIN
                P3P: CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT"
                Content-Security-Policy: base-uri 'self'; connect-src data: ws: wss: *; default-src 'self' 'unsafe-eval' data: blob: https://*.synology.com https://www.synology.cn/ https://help.synology.cn/; font-src 'self' data: https://*.googleapis.com https://*.gstatic.com https://fonts.gstatic.com https://*.gstatic.com; form-action 'self'; frame-ancestors 'self' https://gofile.me http://gofile.me; frame-src 'self' data: blob: https://*.synology.com https://*.synology.cn https://www.youtube.com http://www.youtube.com http://*.synology.com http://*.synology.cn; img-src 'self' data: blob: https://*.google.com https://*.googleapis.com http://*.googlecode.com https://*.gstatic.com https://*.gstatic.com https://*.googleapis.com https://*.google.com https://i.ytimg.com https://*.ggpht.com https://*.gstatic.com https://*.googleapis.com https://*.google.com http://*.baidu.com https://*.bdstatic.com https://*.bdimg.com; media-src 'self' data: about: https://*.synology.com https://help.synology.cn; script-src 'self' 'unsafe-eval' data: blob: https://*.synology.com https://www.synology.cn/ https://help.synology.cn https://*.google.com https://*.googleapis.com https://*.google.com https://*.googleapis.com https://*.google.com https://*.googleapis.com https://*.baidu.com https://*.bdstatic.com https://*.bdimg.com; style-src 'self' 'unsafe-inline' https://*.googleapis.com https://*.googleapis.com https://*.googleapis.com https://api.map.baidu.com;
                A3 <!DOCTYPE html>
                <html>
                <head>
                <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
                <meta http-equiv="X-UA-Compatible" content="IE=11" />
                <meta name="msapplication-TileImage" content="resources/images/icon_tile.png?v=4398" />
                <meta name="application-name" content="CubeStation_III - Synology DiskStation" />
                <meta name="msapplication-TileColor" content="#246BB3"/>
                <meta name="description" content="DiskStation provides a full-featured network attached storage (NAS) solution to help you manage, backup and share data among Windows, Mac and Linux easily." />
                <meta name="keywords" content="Multitasking,Web Application,Personal Cloud" />

                <link rel="apple-touch-icon" href="webman/resources/images/icon_dsm_96.png?v=40438" />
                <link rel="mask-icon" href="webman/safari_pin_icon.svg" color="#0086E5" />
                <link rel="icon" href="webman/favicon.ico?v=40438" />
                <link rel="icon" href="webman/resources/images/icon_dsm_96.png?v=40438" sizes="96x96"/>
                <link rel="icon" href="webman/resources/images/icon_dsm_64.png?v=40438" sizes="64x64"/>
                <link rel="icon" href="webman/resources/images/icon_dsm_48.png?v=40438" sizes="48x48"/>
                <link rel="icon" href="webman/resources/images/icon_dsm_32.png?v=40438" sizes="32x32"/>
                <link rel="icon" href="webman/resources/images/icon_dsm_16.png?v=40438" sizes="16x16"/>
                <title>CubeStation_III - Synology DiskStation</title>
                <link rel="stylesheet" type="text/css" href="scripts/ext-3.4/resources/css/ext-all.css?v=1621235040" />
                <link rel="stylesheet" type="text/css" href="scripts/syno-vue-components/style/syno-vue-components.css?v=1626769293" />
                <link rel="stylesheet" type="text/css" href="scripts/scrollbar/flexcroll.css?v=1621235040" />
                <link rel="stylesheet" type="text/css" href="scripts/ext-3/ux/ux-all.css?v=1621235040" />
                <link rel="stylesheet" type="text/css" href="synoSDSjslib/sds.css?v=1630466526" />
                <link rel="stylesheet" type="text/css" href="webman/desktop/dist/style.css?v=1634029561" />
                <link rel="stylesheet" type="text/css" href="webman/login/css/login.css?v=1634029561" />
                <link rel="stylesheet" type="text/css" href="webman/resources/css/desktop.css?v=1634029561" />
                <link rel="stylesheet" type="text/css" href="webman/modules/HotkeyManager/style.css?v=1634029561" />
                <link rel="stylesheet" type="text/css" href="webman/modules/StorageManager/style.css?v=1634029561" />
                <link rel="stylesheet" type="text/css" href="webman/modules/ActiveInsightUpdateNotify/style.css?v=1634029561" />
                <link rel="stylesheet" type="text/css" href="webman/modules/Utils/style.css?v=1630297163" />
                <link rel="stylesheet" type="text/css" href="webman/modules/ExternalDevices/style.css?v=1634029561" />
                <link rel="stylesheet" type="text/css" href="webman/modules/DataDrivenDocuments/style.css?v=1634029561" />
                <link rel="stylesheet" type="text/css" href="webman/modules/C3/style.css?v=1634029561" />
                <link rel="stylesheet" type="text/css" href="webman/modules/ResourceMonitor/style.css?v=1634029561" />
                <link rel="stylesheet" type="text/css" href="webman/modules/WelcomeApp/style.css?v=1634029561" />
                <link rel="stylesheet" type="text/css" href="webman/modules/VideoPlayer2/style.css?v=1615909239" />
                <link rel="stylesheet" type="text/css" href="webman/modules/DisableAdminNotification/style.css?v=1634029561" />
                <link rel="stylesheet" type="text/css" href="webman/modules/OTPWizard/style.css?v=1630297163" />
                <link rel="stylesheet" type="text/css" href="webman/modules/TaskSchedulerWidget/style.css?v=1634029561" />
                <link rel="stylesheet" type="text/css" href="webman/modules/TaskSchedulerUtils/style.css?v=1630297163" />
                <link rel="stylesheet" type="text/css" href="webman/modules/BandwidthControl/style.css?v=1602761074" />
                <link rel="stylesheet" type="text/css" href="webman/modules/EnableNewUpdateSetting/style.css?v=1634029561" />
                <link rel="stylesheet" type="text/css" href="webman/modules/AudioPlayer/style.css?v=1630297163" />
                <link rel="stylesheet" type="text/css" href="webman/modules/ConfigBackup/style.css?v=1631183892" />
                <link rel="stylesheet" type="text/css" href="webman/modules/DSMNotify/style.css?v=1630297163" />
                <link rel="stylesheet" type="text/css" href="webman/modules/FileChooser/style.css?v=1630297163" />
                <link rel="stylesheet" type="text/css" href="webman/modules/BackgroundTaskMonitor/style.css?v=1630297163" />
                <link rel="stylesheet" type="text/css" href="webman/modules/AdminCenter/style.css?v=1628236693" />
                <link rel="stylesheet" type="text/css" href="webman/modules/PhotoViewer/style.css?v=1630297163" />
                <link rel="stylesheet" type="text/css" href="webman/modules/SharingManager/style.css?v=1630297163" />
                <link rel="stylesheet" type="text/css" href="webman/modules/PollingTask/style.css?v=1630297163" />
                <link rel="stylesheet" type="text/css" href="webman/modules/Share/style.css?v=1630297163" />
                <link rel="stylesheet" type="text/css" href="webman/modules/DesktopProgress/style.css?v=1630297163" />
                <link rel="stylesheet" type="text/css" href="webman/modules/LogCenter/style.css?v=1623320420" />
                <link rel="stylesheet" type="text/css" href="webman/modules/SupportForm/style.css?v=1630297163" />
                <link rel="stylesheet" type="text/css" href="webman/modules/ThumbConvertProgress/style.css?v=1604674576" />
                <link rel="stylesheet" type="text/css" href="webman/modules/SystemInfoApp/style.css?v=1634029561" />
                <link rel="stylesheet" type="text/css" href="webman/modules/Widgets/style.css?v=1634029561" />
                <link rel="stylesheet" type="text/css" href="webman/modules/HelpBrowser/style.css?v=1630297163" />
                <link rel="stylesheet" type="text/css" href="webman/modules/SecurityScan/style.css?v=1631070614" />
                <link rel="stylesheet" type="text/css" href="webman/modules/UpdateMaskApp/style.css?v=1634029561" />
                <link rel="stylesheet" type="text/css" href="webman/modules/ClipBoardJS/style.css?v=1630297163" />
                <link rel="stylesheet" type="text/css" href="webman/modules/PkgManApp/style.css?v=1630297163" />
                <link rel="stylesheet" type="text/css" href="webman/modules/DiskMessageHandler/style.css?v=1634029561" />
                <link rel="stylesheet" type="text/css" href="webman/modules/FileChooserV6/style.css?v=1630297163" />
                <link rel="stylesheet" type="text/css" href="webman/modules/MyDSCenter/style.css?v=1630297163" />
                <link rel="stylesheet" type="text/css" href="webman/modules/PersonalSettings/style.css?v=1630297163" />
                <link rel="stylesheet" type="text/css" href="webman/modules/ResetAdminApp/style.css?v=1634029561" />
                <link rel="stylesheet" type="text/css" href="webman/3rdparty/Docker/style.css?v=1629357465" />
                <link rel="stylesheet" type="text/css" href="webman/3rdparty/SynoFinder/style.css?v=1631807429" />
                <link rel="stylesheet" type="text/css" href="webman/3rdparty/OAuthService/style.css?v=1618330426" />
                <link rel="stylesheet" type="text/css" href="webman/3rdparty/FileBrowser/style.css?v=1629445144" />
                <link rel="stylesheet" type="text/css" href="webman/3rdparty/WebDAVServer/style.css?v=1620977487" />
                <link rel="stylesheet" type="text/css" href="webman/3rdparty/Spreadsheet/style.css?v=1620417575" />
                <link rel="stylesheet" type="text/css" href="webman/3rdparty/FileTaskMonitor/style.css?v=1629445139" />
                <link rel="stylesheet" type="text/css" href="webman/3rdparty/Chat/style.css?v=1626751146" />
                <link rel="stylesheet" type="text/css" href="webman/3rdparty/VideoStation/style.css?v=1624870154" />
                <link rel="stylesheet" type="text/css" href="webman/3rdparty/MediaServer/style.css?v=1623031862" />
                <link rel="stylesheet" type="text/css" href="webman/3rdparty/NoteStation/style.css?v=1618474690" />
                <link rel="stylesheet" type="text/css" href="webman/3rdparty/SynologyDrive-ShareSync/style.css?v=1635314379" />
                <link rel="stylesheet" type="text/css" href="webman/3rdparty/Virtualization/style.css?v=1628868696" />
                <link rel="stylesheet" type="text/css" href="webman/3rdparty/AntiVirus/style.css?v=1626686364" />
                <link rel="stylesheet" type="text/css" href="webman/3rdparty/ScsiTarget/style.css?v=1627983354" />
                <link rel="stylesheet" type="text/css" href="webman/3rdparty/SynologyPhotos/style.css?v=1636030151" />
                <link rel="stylesheet" type="text/css" href="webman/3rdparty/DhcpServer/style.css?v=1619169285" />
                <link rel="stylesheet" type="text/css" href="webman/3rdparty/HyperBackup/style.css?v=1627932947" />
                <link rel="stylesheet" type="text/css" href="webman/3rdparty/DownloadStation/style.css?v=1636941830" />
                <link rel="stylesheet" type="text/css" href="webman/3rdparty/WebStation/style.css?v=1619686316" />
                <link rel="stylesheet" type="text/css" href="webman/3rdparty/SynologyDrive/style.css?v=1635314383" />
                <link rel="stylesheet" type="text/css" href="webman/3rdparty/MailPlus-Server/style.css?v=1638435946" />
                <link rel="stylesheet" type="text/css" href="webman/3rdparty/SynologyDrive-Drive/style.css?v=1635314379" />
                <link rel="stylesheet" type="text/css" href="webman/3rdparty/AudioStation/style.css?v=1618474773" />
                <link rel="stylesheet" type="text/css" href="webman/3rdparty/SynologyApplicationService/style.css?v=1619500014" />
                <link rel="stylesheet" type="text/css" href="webman/3rdparty/HybridShare/style.css?v=1632314242" />

                </head>
                <body role="application">
                <div id="sds-wallpaper"></div>
                <!-- Don't contain any text node to avoid IE insertBefore bug -->
                <div id="sds-login-vue"></div>
                <div id="framework-attach"></div>
                <script type="text/javascript" src="webapi/entry.cgi?api=SYNO.Core.Desktop.SessionData&ve rsio n=1&method=getjs&SynoToken=&v=16280472 66"></script>
                <script type="text/javascript" src="scripts/babel-polyfill/polyfill.js?v=1621235040"></script>
                <script type="text/javascript" src="scripts/synowebapi.js/synowebapi.min.js?v=1622426424"></script>
                <script type="text/javascript" src="scripts/synocredential.js/synocredential.min.js?v=1626247194"></script>
                <script type="text/javascript" src="webapi/entry.cgi?api=SYNO.Core.Desktop.Defs&version=1 &met hod=getjs&v=1634563612"></script>
                <script type="text/javascript" src="webapi/entry.cgi?api=SYNO.Core.Desktop.JSUIString&ver sion =1&method=getjs&lang=enu&v=1636022914 " ></script>
                <script type="text/javascript" s

                Kommentar


                  #9
                  Und das soll jemand interpretieren? Formatier das mal in den [CODE]-tags

                  Kommentar

                  Lädt...
                  X