Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Русский
    3. ioBroker
    4. ioBroker драйвера
    5. [solved]Pushover

    NEWS

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    [solved]Pushover

    This topic has been deleted. Only users with topic management privileges can see it.
    • aurodionov
      aurodionov last edited by

      Словил проблему с отправкой сообщений с приоритетом 2, остальные отправляются исправно.

      ! host-SmartHome 2015-07-17 11:50:06 error instance system.adapter.pushover.0 terminated with code 6 (uncaught exception)
      ! Error: 2015-07-17 11:50:05 error at process._tickCallback (node.js:419:13)
      ! Error: 2015-07-17 11:50:05 error at _stream_readable.js:929:16
      ! Error: 2015-07-17 11:50:05 error at IncomingMessage.emit (events.js:117:20)
      ! Error: 2015-07-17 11:50:05 error at IncomingMessage. (/opt/iobroker/node_modules/iobroker.pushover/node_modules/pushover-notifications/lib/pushover.js:152:9)
      ! Error: 2015-07-17 11:50:05 error at Pushover.errors (/opt/iobroker/node_modules/iobroker.pushover/node_modules/pushover-notifications/lib/pushover.js:82:10)
      ! Error: 2015-07-17 11:50:05 error expire must be supplied with priority=2
      ! uncaught 2015-07-17 11:50:05 error exception: expire must be supplied with priority=2
      ! pushover-0 2015-07-17 11:50:04 info Send pushover notification: {"message":"test!","title":"SmartHome","sound":"pianobar","priority":2}

      1 Reply Last reply Reply Quote 0
      • V
        vtec last edited by

        Отправь на гитхаб в раздел issue. Так хоть ошибки будут в одном месте собираться будут. Если не умеем давайте учится. А то потом по всему форуму искать, да еще помнить.

        1 Reply Last reply Reply Quote 0
        • Bluefox
          Bluefox last edited by

          error exception: expire must be supplied with priority=2

          https://pushover.net/api

          ! ` > Emergency Priority (2)

          Emergency-priority notifications are similar to high-priority notifications, but they are repeated until the notification is acknowledged by the user. These are designed for dispatching and on-call situations where it is critical that a notification be repeatedly shown to the user (or all users of the group that the message was sent to) until it is acknowledged. Applications sending emergency notifications are issued a receipt that can be used to get the status of a notification and find out whether it was acknowledged, or automatically receive a callback when the user has acknowledged the notification.

          To send an emergency-priority notification, the priority parameter must be set to 2 and the retry and expire parameters must be supplied.

          The retry parameter specifies how often (in seconds) the Pushover servers will send the same notification to the user. In a situation where your user might be in a noisy environment or sleeping, retrying the notification (with sound and vibration) will help get his or her attention. This parameter must have a value of at least 30 seconds between retries.

          The expire parameter specifies how many seconds your notification will continue to be retried for (every retry seconds). If the notification has not been acknowledged in expire seconds, it will be marked as expired and will stop being sent to the user. Note that the notification is still shown to the user after it is expired, but it will not prompt the user for acknowledgement. This parameter must have a maximum value of at most 86400 seconds (24 hours).

          For example, sending a retry parameter of 60 and an expire parameter of 3600 will cause your notification to be retried every 60 seconds for 1 hour.

          The optional callback parameter may be supplied with a publicly-accessible URL that our servers will send a request to when the user has acknowledged your notification.

          When your application sends an emergency-priority notification, our API will respond with a receipt value that can be used to get information about whether the notification has been acknowledged. See our receipts and callbacks section for more information. `

          То есть:

          {"message":"test!","title":"SmartHome","sound":"pianobar","priority":2,"expire":30, "retry": 15}

          1 Reply Last reply Reply Quote 0
          • aurodionov
            aurodionov last edited by

            Bluefox, спасибо за пинок в нужном направлении. Заработало так:

            sendTo("pushover.0", {message:'test!',title:'SmartHome',sound:'pianobar',priority:2,retry:30,expire:30})

            1 Reply Last reply Reply Quote 0
            • I
              instalator last edited by

              Отвалился инет сегодня, pushover выдал такую ошибку в лог

              pushover-0	2015-11-18 19:27:10	error	Cannot send notification: {"code":"EAGAIN","errno":"EAGAIN","syscall":"getaddrinfo"}
              
              1 Reply Last reply Reply Quote 0
              • I
                instalator last edited by

                появилась ошибка:

                ! pushover-0 2015-12-26 23:50:07 error Cannot send notification: {"code":"ENOTFOUND","errno":"ENOTFOUND","syscall":"getaddrinfo"}
                что означает я не понял, последующий сообщения приходят.

                1 Reply Last reply Reply Quote 0
                • aurodionov
                  aurodionov last edited by

                  @instalator:

                  появилась ошибка:

                  ! pushover-0 2015-12-26 23:50:07 error Cannot send notification: {"code":"ENOTFOUND","errno":"ENOTFOUND","syscall":"getaddrinfo"}
                  что означает я не понял, последующий сообщения приходят. `
                  У меня пока работает, ошибок нет
                  2858_12_iobroker.2018-11-23.log

                  1 Reply Last reply Reply Quote 0
                  • V
                    vtec last edited by

                    @instalator:

                    появилась ошибка:

                    ! pushover-0 2015-12-26 23:50:07 error Cannot send notification: {"code":"ENOTFOUND","errno":"ENOTFOUND","syscall":"getaddrinfo"}
                    что означает я не понял, последующий сообщения приходят. `
                    Может интернет или ДНС отвалился, данное словосочетание getaddrinfo смущает.

                    1 Reply Last reply Reply Quote 0
                    • First post
                      Last post

                    Support us

                    ioBroker
                    Community Adapters
                    Donate

                    530
                    Online

                    31.8k
                    Users

                    80.0k
                    Topics

                    1.3m
                    Posts

                    4
                    8
                    2289
                    Loading More Posts
                    • Oldest to Newest
                    • Newest to Oldest
                    • Most Votes
                    Reply
                    • Reply as topic
                    Log in to reply
                    Community
                    Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
                    The ioBroker Community 2014-2023
                    logo