Code Monkey home page Code Monkey logo

iobroker.pushsafer's Introduction

Logo

ioBroker pushsafer Adapter

Number of Installations Number of Installations NPM version Downloads

NPM

Send pushsafer notifications from ioBroker. Pushsafer.com supports iOS, Android, Windows 10 (Phone & Desktop) devices and Webpush (Chrome & Firefox)

Configuration

First of all it is required an account on pushsafer with a private key, instead of the private key, you also can use a alias key with predefined parameters. Pushsafer configuration

Usage

To send notification from ScriptEngine just write:

// send notification to all instances of pushsafer adapter
sendTo("pushsafer", "message body");

// send notification to specific instance of pushsafer adapter
sendTo("pushsafer.1", "message body");

// To specify subject or other options
sendTo("pushsafer", {
   message:   'Test text',             // mandatory - your text message
   title:     'SweetHome',             // optional  - your message's title, otherwise your app's name is used
   device:    '12',                    // optional  - a device id or device group id (empty or a = all devices)
   sound:     '2',                     // optional  - a number betwenn 0-60 (see pushsafers API description)
   icon:      '2',                     // optional  - a number betwenn 1-177 (see pushsafers API description)
   vibration: '0',                     // optional  - a number betwenn 0-3 (see pushsafers API description)
   priority:  '2',                     // optional  - 2, 1, 0, -1, -2 (see pushsafers API description)
   retry:     '600',                   // optional  - Integer 60-10800 (60s steps): Time in seconds, after a message shuld resend (see pushsafers API description)
   expire:    '1200',                  // optional  - Integer 60-10800: Time in seconds, after the retry/resend should stop. (see pushsafers API description)
   answer:    '1',                     // optional  - 1 = Answer is possible, 0 = Answer is not possible. (see pushsafers API description)
   picture:   'absolutePathToPicture', // optional  - absolute path to picture or base64 coded image URL
   picture2:  'absolutePathToPicture2',// optional  - absolute path to picture or base64 coded image URL
   picture3:  'absolutePathToPicture3',// optional  - absolute path to picture or base64 coded image URL   
   url:       'http://blabla',         // optional  - URL or URL scheme, https://www.pushsafer.com/en/url_schemes
   urlTitle:  'Link to BLA',           // optional  - title of URL
   time2live: '60',                    // optional  - Integer number 0-43200: Time in minutes, after which message automatically gets purged.
});

You can find API description here

You can use blockly too.

Changelog

1.1.0 (2024-04-21)

  • IMPORTANT: This adapter now requires Node.js 18.x+
  • (ChrMaass) Fix Blockly priority and answer

1.0.3 (2021-01-13)

  • (Apollon77) update dependencies

1.0.2 (2020-04-24)

  • (bluefox) Added color icon option
  • (bluefox) Refactoring

0.1.9 (2019-09-19)

  • (appzer) add new sounds & icons, add new parameter (priority, retry, expire, answer)

0.1.8 (2017-09-12)

  • (bluefox) use new pushsafer package

0.1.7 (2016-10-19)

  • (appzer) implement time2live parameter

0.1.6 (2016-10-17)

  • (bluefox) implement picture send
  • (bluefox) add blockly

0.1.3 (2016-09-21)

  • (bluefox) fix config dialog

0.1.2 (2016-09-21)

  • fixed error with private key

0.1.0 (2016-08-28)

  • filter out double messages

License

The MIT License (MIT)

Copyright (c) 2014-2024 bluefox [email protected]

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

iobroker.pushsafer's People

Contributors

apollon77 avatar appzer avatar chrmaass avatar dependabot[bot] avatar germanbluefox avatar mcm1957 avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

iobroker.pushsafer's Issues

Think about to fix the issues found by adapter checker

I am an automatic service that looks for possible errors in ioBroker and creates an issue for it. The link below leads directly to the test:

https://adapter-check.iobroker.in/?q=https://raw.githubusercontent.com/ioBroker/ioBroker.pushsafer

  • [E104] No common.titleLang found in io-package.json
  • [E109] desc in io-package.json should be an object for many languages. Found only This adapter allows to send pushsafer notifications from ioBroker
  • [E150] No common.connectionType found in io-package.json
  • [E152] No common.dataSource found in io-package.json
  • [E605] No actual year found in copyright. Please add "Copyright (c) 2014-2022 bluefox [email protected]" at the end of README.md
  • [E701] No actual year found in LICENSE. Please add "Copyright (c) 2014-2022 bluefox [email protected]" at the start of LICENSE

I have also found warnings that may be fixed if possible.

  • [W505] setTimeout found in "main.js", but no clearTimeout detected

Thanks,
your automatic adapter checker.

Please add your adapter to ioBroker.discovery

I am an automatic service from ioBroker that searches adapters and makes suggestions.

I noticed that your adapter is not integrated in the ioBroker.discovery. Using the Discovery adapter, ioBroker can automatically find devices or suggest services to the user for installation. If possible I would live to see your adapter added there.

Some adapters have already been added and you can use them as blueprints. See: https://github.com/ioBroker/ioBroker.discovery You need to fork this project and then create a PR for your adapter to be added.

Basically the plugins can do HTTP calls, UDP discovery, MDNS, UPNP and will iterate over all devices found by IP scan and check local serial ports. If you want you can also add new discovery methods but please try to do that with at least dependencies as possible.

Then create one file under lib/adapters for your adapter to implement the detection and proposal of an instance to the user.

On questions, the other developers will support in the forum or via GitHub issues too.

If no detection is possible, simply close this issue and I won't bother you again. ;-)

Thanks,
your automatic adapter checker.

Release script: Action required

Hi, it looks like you are using @alcalzone/release-script to manage your releases.
When updating to the latest version, you need to remove the following line from your .github/workflows/test-and-release.yml if you want the releases to keep working:

  deploy:
    # Trigger this step only when a commit on master is tagged with a version number
    if: |
      contains(github.event.head_commit.message, '[skip ci]') == false &&
      github.event_name == 'push' &&
-     github.event.base_ref == 'refs/heads/master' &&
      startsWith(github.ref, 'refs/tags/v')

It may also look like this one:

  deploy:
    # Trigger this step only when a commit on master is tagged with a version number
    if: |
      contains(github.event.head_commit.message, '[skip ci]') == false &&
      github.event_name == 'push' &&
-     github.event.base_ref == 'refs/heads/main' &&
      startsWith(github.ref, 'refs/tags/v')

Update stable version in repo from 1.0.3 to 1.1.0

Think about update stable version to 1.1.0

Version: stable=1.0.3 (1209 days old) => latest=1.1.0 (15 days old)
Installs: stable=516 (87.16%), latest=34 (5.74%), total=592

Click to use developer portal
Click to edit

Do not close this issue manually as a new issue will be created if condition for update still exists.

Please drop a comment if any reason exists which blocks updating to version 1.1.0 at this time.

Note: This is an automatically generated message and not personally authored by bluefox!
@mcm1957 for evidence

Pushsafer

Hallo,

über den Adapter Manager funktioniert die Installation noch nicht, nur über GIT da funktioniert alles tadellos (Installation und auch das Versenden).

Ich sieht so aus, als wäre im Manager nur die Version 0.1.0 und nicht die 0.1.3 installierbar.

pushsafer Adapter This adapter allows to send pushsafer notifications from ioBroker notification pushsafer message
0.1.0
0.1.3 [1/1]

Grüße Kevin

Please fix issues reported by adapter checker

❗ [E106] "common.titleLang" should not contain word "adapter" in the name. It is clear, that this is adapter. Now: {"en":"pushsafer Adapter","de":"pushsafer-Adapter","ru":"адаптер pushsafer","pt":"Adaptador pushsafer","nl":"pushsafer-adapter","fr":"Adaptateur pushsafer","it":"Adattatore pushsafe","es":"Adaptador pushsafer","pl":"Adapter pushsafer","uk":"адаптер pushsafer","zh-cn":"推安全适配器"}
❗ [E106] "common.titleLang" should not contain word "adapter" in the name. It is clear, that this is adapter. Now: {"en":"pushsafer Adapter","de":"pushsafer-Adapter","ru":"адаптер pushsafer","pt":"Adaptador pushsafer","nl":"pushsafer-adapter","fr":"Adaptateur pushsafer","it":"Adattatore pushsafe","es":"Adaptador pushsafer","pl":"Adapter pushsafer","uk":"адаптер pushsafer","zh-cn":"推安全适配器"}
❗ [E117] Licenses in package.json and in io-package.json are different
❗ [E150] No "common.connectionType" found in io-package.json
❗ [E152] No "common.dataSource" found in io-package.json
❗ [E182] Please remove "common.license" from io-package.json as "common.licenseInformation" is declared.
❗ [E183] "common.licenseInformation.license" is missing
❗ [E184] "common.subscribe" will be removed with js-controller >= 6. Please remove from io-package.json and adapt code if required.
👀 [W156] Adapter should support admin 5 UI (jsonConfig) if you do not use a React based UI
👀 [W173] Potential sensitive data "token" not listed at "protectedNative" in io-package.json
👀 [W174] Potential sensitive data "token" not listed at "encryptedNative" in io-package.json
👀 [W181] "common.license" in io-package.json is deprecated. Please define object "common.licenseInformation"
👀 [W184] "common.materialize" is deprecated for admin >= 5 at io-package.json. Please use property "adminUI".
👀 [W184] "common.title" is deprecated and replaced by "common.titleLang". Please remove from io-package.json.
👀 [W505] setTimeout found in "main.js", but no clearTimeout detected

Fehlermeldung bei der Inbetriebnahme des Adapters

Fehlermeldung bei der Inbetriebnahme des Adapters

  • Adapter installiert
  • privater Schlüssel im Adapter eingetragen und gespeichert
  • Test im Adapter ausgeführt
  • Fehlermeldung erhalten

Fehlermeldung nach der Betätigung d. Testbuttons

  • Meldung im Adapter
    image
  • IoB Log
    image

Version:

  • Adapter version: 1.0.3
  • JS-Controller version: 12.22.1
  • Node version: 12.22.1
  • Operating system: IoB

Gibt es für diesen Fehler einen Lösungsansatz?

pushsafer Adapter

Hallo,

Einstellungen vom Pushsafer Adapter können nicht gespeichert werden.
Ich habe keine Ahnung warum. Hatte mich beim erstellen des Adapters an dem von Pushover angelehnt.

Grüße Kevin

Update pushsafer

Hello,

can you update the pushsafer module!

New sounds 0-60
New icons 1-177

New Parameter

pr = Priority
-2 = lowest priority
-1 = lower priority
0 = normal priority
1 = high priority
2 = highest priority

re = Retry / resend
Integer 60-10800 (60s steps): Time in seconds, after a message shuld resend.

ex = Expire
Integer 60-10800: Time in seconds, after the retry/resend should stop.

a = Answer
1 = Answer is possible
0 = Answer is not possible.

Take a look at their API description:
https://www.pushsafer.com/en/pushapi

Please check ioBroker.pushsafer with js-controller 2.0

Hi,

the new js-controller 2.0 will come into latest repository in the next days and we want to make sure that all adapters are working well. We already did a 2 weeks Beta test and so some adapter were aleady checked and some needed slight adjustments.

You can find more information in ioBroker/ioBroker.js-controller#482 and in the ioBroker Forum. If you have more technical questions please write in the referenced issue or in the Developer thread please. General questions are best in the genral thread.

Please update your systems to js-controller 2.0 and check your adapter.

Please close this issue once you have checked your adapter or received successfull reports from users.

Thank you very much for your support. Please contact us in the other Threads or Forum on any question.

Fehler im Log

Hallo,

ich bekomme hin und wieder diese Fehlermeldungen im Log wenn eine Nachricht über JavaScript gesendet werden soll. Die Nachricht kommt auch an.

host.ioBroker-PI3 2017-08-30 22:31:14.706 error instance system.adapter.pushsafer.0 terminated with code 0 (OK)
pushsafer.0 2017-08-30 22:31:14.120 error at process._tickCallback (internal/process/next_tick.js:104:9)
pushsafer.0 2017-08-30 22:31:14.120 error at _combinedTickCallback (internal/process/next_tick.js:80:11)
pushsafer.0 2017-08-30 22:31:14.120 error at endReadableNT (_stream_readable.js:974:12)
pushsafer.0 2017-08-30 22:31:14.120 error at IncomingMessage.emit (events.js:185:7)
pushsafer.0 2017-08-30 22:31:14.120 error at emitNone (events.js:91:20)
pushsafer.0 2017-08-30 22:31:14.120 error at IncomingMessage. (/opt/iobroker/node_modules/iobroker.pushsafer/node_modules/pushsafer-notifications/lib/pushsafer.js:72:11)
pushsafer.0 2017-08-30 22:31:14.120 error at Pushsafer.errors (/opt/iobroker/node_modules/iobroker.pushsafer/node_modules/pushsafer-notifications/lib/pushsafer.js:25:11)
pushsafer.0 2017-08-30 22:31:14.120 error at Object.parse (native)
pushsafer.0 2017-08-30 22:31:14.120 error SyntaxError: Unexpected end of JSON input
pushsafer.0 2017-08-30 22:31:14.108 error uncaught exception: Unexpected end of JSON input

Brauchst du mehr Infos? Node Version oder ähnliches?

Danke und Gruß AlGu

Adapter Einstellung Time to Live

Describe the bug

Mir ist aufgefallen das Nachrichten gelöscht werden bevor der Zeit Intervall abgelaufen ist. Zum Beispiel vor 43200.
Ich habe mich dann an den Entwickler Kevin von Pushsafer gewendet der mir erklärt hat das man in der CSV Datei in der App sieht was für Daten übergeben worden sind dort fehlt aber die Id für Time to Live.
Könnte man das malprüfen ob dies korrekt ist?

Hier die Id die übergeben werden:
"title",
"message",
"icon",
"iconcolor",
"sound",
"vibration",
"url","url_title",
"priority",
"retries",
"answer",
"location_lat",
"location_lon",
"location_time",
"date_sent",
"status_sent"

Grüße
Fabio

Compatibility check and testing for Node.js 14 and 16

Dear Adapter develop,

Node.js 14 is now available for a year and Node.js 16 was release just some days ago and will become LTS by October 2021. We plan to update the ioBroker Node.js recommendation (currently 12.x) to 14.x later this year.

Please check your adapter with Node.js 14 especially, and ideally also directly with Node.js 16

Please add both versions to the adapter testing which is executed on commits.

If your adapter requires a certain minimum version of Node.js please set the 'engine' setting in package.json accordingly! Please also do this if the adapter is not able to work in certain Node.js versions, so that ioBroker can prevent users from installing te adapter if not compatible!

On questions please talk to us at ioBroker/ioBroker.js-controller#1138

Please close the issue after you checked it.

Thank you very much for your support!

Compatibility check to js-controller 4.0

Dear Adapter developer,

with js-controller 4.0 object definitions are now also checked that min/max in only provided for number/mixed objects and that the type of the default value matches to the object type.

If something is not correct this is logged as 'warning' or 'info' log.

Please also make sure to update to the lastest @iobroker/testing dependency 2.5.4 or to accept the PR from Apollon77 for legacy testing!

Please spent some time to verify your adapter by ideally starting with a fresh instance and do some actions and verify the log. If you see a warn or info log there from these checks please adjust the adapter and fix the relevant cases.

For questions please refer to ioBroker/ioBroker.js-controller#1749

Please close the issue after you checked it.

Thank you very much for your support to get the best experience for the growing numbers of ioBroker users!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.