iobroker.wifilight
Advanced tools
Comparing version 1.1.0 to 1.1.1
154
gulpfile.js
@@ -28,4 +28,4 @@ /*! | ||
function lang2data(lang, isFlat) { | ||
let str = isFlat ? '' : '{\n'; | ||
function lang2data(lang) { | ||
let str ='{\n'; | ||
let count = 0; | ||
@@ -35,14 +35,8 @@ for (const w in lang) { | ||
count++; | ||
if (isFlat) { | ||
str += (lang[w] === '' ? (isFlat[w] || w) : lang[w]) + '\n'; | ||
} else { | ||
const key = ' "' + w.replace(/"/g, '\\"') + '": '; | ||
str += key + '"' + lang[w].replace(/"/g, '\\"') + '",\n'; | ||
} | ||
const key = ' "' + w.replace(/"/g, '\\"') + '": '; | ||
str += key + '"' + lang[w].replace(/"/g, '\\"') + '",\n'; | ||
} | ||
} | ||
if (!count) | ||
return isFlat ? '' : '{\n}'; | ||
if (isFlat) { | ||
return str; | ||
if (!count) { | ||
return '{\n}'; | ||
} else { | ||
@@ -147,124 +141,2 @@ return str.substring(0, str.length - 2) + '\n}'; | ||
function words2languagesFlat(src) { | ||
const langs = Object.assign({}, languages); | ||
const data = readWordJs(src); | ||
if (data) { | ||
for (const word in data) { | ||
if (data.hasOwnProperty(word)) { | ||
for (const lang in data[word]) { | ||
if (data[word].hasOwnProperty(lang)) { | ||
langs[lang][word] = data[word][lang]; | ||
// pre-fill all other languages | ||
for (const j in langs) { | ||
if (langs.hasOwnProperty(j)) { | ||
langs[j][word] = langs[j][word] || EMPTY; | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
const keys = Object.keys(langs.en); | ||
keys.sort(); | ||
for (const l in langs) { | ||
if (!langs.hasOwnProperty(l)) | ||
continue; | ||
const obj = {}; | ||
for (let k = 0; k < keys.length; k++) { | ||
obj[keys[k]] = langs[l][keys[k]]; | ||
} | ||
langs[l] = obj; | ||
} | ||
if (!fs.existsSync(src + 'i18n/')) { | ||
fs.mkdirSync(src + 'i18n/'); | ||
} | ||
for (const ll in langs) { | ||
if (!langs.hasOwnProperty(ll)) | ||
continue; | ||
if (!fs.existsSync(src + 'i18n/' + ll)) { | ||
fs.mkdirSync(src + 'i18n/' + ll); | ||
} | ||
fs.writeFileSync(src + 'i18n/' + ll + '/flat.txt', lang2data(langs[ll], langs.en)); | ||
} | ||
fs.writeFileSync(src + 'i18n/flat.txt', keys.join('\n')); | ||
} else { | ||
console.error('Cannot read or parse ' + fileName); | ||
} | ||
} | ||
function languagesFlat2words(src) { | ||
const dirs = fs.readdirSync(src + 'i18n/'); | ||
const langs = {}; | ||
const bigOne = {}; | ||
const order = Object.keys(languages); | ||
dirs.sort(function (a, b) { | ||
const posA = order.indexOf(a); | ||
const posB = order.indexOf(b); | ||
if (posA === -1 && posB === -1) { | ||
if (a > b) | ||
return 1; | ||
if (a < b) | ||
return -1; | ||
return 0; | ||
} else if (posA === -1) { | ||
return -1; | ||
} else if (posB === -1) { | ||
return 1; | ||
} else { | ||
if (posA > posB) | ||
return 1; | ||
if (posA < posB) | ||
return -1; | ||
return 0; | ||
} | ||
}); | ||
const keys = fs.readFileSync(src + 'i18n/flat.txt').toString().split('\n'); | ||
for (const lang of dirs) { | ||
if (lang === 'flat.txt') | ||
continue; | ||
const values = fs.readFileSync(src + 'i18n/' + lang + '/flat.txt').toString().split('\n'); | ||
langs[lang] = {}; | ||
keys.forEach(function (word, i) { | ||
langs[lang][word] = values[i]; | ||
}); | ||
const words = langs[lang]; | ||
for (const word in words) { | ||
if (words.hasOwnProperty(word)) { | ||
bigOne[word] = bigOne[word] || {}; | ||
if (words[word] !== EMPTY) { | ||
bigOne[word][lang] = words[word]; | ||
} | ||
} | ||
} | ||
} | ||
// read actual words.js | ||
const aWords = readWordJs(); | ||
const temporaryIgnore = ['flat.txt']; | ||
if (aWords) { | ||
// Merge words together | ||
for (const w in aWords) { | ||
if (aWords.hasOwnProperty(w)) { | ||
if (!bigOne[w]) { | ||
console.warn('Take from actual words.js: ' + w); | ||
bigOne[w] = aWords[w]; | ||
} | ||
dirs.forEach(function (lang) { | ||
if (temporaryIgnore.indexOf(lang) !== -1) | ||
return; | ||
if (!bigOne[w][lang]) { | ||
console.warn('Missing "' + lang + '": ' + w); | ||
} | ||
}); | ||
} | ||
} | ||
} | ||
writeWordJs(bigOne, src); | ||
} | ||
function languages2words(src) { | ||
@@ -362,12 +234,2 @@ const dirs = fs.readdirSync(src + 'i18n/'); | ||
gulp.task('adminWords2languagesFlat', function (done) { | ||
words2languagesFlat('./admin/'); | ||
done(); | ||
}); | ||
gulp.task('adminLanguagesFlat2words', function (done) { | ||
languagesFlat2words('./admin/'); | ||
done(); | ||
}); | ||
gulp.task('adminLanguages2words', function (done) { | ||
@@ -413,4 +275,4 @@ languages2words('./admin/'); | ||
const date = timestamp.getFullYear() + '-' + | ||
('0' + (timestamp.getMonth() + 1).toString(10)).slice(-2) + '-' + | ||
('0' + (timestamp.getDate()).toString(10)).slice(-2); | ||
('0' + (timestamp.getMonth() + 1).toString(10)).slice(-2) + '-' + | ||
('0' + (timestamp.getDate()).toString(10)).slice(-2); | ||
@@ -417,0 +279,0 @@ let news = ''; |
{ | ||
"common": { | ||
"name": "wifilight", | ||
"version": "1.1.0", | ||
"news": { | ||
"1.1.0": { | ||
"en": "compatibility for js-controller 3", | ||
"de": "Kompatibilität für js-controller 3", | ||
"ru": "совместимость для js-controller 3", | ||
"pt": "compatibilidade para js-controller 3", | ||
"nl": "compatibiliteit voor js-controller 3", | ||
"fr": "compatibilité pour js-controller 3", | ||
"it": "compatibilità per js-controller 3", | ||
"es": "compatibilidad para js-controller 3", | ||
"pl": "kompatybilność z js-kontrolerem 3", | ||
"zh-cn": "js-controller 3的兼容性" | ||
}, | ||
"1.0.0": { | ||
"en": "first version for the community", | ||
"de": "erste Version für die Community", | ||
"ru": "первая версия для сообщества", | ||
"pt": "primeira versão para a comunidade", | ||
"nl": "eerste versie voor de gemeenschap", | ||
"fr": "première version pour la communauté", | ||
"it": "prima versione per la comunità", | ||
"es": "Primera versión para la comunidad.", | ||
"pl": "pierwsza wersja dla społeczności", | ||
"zh-cn": "社区的第一个版本" | ||
} | ||
}, | ||
"title": "WiFi Light", | ||
"titleLang": { | ||
"en": "WiFi Light", | ||
"de": "WiFi Light", | ||
"ru": "WiFi Light", | ||
"pt": "WiFi Light", | ||
"nl": "WiFi Light", | ||
"fr": "WiFi Light", | ||
"it": "WiFi Light", | ||
"es": "WiFi Light", | ||
"pl": "WiFi Light", | ||
"zh-cn": "WiFi Light" | ||
}, | ||
"desc": { | ||
"en": "WiFi Light Devices", | ||
"de": "WiFi-Licht-Geräte", | ||
"ru": "Световые Приборы Беспроводной Доступ В Интернет ", | ||
"pt": "Luz Wi-Fi De Dispositivos", | ||
"nl": "WiFi-Apparaten Licht", | ||
"fr": "WiFi Des Appareils Légers", | ||
"it": "WiFi Luce Di Dispositivi", | ||
"es": "WiFi De Los Dispositivos De Luz", | ||
"pl": "Oświetlenie Bezprzewodowy Dostęp Do Internetu ", | ||
"zh-cn": "无线光设备" | ||
}, | ||
"keywords": [ | ||
"ioBroker", | ||
"wifilight", | ||
"lw12", | ||
"ld382" | ||
], | ||
"license": "MIT", | ||
"platform": "Javascript/Node.js", | ||
"mode": "daemon", | ||
"icon": "wifilight.png", | ||
"extIcon": "https://raw.githubusercontent.com/iobroker-community-adapters/iobroker.wifilight/master/admin/wifilight.png", | ||
"readme": "https://github.com/iobroker-community-adapters/iobroker.wifilight/blob/master/README.md", | ||
"loglevel": "info", | ||
"type": "lighting", | ||
"messagebox": true, | ||
"enabled": true, | ||
"authors": [ | ||
{ | ||
"name": "soef", | ||
"email": "soef@gmx.net" | ||
} | ||
] | ||
"common": { | ||
"name": "wifilight", | ||
"version": "1.1.1", | ||
"news": { | ||
"1.1.1": { | ||
"en": "Prevent error logs with js-controller 3+\nAdded sentry for error reporting", | ||
"de": "Verhindern Sie Fehlerprotokolle mit js-controller 3+\nWachposten für Fehlerberichte hinzugefügt", | ||
"ru": "Предотвратите журналы ошибок с помощью js-controller 3+\nДобавлен часовой для отчетов об ошибках", | ||
"pt": "Evite logs de erros com js-controller 3+\nSentinela adicionada para relatório de erros", | ||
"nl": "Voorkom foutenlogboeken met js-controller 3+\nSchildwacht toegevoegd voor foutrapportage", | ||
"fr": "Empêcher les journaux d'erreurs avec js-controller 3+\nSentry ajouté pour le rapport d'erreur", | ||
"it": "Impedisci i log di errore con js-controller 3+\nAggiunta sentinella per la segnalazione degli errori", | ||
"es": "Evite registros de errores con js-controller 3+\nCentinela añadido para el informe de errores", | ||
"pl": "Zapobiegaj dziennikom błędów dzięki js-controller 3+\nDodano działko do raportowania błędów", | ||
"zh-cn": "使用 js-controller 3+ 防止错误日志\n添加了错误报告的哨兵" | ||
}, | ||
"1.1.0": { | ||
"en": "compatibility for js-controller 3", | ||
"de": "Kompatibilität für js-controller 3", | ||
"ru": "совместимость для js-controller 3", | ||
"pt": "compatibilidade para js-controller 3", | ||
"nl": "compatibiliteit voor js-controller 3", | ||
"fr": "compatibilité pour js-controller 3", | ||
"it": "compatibilità per js-controller 3", | ||
"es": "compatibilidad para js-controller 3", | ||
"pl": "kompatybilność z js-kontrolerem 3", | ||
"zh-cn": "js-controller 3的兼容性" | ||
}, | ||
"1.0.0": { | ||
"en": "first version for the community", | ||
"de": "erste Version für die Community", | ||
"ru": "первая версия для сообщества", | ||
"pt": "primeira versão para a comunidade", | ||
"nl": "eerste versie voor de gemeenschap", | ||
"fr": "première version pour la communauté", | ||
"it": "prima versione per la comunità", | ||
"es": "Primera versión para la comunidad.", | ||
"pl": "pierwsza wersja dla społeczności", | ||
"zh-cn": "社区的第一个版本" | ||
} | ||
}, | ||
"native": { | ||
"devices": [] | ||
"title": "WiFi Light", | ||
"titleLang": { | ||
"en": "WiFi Light", | ||
"de": "WiFi Light", | ||
"ru": "WiFi Light", | ||
"pt": "WiFi Light", | ||
"nl": "WiFi Light", | ||
"fr": "WiFi Light", | ||
"it": "WiFi Light", | ||
"es": "WiFi Light", | ||
"pl": "WiFi Light", | ||
"zh-cn": "WiFi Light" | ||
}, | ||
"instanceObjects": [], | ||
"objects": [] | ||
} | ||
"desc": { | ||
"en": "WiFi Light Devices", | ||
"de": "WiFi-Licht-Geräte", | ||
"ru": "Световые Приборы Беспроводной Доступ В Интернет ", | ||
"pt": "Luz Wi-Fi De Dispositivos", | ||
"nl": "WiFi-Apparaten Licht", | ||
"fr": "WiFi Des Appareils Légers", | ||
"it": "WiFi Luce Di Dispositivi", | ||
"es": "WiFi De Los Dispositivos De Luz", | ||
"pl": "Oświetlenie Bezprzewodowy Dostęp Do Internetu ", | ||
"zh-cn": "无线光设备" | ||
}, | ||
"keywords": [ | ||
"ioBroker", | ||
"wifilight", | ||
"lw12", | ||
"ld382" | ||
], | ||
"license": "MIT", | ||
"platform": "Javascript/Node.js", | ||
"mode": "daemon", | ||
"icon": "wifilight.png", | ||
"extIcon": "https://raw.githubusercontent.com/iobroker-community-adapters/iobroker.wifilight/master/admin/wifilight.png", | ||
"readme": "https://github.com/iobroker-community-adapters/iobroker.wifilight/blob/master/README.md", | ||
"loglevel": "info", | ||
"type": "lighting", | ||
"messagebox": true, | ||
"enabled": true, | ||
"authors": [ | ||
{ | ||
"name": "soef", | ||
"email": "soef@gmx.net" | ||
} | ||
], | ||
"dependencies": [ | ||
{ | ||
"js-controller": ">=3.3.0" | ||
} | ||
], | ||
"plugins": { | ||
"sentry": { | ||
"dsn": "https://65b8526e3ca442739e46753bfaf9a0a9@sentry.iobroker.net/190" | ||
} | ||
}, | ||
"dataSource": "push", | ||
"connectionType": "local", | ||
"tier": 2 | ||
}, | ||
"native": { | ||
"devices": [] | ||
}, | ||
"instanceObjects": [], | ||
"objects": [] | ||
} |
@@ -990,3 +990,3 @@ /** | ||
type: 'state', | ||
common: {name: 'version', role: "indicator.state", desc: 'version check for updates'}, | ||
common: {name: 'version', role: "indicator.state", desc: 'version check for updates', type: 'string'}, | ||
native: {} | ||
@@ -993,0 +993,0 @@ }, function (err, obj) { |
30
main.js
@@ -87,18 +87,18 @@ "use strict"; | ||
var usedStateNames = { | ||
online: { n: 'reachable', g:1, val: 0, common: { write: false, min: false, max: true, role: "indicator.working"}}, | ||
on: { n: 'on', g:3, val: false, common: { min: false, max: true, role: "switch" }}, | ||
bri: { n: 'bri', g:3, val: 100, common: { min: 0, max: 100, unit: '%', desc: '0..100%', role: "level.dimmer" }}, | ||
ct: { n: 'ct', g:1, val: 0, common: { min: 0, max: 5000, unit: '°K', desc: 'temperature in °Kelvin 0..5000', role: "level.color.temperature" }}, | ||
red: { n: 'r', g:3, val: 0, common: { min: 0, max: 255, desc: '0..255 or #rrggbb[ww] (hex)', role: "level.color.red" }}, | ||
green: { n: 'g', g:3, val: 0, common: { min: 0, max: 255, desc: '0..255 or #rrggbb[ww] (hex)', role: "level.color.green" }}, | ||
blue: { n: 'b', g:3, val: 0, common: { min: 0, max: 255, desc: '0..255 or #rrggbb[ww] (hex)', role: "level.color.blue" }}, | ||
white: { n: 'w', g:3, val: 0, common: { min: 0, max: 255, desc: '0..255 or #rrggbb[ww] (hex)', role: "level.color.white" }}, | ||
disco: { n: 'disco', g:2, val: 1, common: { min: 1, max: 9, desc: '1..9' }}, | ||
progNo: { n: 'progNo', g:1, val: 38, common: { min: 35, max: 56, desc: '37..56, 97=none' }}, | ||
progOn: { n: 'progOn', g:1, val: false, common: { min: false, max: true, desc: 'program on/off' }}, | ||
progSpeed: { n: 'progSpeed', g:3, val: 10, common: { min: 0, max: 255 }, desc: 'speed for preogram'}, | ||
refresh: { n: 'refresh', g:1, val: false, common: { min: false, max: true, desc: 'read states from device' }}, | ||
transition: { n: 'trans', g:1, val: 30, common: { unit: '\u2152 s', desc: 'in 10th seconds'} }, | ||
online: { n: 'reachable', g:1, val: 0, common: { write: false, type: "boolean", role: "indicator.reachable"}}, | ||
on: { n: 'on', g:3, val: false, common: { type: "boolean", role: "switch" }}, | ||
bri: { n: 'bri', g:3, val: 100, common: { type: "number", min: 0, max: 100, unit: '%', desc: '0..100%', role: "level.dimmer" }}, | ||
ct: { n: 'ct', g:1, val: 0, common: { type: "number", min: 0, max: 5000, unit: '°K', desc: 'temperature in °Kelvin 0..5000', role: "level.color.temperature" }}, | ||
red: { n: 'r', g:3, val: 0, common: { type: "number", min: 0, max: 255, desc: '0..255 or #rrggbb[ww] (hex)', role: "level.color.red" }}, | ||
green: { n: 'g', g:3, val: 0, common: { type: "number", min: 0, max: 255, desc: '0..255 or #rrggbb[ww] (hex)', role: "level.color.green" }}, | ||
blue: { n: 'b', g:3, val: 0, common: { type: "number", min: 0, max: 255, desc: '0..255 or #rrggbb[ww] (hex)', role: "level.color.blue" }}, | ||
white: { n: 'w', g:3, val: 0, common: { type: "number", min: 0, max: 255, desc: '0..255 or #rrggbb[ww] (hex)', role: "level.color.white" }}, | ||
disco: { n: 'disco', g:2, val: 1, common: { type: "number", min: 1, max: 9, desc: '1..9' }}, | ||
progNo: { n: 'progNo', g:1, val: 38, common: { type: "number", min: 35, max: 56, desc: '37..56, 97=none' }}, | ||
progOn: { n: 'progOn', g:1, val: false, common: { type: "boolean", desc: 'program on/off' }}, | ||
progSpeed: { n: 'progSpeed', g:3, val: 10, common: { type: "number", min: 0, max: 255 }, desc: 'speed for preogram'}, | ||
refresh: { n: 'refresh', g:1, val: false, common: { type: "boolean", desc: 'read states from device' }}, | ||
transition: { n: 'trans', g:1, val: 30, common: { type: "number", unit: '\u2152 s', desc: 'in 10th seconds'} }, | ||
command: { n: 'command', g:3, val: 'r:0, g:0, b:0, on:true, transition:30', desc: 'r:0, g:0, b:0, on:true, transition:2' }, | ||
rgb: { n: 'rgb', g:3, val: '', common: { desc: '000000..ffffff' }, role: "level.color.rgb"}, | ||
rgb: { n: 'rgb', g:3, val: '', common: { type: "text", desc: '000000..ffffff' , role: "level.color.rgb"}}, | ||
onTime: { n: 'onTime', g:3, val: '', common: {}} | ||
@@ -105,0 +105,0 @@ }; |
131
package.json
{ | ||
"name": "iobroker.wifilight", | ||
"version": "1.1.0", | ||
"description": "WiFi Light Adapter", | ||
"author": { | ||
"name": "soef", | ||
"email": "soef@gmx.net" | ||
}, | ||
"contributors": [ | ||
{ | ||
"name": "soef", | ||
"email": "soef@gmx.net" | ||
} | ||
], | ||
"homepage": "https://github.com/iobroker-community-adapters/iobroker.wifilight", | ||
"license": "MIT", | ||
"keywords": [ | ||
"ioBroker", | ||
"wifilight", | ||
"lw12", | ||
"ld382" | ||
], | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/iobroker-community-adapters/iobroker.wifilight" | ||
}, | ||
"optionalDependencies": { | ||
"mdns-discovery": "^0.1.12" | ||
}, | ||
"dependencies": { | ||
"netmask": "^1.0.6", | ||
"@iobroker/adapter-core": "^1.0.3", | ||
"sprintf-js": "^1.0.3", | ||
"array-ext": "^0.1.0" | ||
}, | ||
"devDependencies": { | ||
"@iobroker/testing": "^1.2.6", | ||
"@types/chai": "^4.2.3", | ||
"@types/chai-as-promised": "^7.1.2", | ||
"@types/gulp": "^4.0.6", | ||
"@types/mocha": "^5.2.7", | ||
"@types/node": "^10.14.21", | ||
"@types/proxyquire": "^1.3.28", | ||
"@types/sinon": "^7.5.0", | ||
"@types/sinon-chai": "^3.2.3", | ||
"axios": "^0.19.0", | ||
"chai": "^4.2.0", | ||
"chai-as-promised": "^7.1.1", | ||
"eslint": "^6.5.1", | ||
"gulp": "^4.0.2", | ||
"mocha": "^6.2.1", | ||
"proxyquire": "^2.1.3", | ||
"sinon": "^7.5.0", | ||
"sinon-chai": "^3.3.0" | ||
}, | ||
"main": "main.js", | ||
"scripts": { | ||
"test": "node node_modules/mocha/bin/mocha --exit" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/iobroker-community-adapters/iobroker.wifilight/issues" | ||
}, | ||
"readmeFilename": "README.md" | ||
"name": "iobroker.wifilight", | ||
"version": "1.1.1", | ||
"description": "WiFi Light Adapter", | ||
"author": { | ||
"name": "soef", | ||
"email": "soef@gmx.net" | ||
}, | ||
"contributors": [ | ||
{ | ||
"name": "soef", | ||
"email": "soef@gmx.net" | ||
} | ||
], | ||
"homepage": "https://github.com/iobroker-community-adapters/iobroker.wifilight", | ||
"license": "MIT", | ||
"keywords": [ | ||
"ioBroker", | ||
"wifilight", | ||
"lw12", | ||
"ld382" | ||
], | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/iobroker-community-adapters/ioBroker.wifilight.git" | ||
}, | ||
"optionalDependencies": { | ||
"mdns-discovery": "^0.2.6" | ||
}, | ||
"dependencies": { | ||
"netmask": "^2.0.2", | ||
"@iobroker/adapter-core": "^2.6.0", | ||
"sprintf-js": "^1.1.2", | ||
"array-ext": "^0.1.5" | ||
}, | ||
"devDependencies": { | ||
"@alcalzone/release-script": "^3.5.6", | ||
"@alcalzone/release-script-plugin-iobroker": "^3.5.7", | ||
"@alcalzone/release-script-plugin-license": "^3.5.3", | ||
"@iobroker/testing": "^2.5.6", | ||
"@types/chai": "^4.3.1", | ||
"@types/chai-as-promised": "^7.1.5", | ||
"@types/gulp": "^4.0.9", | ||
"@types/mocha": "^9.1.0", | ||
"@types/node": "^17.0.24", | ||
"@types/proxyquire": "^1.3.28", | ||
"@types/sinon": "^10.0.11", | ||
"@types/sinon-chai": "^3.2.8", | ||
"axios": "^0.26.1", | ||
"chai": "^4.3.6", | ||
"chai-as-promised": "^7.1.1", | ||
"eslint": "^8.13.0", | ||
"gulp": "^4.0.2", | ||
"mocha": "^9.2.2", | ||
"proxyquire": "^2.1.3", | ||
"sinon": "^13.0.2", | ||
"sinon-chai": "^3.7.0" | ||
}, | ||
"main": "main.js", | ||
"scripts": { | ||
"test": "node node_modules/mocha/bin/mocha --exit", | ||
"release": "release-script", | ||
"release-patch": "release-script patch --yes", | ||
"release-minor": "release-script minor --yes", | ||
"release-major": "release-script major --yes" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/iobroker-community-adapters/iobroker.wifilight/issues" | ||
}, | ||
"readmeFilename": "README.md" | ||
} |
![Logo](admin/wifilight.png) | ||
# ioBroker.wifilight | ||
![Number of Installations](http://iobroker.live/badges/wifilight-community-installed.svg) ![Number of Installations](http://iobroker.live/badges/wifilight-community-stable.svg) [![NPM version](http://img.shields.io/npm/v/iobroker.wifilight.svg)](https://www.npmjs.com/package/iobroker.wifilight) | ||
[![Tests](http://img.shields.io/travis/soef/ioBroker.wifilight/master.svg)](https://travis-ci.org/soef/ioBroker.wifilight) | ||
[![Build status](https://ci.appveyor.com/api/projects/status/2hvs4fvfms7xhmnw?svg=true)](https://ci.appveyor.com/project/soef/iobroker-wifilight) | ||
[![License](https://img.shields.io/badge/license-MIT-blue.svg?style=flat)](https://github.com/soef/iobroker.wifilight/blob/master/LICENSE) | ||
![Number of Installations](http://iobroker.live/badges/wifilight-installed.svg) | ||
![Number of Installations](http://iobroker.live/badges/wifilight-stable.svg) | ||
[![NPM version](http://img.shields.io/npm/v/iobroker.wifilight.svg)](https://www.npmjs.com/package/iobroker.wifilight) | ||
![Test and Release](https://github.com/iobroker-community-adapters/iobroker.wifilight/workflows/Test%20and%20Release/badge.svg) | ||
[![Translation status](https://weblate.iobroker.net/widgets/adapters/-/wifilight/svg-badge.svg)](https://weblate.iobroker.net/engage/adapters/?utm_source=widget) | ||
[![Downloads](https://img.shields.io/npm/dm/iobroker.wifilight.svg)](https://www.npmjs.com/package/iobroker.wifilight) | ||
**This adapter uses Sentry libraries to automatically report exceptions and code errors to the developers.** For more details and for information how to disable the error reporting see [Sentry-Plugin Documentation](https://github.com/ioBroker/plugin-sentry#plugin-sentry)! Sentry reporting is used starting with js-controller 3.0. | ||
## Description | ||
@@ -60,2 +65,6 @@ | ||
## Changelog | ||
### 1.1.1 (2022-04-17) | ||
* (Apollon77) Prevent error logs with js-controller 3+ | ||
* (Apollon77) Added sentry for error reporting | ||
### 1.1.0 (2020-04-09) | ||
@@ -70,3 +79,3 @@ * (foxriver76) compatibility for js-c 3 | ||
Copyright (c) 2019-2020 soef <soef@gmx.net> | ||
Copyright (c) 2020-2022 ioBroker Community Developers, 2019-2020 soef <soef@gmx.net>, | ||
@@ -73,0 +82,0 @@ Permission is hereby granted, free of charge, to any person obtaining a copy |
Sorry, the diff of this file is not supported yet
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
97
14
7
170078
21
35
3496
+ Added@iobroker/adapter-core@2.6.11(transitive)
+ Added@types/iobroker@4.0.5(transitive)
+ Addedmdns-discovery@0.2.6(transitive)
+ Addednetmask@2.0.2(transitive)
- Removed@iobroker/adapter-core@1.0.3(transitive)
- Removed@types/iobroker@1.4.13(transitive)
- Removedmdns-discovery@0.1.12(transitive)
- Removednetmask@1.0.6(transitive)
Updatedarray-ext@^0.1.5
Updatednetmask@^2.0.2
Updatedsprintf-js@^1.1.2