zhongjin 6 years ago
parent 5a308ad8ba
commit 09756d7309

@ -12,7 +12,7 @@ before_script:
- 'if [[ $NPMVERSION == 5 ]]; then npm install -g npm@5; fi' - 'if [[ $NPMVERSION == 5 ]]; then npm install -g npm@5; fi'
- npm -v - npm -v
- npm install winston@2.3.1 - npm install winston@2.3.1
- 'npm install https://github.com/ioBroker/ioBroker.js-controller/tarball/master --production' - 'npm install https://github.com/yunkong2/yunkong2.js-controller/tarball/master --production'
env: env:
- CXX=g++-4.8 - CXX=g++-4.8
addons: addons:

@ -1,14 +1,14 @@
![Logo](admin/pushover.png) ![Logo](admin/pushover.png)
# ioBroker pushover Adapter # yunkong2 pushover Adapter
============== ==============
[![NPM version](http://img.shields.io/npm/v/iobroker.pushover.svg)](https://www.npmjs.com/package/iobroker.pushover) [![NPM version](http://img.shields.io/npm/v/yunkong2.pushover.svg)](https://www.npmjs.com/package/yunkong2.pushover)
[![Downloads](https://img.shields.io/npm/dm/iobroker.pushover.svg)](https://www.npmjs.com/package/iobroker.pushover) [![Downloads](https://img.shields.io/npm/dm/yunkong2.pushover.svg)](https://www.npmjs.com/package/yunkong2.pushover)
[![NPM](https://nodei.co/npm/iobroker.pushover.png?downloads=true)](https://nodei.co/npm/iobroker.pushover/) [![NPM](https://nodei.co/npm/yunkong2.pushover.png?downloads=true)](https://nodei.co/npm/yunkong2.pushover/)
Send pushover notifications from ioBroker. Send pushover notifications from yunkong2.
## Configuration ## Configuration
First of all it is required an account on pushover. First of all it is required an account on pushover.

@ -52,7 +52,7 @@ Blockly.Words['pushover_log_error'] = {'en': 'error',
Blockly.Words['pushover_anyInstance'] = {'en': 'all instances', 'de': 'Alle Instanzen', 'ru': 'На все драйвера'}; Blockly.Words['pushover_anyInstance'] = {'en': 'all instances', 'de': 'Alle Instanzen', 'ru': 'На все драйвера'};
Blockly.Words['pushover_tooltip'] = {'en': 'Send message to pushover', 'de': 'Sende eine Meldung über Telegram', 'ru': 'Послать сообщение через Pushover'}; Blockly.Words['pushover_tooltip'] = {'en': 'Send message to pushover', 'de': 'Sende eine Meldung über Telegram', 'ru': 'Послать сообщение через Pushover'};
Blockly.Words['pushover_help'] = {'en': 'https://github.com/ioBroker/ioBroker.pushover/blob/master/README.md', 'de': 'https://github.com/ioBroker/ioBroker.pushover/blob/master/README.md', 'ru': 'https://github.com/ioBroker/ioBroker.pushover/blob/master/README.md'}; Blockly.Words['pushover_help'] = {'en': 'https://github.com/yunkong2/yunkong2.pushover/blob/master/README.md', 'de': 'https://github.com/yunkong2/yunkong2.pushover/blob/master/README.md', 'ru': 'https://github.com/yunkong2/yunkong2.pushover/blob/master/README.md'};
Blockly.Sendto.blocks['pushover'] = Blockly.Sendto.blocks['pushover'] =
'<block type="pushover">' '<block type="pushover">'

@ -16,7 +16,7 @@ install:
- ps: npm --version - ps: npm --version
- npm install - npm install
- npm install winston@2.3.1 - npm install winston@2.3.1
- 'npm install https://github.com/ioBroker/ioBroker.js-controller/tarball/master --production' - 'npm install https://github.com/yunkong2/yunkong2.js-controller/tarball/master --production'
test_script: test_script:
- echo %cd% - echo %cd%
- node --version - node --version

@ -42,15 +42,15 @@
}, },
"title": "Pushover", "title": "Pushover",
"desc": { "desc": {
"en": "This adapter allows to send pushover notifications from ioBroker", "en": "This adapter allows to send pushover notifications from yunkong2",
"de": "Dieser Adapter ermöglicht das Senden von Pushover-Benachrichtigungen von ioBroker", "de": "Dieser Adapter ermöglicht das Senden von Pushover-Benachrichtigungen von yunkong2",
"ru": "Этот адаптер позволяет отправлять pushover-уведомления от ioBroker", "ru": "Этот адаптер позволяет отправлять pushover-уведомления от yunkong2",
"pt": "Este adaptador permite enviar notificações pushover do ioBroker", "pt": "Este adaptador permite enviar notificações pushover do yunkong2",
"nl": "Met deze adapter kunt u pushover-meldingen van ioBroker verzenden", "nl": "Met deze adapter kunt u pushover-meldingen van yunkong2 verzenden",
"fr": "Cet adaptateur permet d'envoyer des notifications de transfert depuis ioBroker", "fr": "Cet adaptateur permet d'envoyer des notifications de transfert depuis yunkong2",
"it": "Questo adattatore consente di inviare notifiche pushover da ioBroker", "it": "Questo adattatore consente di inviare notifiche pushover da yunkong2",
"es": "Este adaptador permite enviar notificaciones fáciles de ioBroker", "es": "Este adaptador permite enviar notificaciones fáciles de yunkong2",
"pl": "Ten adapter umożliwia wysyłanie powiadomień push z programu ioBroker" "pl": "Ten adapter umożliwia wysyłanie powiadomień push z programu yunkong2"
}, },
"authors": [ "authors": [
"bluefox <dogafox@gmail.com>" "bluefox <dogafox@gmail.com>"
@ -66,7 +66,7 @@
"messagebox": true, "messagebox": true,
"materialize": true, "materialize": true,
"subscribe": "messagebox", "subscribe": "messagebox",
"readme": "https://github.com/ioBroker/ioBroker.pushover/blob/master/README.md", "readme": "https://github.com/yunkong2/yunkong2.pushover/blob/master/README.md",
"wakeup": true, "wakeup": true,
"enabled": true, "enabled": true,
"icon": "pushover.png", "icon": "pushover.png",
@ -75,14 +75,14 @@
"pushover", "pushover",
"message" "message"
], ],
"extIcon": "https://raw.githubusercontent.com/ioBroker/ioBroker.pushover/master/admin/pushover.png", "extIcon": "https://git.spacen.net/yunkong2/yunkong2.pushover/raw/master/admin/pushover.png",
"type": "messaging", "type": "messaging",
"blockly": true "blockly": true
}, },
"native": { "native": {
"user": "xxxxx", "user": "xxxxx",
"token": "xxxxx", "token": "xxxxx",
"title": "ioBroker", "title": "yunkong2",
"sound": "", "sound": "",
"priority": 0 "priority": 0
}, },

@ -27,8 +27,8 @@ let appName;
function getControllerDir(isInstall) { function getControllerDir(isInstall) {
// Find the js-controller location // Find the js-controller location
const possibilities = [ const possibilities = [
'iobroker.js-controller', 'yunkong2.js-controller',
'ioBroker.js-controller', 'yunkong2.js-controller',
]; ];
/** @type {string} */ /** @type {string} */
let controllerPath; let controllerPath;

@ -1,6 +1,6 @@
/** /**
* *
* ioBroker pushover Adapter * yunkong2 pushover Adapter
* *
* (c) 2014-2018 bluefox * (c) 2014-2018 bluefox
* *

@ -1,21 +1,21 @@
{ {
"name": "iobroker.pushover", "name": "yunkong2.pushover",
"description": "This adapter allows to send pushover notifications from ioBroker", "description": "This adapter allows to send pushover notifications from yunkong2",
"version": "1.1.0", "version": "1.1.0",
"author": "bluefox <dogafox@gmail.com>", "author": "bluefox <dogafox@gmail.com>",
"contributors": [ "contributors": [
"bluefox <dogafox@gmail.com>" "bluefox <dogafox@gmail.com>"
], ],
"homepage": "https://github.com/ioBroker/ioBroker.pushover", "homepage": "https://github.com/yunkong2/yunkong2.pushover",
"license": "MIT", "license": "MIT",
"keywords": [ "keywords": [
"ioBroker", "yunkong2",
"pushover", "pushover",
"home automation" "home automation"
], ],
"repository": { "repository": {
"type": "git", "type": "git",
"url": "https://github.com/ioBroker/ioBroker.pushover" "url": "https://github.com/yunkong2/yunkong2.pushover"
}, },
"dependencies": { "dependencies": {
"pushover-notifications": "^1.0.0" "pushover-notifications": "^1.0.0"
@ -26,7 +26,7 @@
"chai": "^4.1.2" "chai": "^4.1.2"
}, },
"bugs": { "bugs": {
"url": "https://github.com/ioBroker/ioBroker.pushover/issues" "url": "https://github.com/yunkong2/yunkong2.pushover/issues"
}, },
"main": "main.js", "main": "main.js",
"scripts": { "scripts": {

@ -415,7 +415,7 @@ function clearControllerLog() {
} }
function clearDB() { function clearDB() {
var dirPath = rootDir + 'tmp/iobroker-data/sqlite'; var dirPath = rootDir + 'tmp/yunkong2-data/sqlite';
var files; var files;
try { try {
if (fs.existsSync(dirPath)) { if (fs.existsSync(dirPath)) {

@ -52,12 +52,12 @@ describe('Test package.json and io-package.json', function() {
console.log(); console.log();
} }
if ( if (
ioPackage.common.title.indexOf('iobroker') !== -1 || ioPackage.common.title.indexOf('yunkong2') !== -1 ||
ioPackage.common.title.indexOf('ioBroker') !== -1 || ioPackage.common.title.indexOf('yunkong2') !== -1 ||
ioPackage.common.title.indexOf('adapter') !== -1 || ioPackage.common.title.indexOf('adapter') !== -1 ||
ioPackage.common.title.indexOf('Adapter') !== -1 ioPackage.common.title.indexOf('Adapter') !== -1
) { ) {
console.log('WARNING: title contains Adapter or ioBroker. It is clear anyway, that it is adapter for ioBroker.'); console.log('WARNING: title contains Adapter or yunkong2. It is clear anyway, that it is adapter for yunkong2.');
console.log(); console.log();
} }

Loading…
Cancel
Save