-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Dutchman
committed
Feb 3, 2019
0 parents
commit bb938b1
Showing
27 changed files
with
7,012 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
{ | ||
"env": { | ||
"es6": true, | ||
"node": true, | ||
"mocha": true | ||
}, | ||
"extends": "eslint:recommended", | ||
"rules": { | ||
"indent": [ | ||
"error", | ||
"tab", | ||
{ | ||
"SwitchCase": 1 | ||
} | ||
], | ||
"no-console": "off", | ||
"no-var": "error", | ||
"prefer-const": "error", | ||
"quotes": [ | ||
"error", | ||
"double", | ||
{ | ||
"avoidEscape": true, | ||
"allowTemplateLiterals": true | ||
} | ||
], | ||
"semi": [ | ||
"error", | ||
"always" | ||
] | ||
}, | ||
"parserOptions": { | ||
"ecmaVersion": 2018 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
.git | ||
.idea | ||
node_modules | ||
nbproject | ||
|
||
# npm package files | ||
iobroker.*.tgz | ||
|
||
Thumbs.db | ||
|
||
# i18n intermediate files | ||
admin/i18n/flat.txt | ||
admin/i18n/*/flat.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
.git | ||
.idea | ||
node_modules/ | ||
nbproject/ | ||
.vs*/ | ||
Thumbs.db | ||
gulpfile.js | ||
|
||
test/ | ||
travis/ | ||
.travis.yml | ||
appveyor.yml | ||
.travis.yaml | ||
appveyor.yaml | ||
|
||
.eslintrc.json | ||
|
||
# npm package files | ||
iobroker.*.tgz | ||
package-lock.json | ||
|
||
# i18n intermediate files | ||
admin/i18n | ||
|
||
# maintenance scripts | ||
maintenance/** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
os: | ||
- linux | ||
- osx | ||
- windows | ||
|
||
language: node_js | ||
node_js: | ||
- '6' | ||
- '8' | ||
- '10' | ||
|
||
env: | ||
- CXX=g++-4.8 | ||
addons: | ||
apt: | ||
sources: | ||
- ubuntu-toolchain-r-test | ||
packages: | ||
- g++-4.9 | ||
|
||
before_install: | ||
- 'if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then CC=gcc-4.9; fi' | ||
- 'if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then CC=g++-4.9; fi' | ||
before_script: | ||
- export NPMVERSION=$(echo "$($(which npm) -v)"|cut -c1) | ||
- 'if [[ $NPMVERSION == 5 ]]; then npm install -g npm; fi' | ||
- npm -v | ||
- npm install [email protected] | ||
- 'npm install https://github.com/ioBroker/ioBroker.js-controller/tarball/master --production' | ||
script: | ||
- npm run test:package | ||
- npm run test:iobroker |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
MIT License | ||
|
||
Copyright (c) 2019 Dutchman & Andiling | ||
|
||
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
<h1> | ||
<img src="admin/multicast.png" width="64"/> | ||
ioBroker.multicast | ||
</h1> | ||
|
||
[![NPM version](http://img.shields.io/npm/v/iobroker.multicast.svg)](https://www.npmjs.com/package/iobroker.multicast) | ||
[![Downloads](https://img.shields.io/npm/dm/iobroker.multicast.svg)](https://www.npmjs.com/package/iobroker.multicast) | ||
[![Dependency Status](https://img.shields.io/david/iobroker-community-adapters/iobroker.multicast.svg)](https://david-dm.org/iobroker-community-adapters/iobroker.multicast) | ||
[![Known Vulnerabilities](https://snyk.io/test/github/iobroker-community-adapters/ioBroker.multicast/badge.svg)](https://snyk.io/test/github/iobroker-community-adapters/ioBroker.multicast) | ||
|
||
[![NPM](https://nodei.co/npm/iobroker.multicast.png?downloads=true)](https://nodei.co/npm/iobroker.multicast/) | ||
|
||
**Tests:** Linux/Mac: [![Travis-CI](http://img.shields.io/travis/iobroker-community-adapters/ioBroker.multicast/master.svg)](https://travis-ci.org/iobroker-community-adapters/ioBroker.multicast) | ||
Windows: [![AppVeyor](https://ci.appveyor.com/api/projects/status/github/iobroker-community-adapters/ioBroker.multicast?branch=master&svg=true)](https://ci.appveyor.com/project/iobroker-community-adapters/ioBroker-multicast/) | ||
|
||
## multicast adapter for ioBroker | ||
|
||
Receive and sent multicast information | ||
|
||
## Changelog | ||
|
||
### 0.0.1 | ||
* (Dutchman & Andiling) initial release | ||
|
||
## License | ||
MIT License | ||
|
||
Copyright (c) 2019 Dutchman & Andiling | ||
|
||
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
declare let systemDictionary: Record<string, Record<string, string>>; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
<html> | ||
|
||
<head> | ||
|
||
<!-- Load ioBroker scripts and styles--> | ||
<link rel="stylesheet" type="text/css" href="../../css/adapter.css" /> | ||
<link rel="stylesheet" type="text/css" href="../../lib/css/materialize.css"> | ||
|
||
<script type="text/javascript" src="../../lib/js/jquery-3.2.1.min.js"></script> | ||
<script type="text/javascript" src="../../socket.io/socket.io.js"></script> | ||
|
||
<script type="text/javascript" src="../../js/translate.js"></script> | ||
<script type="text/javascript" src="../../lib/js/materialize.js"></script> | ||
<script type="text/javascript" src="../../js/adapter-settings.js"></script> | ||
|
||
<!-- Load our own files --> | ||
<link rel="stylesheet" type="text/css" href="style.css" /> | ||
<script type="text/javascript" src="words.js"></script> | ||
|
||
<script type="text/javascript"> | ||
// This will be called by the admin adapter when the settings page loads | ||
function load(settings, onChange) { | ||
// example: select elements with id=key and class=value and insert value | ||
if (!settings) return; | ||
$('.value').each(function () { | ||
var $key = $(this); | ||
var id = $key.attr('id'); | ||
if ($key.attr('type') === 'checkbox') { | ||
// do not call onChange direct, because onChange could expect some arguments | ||
$key.prop('checked', settings[id]) | ||
.on('change', () => onChange()) | ||
; | ||
} else { | ||
// do not call onChange direct, because onChange could expect some arguments | ||
$key.val(settings[id]) | ||
.on('change', () => onChange()) | ||
.on('keyup', () => onChange()) | ||
; | ||
} | ||
}); | ||
onChange(false); | ||
// reinitialize all the Materialize labels on the page if you are dynamically adding inputs: | ||
if (M) M.updateTextFields(); | ||
} | ||
|
||
// This will be called by the admin adapter when the user presses the save button | ||
function save(callback) { | ||
// example: select elements with class=value and build settings object | ||
var obj = {}; | ||
$('.value').each(function () { | ||
var $this = $(this); | ||
if ($this.attr('type') === 'checkbox') { | ||
obj[$this.attr('id')] = $this.prop('checked'); | ||
} else { | ||
obj[$this.attr('id')] = $this.val(); | ||
} | ||
}); | ||
callback(obj); | ||
} | ||
</script> | ||
|
||
</head> | ||
|
||
<body> | ||
|
||
<div class="m adapter-container"> | ||
|
||
<!-- Put your content here --> | ||
<h1 class="translate">multicast adapter settings</h1> | ||
|
||
<!-- For example two columns with settings: --> | ||
<div class="row"> | ||
<div class="col s6 input-field"> | ||
<input type="checkbox" class="value" id="option1" /> | ||
<label for="option1" class="translate">option 1 description</label> | ||
</div> | ||
<div class="col s6 input-field"> | ||
<input type="text" class="value" id="option2" /> | ||
<label for="option2" class="translate">option 2 description</label> | ||
</div> | ||
</div> | ||
|
||
</div> | ||
|
||
</body> | ||
|
||
</html> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
/* You can delete those if you want. I just found them very helpful */ | ||
* { | ||
box-sizing: border-box | ||
} | ||
.m { | ||
/* Don't cut off dropdowns! */ | ||
overflow: initial; | ||
} | ||
|
||
/* Add your styles here */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"extends": "../tsconfig.json", | ||
"include": [ | ||
"./**/*.d.ts", | ||
"./**/*.js" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
/*global systemDictionary:true */ | ||
"use strict"; | ||
|
||
systemDictionary = { | ||
|
||
"multicast adapter settings": { | ||
"en": "Adapter settings for multicast", | ||
"de": "Adaptereinstellungen für multicast", | ||
"ru": "Настройки адаптера для multicast", | ||
"pt": "Configurações do adaptador para multicast", | ||
"nl": "Adapterinstellingen voor multicast", | ||
"fr": "Paramètres d'adaptateur pour multicast", | ||
"it": "Impostazioni dell'adattatore per multicast", | ||
"es": "Ajustes del adaptador para multicast", | ||
"pl": "Ustawienia adaptera dla multicast", | ||
"zh-cn": "multicast的适配器设置" | ||
}, | ||
"option 1 description": { | ||
"en": "Option 1 is cool", | ||
"de": "Option 1 ist cool", | ||
"ru": "Вариант 1 - это круто", | ||
"pt": "Opção 1 é legal", | ||
"nl": "Optie 1 is cool", | ||
"fr": "L'option 1 est cool", | ||
"it": "L'opzione 1 è cool", | ||
"es": "La opción 1 es genial", | ||
"pl": "Opcja 1 jest fajna", | ||
"zh-cn": "选项1很酷" | ||
}, | ||
"option 2 description": { | ||
"en": "Option 2 is not", | ||
"de": "Option 2 nicht", | ||
"ru": "Вариант 2 не", | ||
"pt": "A opção 2 não é", | ||
"nl": "Optie 2 is dat niet", | ||
"fr": "L'option 2 n'est pas", | ||
"it": "L'opzione 2 no", | ||
"es": "La opción 2 no es", | ||
"pl": "Opcja 2 nie jest", | ||
"zh-cn": "选项2不是" | ||
} | ||
|
||
}; |
Oops, something went wrong.