ioBroker.pushover icon indicating copy to clipboard operation
ioBroker.pushover copied to clipboard

Device selection wont work

Open dnehring7 opened this issue 3 years ago • 7 comments

Seems to be a pushover-notifications problem:

    sendTo("pushover.0", {
        message: 'Test1',
        title: 'ioBroker',
        device: 'mydevice',
    });

Send the requests to all devices, not only "mydevice".

2022-06-27 15:46:46.140 - info: pushover.0 (1563) Send pushover notification: {"message":"Test1","title":"ioBroker","device":"mydevice"}

Correct call chain!

And debug output from npm pushover-notification: token=XXXXX&user=XXXXX&message=Test1&title=ioBroker&device=mydevice

curl test seems to work:

curl --trace-ascii /dev/stdout --form-string "token=XXX" --form-string "user=XXX" --form-string "message=test3" --form-string "device=mydevice" https://api.pushover.net/1/messages.json

=> Send data, 497 bytes (0x1f1)
0000: --------------------------987e74bc0c097acd
002c: Content-Disposition: form-data; name="token"
005a:
005c: XXX
007c: --------------------------987e74bc0c097acd
00a8: Content-Disposition: form-data; name="user"
00d5:
00d7: XXX
00f7: --------------------------987e74bc0c097acd
0123: Content-Disposition: form-data; name="message"
0153:
0155: test3
015c: --------------------------987e74bc0c097acd
0188: Content-Disposition: form-data; name="device"
01b7:
01b9: mydevice
01c3: --------------------------987e74bc0c097acd--
=> Send SSL data, 5 bytes (0x5)

This requests works, only one device. Looks like a problem with the POST request.

dnehring7 avatar Jun 27 '22 14:06 dnehring7

Which version of the adapter you used? Can you try 2.1.0 or is it this version?

Apollon77 avatar Jun 27 '22 21:06 Apollon77

root@iob:/opt/iobroker# node -v
v14.19.3
root@iob:/opt/iobroker# npm list | grep pushover
├─┬ [email protected]
│ └── [email protected]

dnehring7 avatar Jun 28 '22 06:06 dnehring7

In factthe request is build exactly as you wrote ... strange

Apollon77 avatar Jun 28 '22 07:06 Apollon77

bin kein Profi aber hinter dem 'mydevice' steht ein Komma? Gehört das dahin? Kann das, das Problem sein`?

Ich nutze die Funktion seit Ewigkeiten und bei mir kommen die Nachrichten bei dem Gerät an wo ich es will und erwarte. Je nach Script bei mir, bei meiner Ehefrau oder eben bei beiden.

Baenker avatar Jul 08 '22 07:07 Baenker

bin kein Profi aber hinter dem 'mydevice' steht ein Komma? Gehört das dahin? Kann das, das Problem sein`?

Ist kein Problem.

GermanBluefox avatar Jul 13 '22 08:07 GermanBluefox

@dnehring7 Please recheck with 3.x

Apollon77 avatar Jul 27 '22 07:07 Apollon77

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs within the next 7 days. Please check if the issue is still relevant in the most current version of the adapter and tell us. Also check that all relevant details, logs and reproduction steps are included and update them if needed. Thank you for your contributions. Dieses Problem wurde automatisch als veraltet markiert, da es in letzter Zeit keine Aktivitäten gab. Es wird geschlossen, wenn nicht innerhalb der nächsten 7 Tage weitere Aktivitäten stattfinden. Bitte überprüft, ob das Problem auch in der aktuellsten Version des Adapters noch relevant ist, und teilt uns dies mit. Überprüft auch, ob alle relevanten Details, Logs und Reproduktionsschritte enthalten sind bzw. aktualisiert diese. Vielen Dank für Eure Unterstützung.

stale[bot] avatar May 09 '23 01:05 stale[bot]