New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

iobroker.swiss-weather-api

Package Overview
Dependencies
Maintainers
2
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

iobroker.swiss-weather-api - npm Package Compare versions

Comparing version 1.0.6 to 2.0.2

admin/i18n/de/translations.json

286

io-package.json
{
"common": {
"name": "swiss-weather-api",
"version": "1.0.6",
"news": {
"1.0.6": {
"en": "https://github.com/baerengraben/ioBroker.swiss-weather-api/issues/78, https://github.com/baerengraben/ioBroker.swiss-weather-api/issues/93 and https://github.com/baerengraben/ioBroker.swiss-weather-api/issues/97"
},
"1.0.5": {
"en": "Fixing https://github.com/baerengraben/ioBroker.swiss-weather-api/issues/81, https://github.com/baerengraben/ioBroker.swiss-weather-api/issues/76 and https://github.com/baerengraben/ioBroker.swiss-weather-api/issues/75"
},
"1.0.4": {
"en": "Fixing https://github.com/baerengraben/ioBroker.swiss-weather-api/issues/82 and https://github.com/baerengraben/ioBroker.swiss-weather-api/issues/85"
},
"1.0.3": {
"en": "Fixing https://github.com/baerengraben/ioBroker.swiss-weather-api/issues/67, https://github.com/baerengraben/ioBroker.swiss-weather-api/issues/66 and https://github.com/baerengraben/ioBroker.swiss-weather-api/issues/52"
},
"1.0.2": {
"en": "Fixing https://github.com/baerengraben/ioBroker.swiss-weather-api/issues/51 and https://github.com/baerengraben/ioBroker.swiss-weather-api/issues/53"
},
"1.0.1": {
"en": "Fixing https://github.com/baerengraben/ioBroker.swiss-weather-api/issues/57\nThis change makes it necessary to regenerate IDs. So, to install version 1.0.1, the currently running adapter instance must be completely removed and replaced with a new instance."
},
"1.0.0": {
"en": "Bugfix https://github.com/baerengraben/ioBroker.swiss-weather-api/issues/64"
}
},
"title": "Swiss Weather API (SRF Weather)",
"titleLang": {
"en": "Swiss Weather API (SRF Weather)",
"de": "Schweizer Wetter API (SRF Weather)",
"ru": "Swiss Weather API (SRF Weather)",
"pt": "API do clima suíço (SRF Weather)",
"nl": "Swiss Weather API (SRF Weather)",
"fr": "API Météo Suisse (SRF Weather)",
"it": "API meteorologica svizzera (SRF Weather)",
"es": "API meteorológica suiza (SRF Weather)",
"pl": "Szwajcarski interfejs API pogody (SRF Weather)",
"zh-cn": "瑞士天气API(SRF Weather)"
},
"desc": {
"en": "Connects to SRF Weather API (https://developer.srgssr.ch/apis/srf-weather)",
"de": "Stellt eine Verbindung zur SRF-Wetter-API her (https://developer.srgssr.ch/apis/srf-weather)",
"ru": "Подключается к SRF Weather API (https://developer.srgssr.ch/apis/srf-weather)",
"pt": "Conecta-se à SRF Weather API (https://developer.srgssr.ch/apis/srf-weather)",
"nl": "Maakt verbinding met SRF Weather API (https://developer.srgssr.ch/apis/srf-weather)",
"fr": "Se connecte à l'API Météo SRF (https://developer.srgssr.ch/apis/srf-weather)",
"it": "Si collega all'API Weather SRF (https://developer.srgssr.ch/apis/srf-weather)",
"es": "Se conecta a la API meteorológica de SRF (https://developer.srgssr.ch/apis/srf-weather)",
"pl": "Łączy się z SRF Weather API (https://developer.srgssr.ch/apis/srf-weather)",
"zh-cn": "连接到SRF Weather API(https://developer.srgssr.ch/apis/srf-weather)"
},
"authors": [
"baerengraben <baerengraben@intelli.ch>"
],
"keywords": [
"SRG-SSR",
"Weather API",
"SRF Weather"
],
"license": "MIT",
"platform": "Javascript/Node.js",
"icon": "swiss-weather-api.png",
"enabled": true,
"extIcon": "https://raw.githubusercontent.com/baerengraben/ioBroker.swiss-weather-api/master/admin/swiss-weather-api.png",
"readme": "https://github.com/baerengraben/ioBroker.swiss-weather-api/blob/master/README.md",
"loglevel": "info",
"mode": "daemon",
"type": "weather",
"connectionType": "cloud",
"dataSource": "poll",
"compact": true,
"materializeTab": true,
"materialize": true,
"dependencies": [
{
"js-controller": ">=3.0.0"
}
]
},
"native": {
"App_Name": "",
"ConsumerKey": "",
"ConsumerSecret": "",
"Latitude": "",
"Longitude": "",
"PollInterval": "60"
},
"objects": [],
"instanceObjects": [
{
"_id": "info.connection",
"type": "state",
"common": {
"name": "SRF Weather connected",
"type": "boolean",
"role": "indicator.connected",
"read": true,
"write": true,
"def": false,
"desc": "Is SRF Weather connected?"
},
"native": {
}
}
]
"common": {
"name": "swiss-weather-api",
"version": "2.0.2",
"news": {
"2.0.2": {
"en": "Just another freaking release-script test",
"de": "Nur noch ein verrückter Release-script-Test",
"ru": "Просто еще один захватывающий тест-скрипт",
"pt": "Apenas mais um teste de lançamento-escrito",
"nl": "Gewoon weer een verdomde vrijlatingstest",
"fr": "Juste un autre test de script de sortie flippant",
"it": "Solo un'altra strana prova di rilascio-script",
"es": "Sólo otra prueba de comandos de liberación",
"pl": "Tylko inna dziwna wersja testowa",
"uk": "Просто інший freaking-script test",
"zh-cn": "只是另一种缺陷的释放试验"
},
"2.0.1": {
"en": "https://github.com/baerengraben/ioBroker.swiss-weather-api/issues/94",
"de": "https://github.com/baerengraben/ioBroker.swiss-weather-api/issues/94",
"ru": "https://github.com/baerengraben/ioBroker.swiss-weather-api/issues/94",
"pt": "https://github.com/baerengraben/ioBroker.swiss-weather-api/issues/94",
"nl": "https://github.com/baerengraben/ioBroker.swiss-weather-api/issues/94",
"fr": "https://github.com/baerengraben/ioBroker.swiss-weather-api/issues/94",
"it": "https://github.com/baerengraben/ioBroker.swiss-weather-api/issues/94",
"es": "https://github.com/baerengraben/ioBroker.swiss-weather-api/issues/94",
"pl": "https://github.com/baerengraben/ioBroker.swiss-weather-api/issues/94",
"uk": "https://github.com/baerengraben/ioBroker.swiss-weather-api/issues/94",
"zh-cn": "https://github.com/baerengraben/ioBroker.swiss-weather-api/issues/94"
},
"1.0.6": {
"en": "https://github.com/baerengraben/ioBroker.swiss-weather-api/issues/78, https://github.com/baerengraben/ioBroker.swiss-weather-api/issues/93 and https://github.com/baerengraben/ioBroker.swiss-weather-api/issues/97",
"de": "https://github.com/baerengraben/ioBroker.swiss-weather-api/issues/78, https://github.com/baerengraben/ioBroker.swiss-weather-api/issues/93 und https://github. com/baerengraben/ioBroker.swiss-weather-api/issues/97",
"ru": "https://github.com/baerengraben/ioBroker.swiss-weather-api/issues/78, https://github.com/baerengraben/ioBroker.swiss-weather-api/issues/93 и https://github. com/baerengraben/ioBroker.swiss-weather-api/issues/97",
"pt": "https://github.com/baerengraben/ioBroker.swiss-weather-api/issues/78, https://github.com/baerengraben/ioBroker.swiss-weather-api/issues/93 e https://github. com/baerengraben/ioBroker.swiss-weather-api/issues/97",
"nl": "https://github.com/baerengraben/ioBroker.swiss-weather-api/issues/78, https://github.com/baerengraben/ioBroker.swiss-weather-api/issues/93 en https://github. com/baerengraben/ioBroker.swiss-weather-api/issues/97",
"fr": "https://github.com/baerengraben/ioBroker.swiss-weather-api/issues/78, https://github.com/baerengraben/ioBroker.swiss-weather-api/issues/93 et ​​https://github. com/baerengraben/ioBroker.swiss-weather-api/issues/97",
"it": "https://github.com/baerengraben/ioBroker.swiss-weather-api/issues/78, https://github.com/baerengraben/ioBroker.swiss-weather-api/issues/93 e https://github. com/baerengraben/ioBroker.swiss-weather-api/issues/97",
"es": "https://github.com/baerengraben/ioBroker.swiss-weather-api/issues/78, https://github.com/baerengraben/ioBroker.swiss-weather-api/issues/93 y https://github. com/baerengraben/ioBroker.swiss-weather-api/issues/97",
"pl": "https://github.com/baerengraben/ioBroker.swiss-weather-api/issues/78, https://github.com/baerengraben/ioBroker.swiss-weather-api/issues/93 i https://github. com/baerengraben/ioBroker.swiss-weather-api/issues/97",
"uk": "https://github.com/baerengraben/ioBroker.swiss-weather-api/issues/78, https://github.com/baerengraben/ioBroker.swiss-weather-api/issues/93 і https://github. com/baerengraben/ioBroker.swiss-weather-api/issues/97",
"zh-cn": "https://github.com/baerengraben/ioBroker.swiss-weather-api/issues/78、https://github.com/baerengraben/ioBroker.swiss-weather-api/issues/93 和 https://github.com/baerengraben/ioBroker.swiss-weather-api/issues/93。 com/baerengraben/ioBroker.swiss-weather-api/issues/97"
},
"1.0.5": {
"en": "Fixing https://github.com/baerengraben/ioBroker.swiss-weather-api/issues/81, https://github.com/baerengraben/ioBroker.swiss-weather-api/issues/76 and https://github.com/baerengraben/ioBroker.swiss-weather-api/issues/75",
"de": "Behebung von https://github.com/baerengraben/ioBroker.swiss-weather-api/issues/81, https://github.com/baerengraben/ioBroker.swiss-weather-api/issues/76 und https://github .com/baerengraben/ioBroker.swiss-weather-api/issues/75",
"ru": "Исправление https://github.com/baerengraben/ioBroker.swiss-weather-api/issues/81, https://github.com/baerengraben/ioBroker.swiss-weather-api/issues/76 и https://github .com/baerengraben/ioBroker.swiss-weather-api/issues/75",
"pt": "Correção https://github.com/baerengraben/ioBroker.swiss-weather-api/issues/81, https://github.com/baerengraben/ioBroker.swiss-weather-api/issues/76 e https://github .com/baerengraben/ioBroker.swiss-weather-api/issues/75",
"nl": "Reparatie van https://github.com/baerengraben/ioBroker.swiss-weather-api/issues/81, https://github.com/baerengraben/ioBroker.swiss-weather-api/issues/76 en https://github .com/baerengraben/ioBroker.swiss-weather-api/issues/75",
"fr": "Correction de https://github.com/baerengraben/ioBroker.swiss-weather-api/issues/81, https://github.com/baerengraben/ioBroker.swiss-weather-api/issues/76 et https://github .com/baerengraben/ioBroker.swiss-weather-api/issues/75",
"it": "Correzione di https://github.com/baerengraben/ioBroker.swiss-weather-api/issues/81, https://github.com/baerengraben/ioBroker.swiss-weather-api/issues/76 e https://github .com/baerengraben/ioBroker.swiss-weather-api/issues/75",
"es": "Arreglando https://github.com/baerengraben/ioBroker.swiss-weather-api/issues/81, https://github.com/baerengraben/ioBroker.swiss-weather-api/issues/76 y https://github .com/baerengraben/ioBroker.swiss-weather-api/issues/75",
"pl": "Naprawianie https://github.com/baerengraben/ioBroker.swiss-weather-api/issues/81, https://github.com/baerengraben/ioBroker.swiss-weather-api/issues/76 i https://github .com/baerengraben/ioBroker.swiss-weather-api/issues/75",
"uk": "Виправлення https://github.com/baerengraben/ioBroker.swiss-weather-api/issues/81, https://github.com/baerengraben/ioBroker.swiss-weather-api/issues/76 і https://github .com/baerengraben/ioBroker.swiss-weather-api/issues/75",
"zh-cn": "修复 https://github.com/baerengraben/ioBroker.swiss-weather-api/issues/81、https://github.com/baerengraben/ioBroker.swiss-weather-api/issues/76 和 https://github .com/baerengraben/ioBroker.swiss-weather-api/issues/75"
},
"1.0.4": {
"en": "Fixing https://github.com/baerengraben/ioBroker.swiss-weather-api/issues/82 and https://github.com/baerengraben/ioBroker.swiss-weather-api/issues/85",
"de": "Behebung von https://github.com/baerengraben/ioBroker.swiss-weather-api/issues/82 und https://github.com/baerengraben/ioBroker.swiss-weather-api/issues/85",
"ru": "Исправление https://github.com/baerengraben/ioBroker.swiss-weather-api/issues/82 и https://github.com/baerengraben/ioBroker.swiss-weather-api/issues/85",
"pt": "Correção https://github.com/baerengraben/ioBroker.swiss-weather-api/issues/82 e https://github.com/baerengraben/ioBroker.swiss-weather-api/issues/85",
"nl": "Reparatie van https://github.com/baerengraben/ioBroker.swiss-weather-api/issues/82 en https://github.com/baerengraben/ioBroker.swiss-weather-api/issues/85",
"fr": "Correction de https://github.com/baerengraben/ioBroker.swiss-weather-api/issues/82 et https://github.com/baerengraben/ioBroker.swiss-weather-api/issues/85",
"it": "Correzione di https://github.com/baerengraben/ioBroker.swiss-weather-api/issues/82 e https://github.com/baerengraben/ioBroker.swiss-weather-api/issues/85",
"es": "Arreglando https://github.com/baerengraben/ioBroker.swiss-weather-api/issues/82 y https://github.com/baerengraben/ioBroker.swiss-weather-api/issues/85",
"pl": "Naprawianie https://github.com/baerengraben/ioBroker.swiss-weather-api/issues/82 i https://github.com/baerengraben/ioBroker.swiss-weather-api/issues/85",
"uk": "Виправлення https://github.com/baerengraben/ioBroker.swiss-weather-api/issues/82 і https://github.com/baerengraben/ioBroker.swiss-weather-api/issues/85",
"zh-cn": "修复 https://github.com/baerengraben/ioBroker.swiss-weather-api/issues/82 和 https://github.com/baerengraben/ioBroker.swiss-weather-api/issues/85"
},
"1.0.3": {
"en": "Fixing https://github.com/baerengraben/ioBroker.swiss-weather-api/issues/67, https://github.com/baerengraben/ioBroker.swiss-weather-api/issues/66 and https://github.com/baerengraben/ioBroker.swiss-weather-api/issues/52",
"de": "Behebung von https://github.com/baerengraben/ioBroker.swiss-weather-api/issues/67, https://github.com/baerengraben/ioBroker.swiss-weather-api/issues/66 und https://github .com/baerengraben/ioBroker.swiss-weather-api/issues/52",
"ru": "Исправление https://github.com/baerengraben/ioBroker.swiss-weather-api/issues/67, https://github.com/baerengraben/ioBroker.swiss-weather-api/issues/66 и https://github .com/baerengraben/ioBroker.swiss-weather-api/issues/52",
"pt": "Correção https://github.com/baerengraben/ioBroker.swiss-weather-api/issues/67, https://github.com/baerengraben/ioBroker.swiss-weather-api/issues/66 e https://github .com/baerengraben/ioBroker.swiss-weather-api/issues/52",
"nl": "Reparatie van https://github.com/baerengraben/ioBroker.swiss-weather-api/issues/67, https://github.com/baerengraben/ioBroker.swiss-weather-api/issues/66 en https://github .com/baerengraben/ioBroker.swiss-weather-api/issues/52",
"fr": "Correction de https://github.com/baerengraben/ioBroker.swiss-weather-api/issues/67, https://github.com/baerengraben/ioBroker.swiss-weather-api/issues/66 et https://github .com/baerengraben/ioBroker.swiss-weather-api/issues/52",
"it": "Correzione di https://github.com/baerengraben/ioBroker.swiss-weather-api/issues/67, https://github.com/baerengraben/ioBroker.swiss-weather-api/issues/66 e https://github .com/baerengraben/ioBroker.swiss-weather-api/issues/52",
"es": "Arreglando https://github.com/baerengraben/ioBroker.swiss-weather-api/issues/67, https://github.com/baerengraben/ioBroker.swiss-weather-api/issues/66 y https://github .com/baerengraben/ioBroker.swiss-weather-api/issues/52",
"pl": "Naprawianie https://github.com/baerengraben/ioBroker.swiss-weather-api/issues/67, https://github.com/baerengraben/ioBroker.swiss-weather-api/issues/66 i https://github .com/baerengraben/ioBroker.swiss-weather-api/issues/52",
"uk": "Виправлення https://github.com/baerengraben/ioBroker.swiss-weather-api/issues/67, https://github.com/baerengraben/ioBroker.swiss-weather-api/issues/66 і https://github .com/baerengraben/ioBroker.swiss-weather-api/issues/52",
"zh-cn": "修复 https://github.com/baerengraben/ioBroker.swiss-weather-api/issues/67、https://github.com/baerengraben/ioBroker.swiss-weather-api/issues/66 和 https://github .com/baerengraben/ioBroker.swiss-weather-api/issues/52"
},
"1.0.2": {
"en": "Fixing https://github.com/baerengraben/ioBroker.swiss-weather-api/issues/51 and https://github.com/baerengraben/ioBroker.swiss-weather-api/issues/53",
"de": "Behebung von https://github.com/baerengraben/ioBroker.swiss-weather-api/issues/51 und https://github.com/baerengraben/ioBroker.swiss-weather-api/issues/53",
"ru": "Исправление https://github.com/baerengraben/ioBroker.swiss-weather-api/issues/51 и https://github.com/baerengraben/ioBroker.swiss-weather-api/issues/53",
"pt": "Correção https://github.com/baerengraben/ioBroker.swiss-weather-api/issues/51 e https://github.com/baerengraben/ioBroker.swiss-weather-api/issues/53",
"nl": "Reparatie van https://github.com/baerengraben/ioBroker.swiss-weather-api/issues/51 en https://github.com/baerengraben/ioBroker.swiss-weather-api/issues/53",
"fr": "Correction de https://github.com/baerengraben/ioBroker.swiss-weather-api/issues/51 et https://github.com/baerengraben/ioBroker.swiss-weather-api/issues/53",
"it": "Correzione di https://github.com/baerengraben/ioBroker.swiss-weather-api/issues/51 e https://github.com/baerengraben/ioBroker.swiss-weather-api/issues/53",
"es": "Arreglando https://github.com/baerengraben/ioBroker.swiss-weather-api/issues/51 y https://github.com/baerengraben/ioBroker.swiss-weather-api/issues/53",
"pl": "Naprawianie https://github.com/baerengraben/ioBroker.swiss-weather-api/issues/51 i https://github.com/baerengraben/ioBroker.swiss-weather-api/issues/53",
"uk": "Виправлення https://github.com/baerengraben/ioBroker.swiss-weather-api/issues/51 і https://github.com/baerengraben/ioBroker.swiss-weather-api/issues/53",
"zh-cn": "修复 https://github.com/baerengraben/ioBroker.swiss-weather-api/issues/51 和 https://github.com/baerengraben/ioBroker.swiss-weather-api/issues/53"
}
},
"titleLang": {
"en": "Swiss Weather API (SRF Weather)",
"de": "Schweizer Wetter API (SRF Weather)",
"ru": "Swiss Weather API (SRF Weather)",
"pt": "API do clima suíço (SRF Weather)",
"nl": "Swiss Weather API (SRF Weather)",
"fr": "API Météo Suisse (SRF Weather)",
"it": "API meteorologica svizzera (SRF Weather)",
"es": "API meteorológica suiza (SRF Weather)",
"pl": "Szwajcarski interfejs API pogody (SRF Weather)",
"zh-cn": "瑞士天气API(SRF Weather)",
"uk": "Swiss Weather API (SRF Weather)"
},
"desc": {
"en": "Connects to SRF Weather API (https://developer.srgssr.ch/apis/srf-weather)",
"de": "Stellt eine Verbindung zur SRF-Wetter-API her (https://developer.srgssr.ch/apis/srf-weather)",
"ru": "Подключается к SRF Weather API (https://developer.srgssr.ch/apis/srf-weather)",
"pt": "Conecta-se à SRF Weather API (https://developer.srgssr.ch/apis/srf-weather)",
"nl": "Maakt verbinding met SRF Weather API (https://developer.srgssr.ch/apis/srf-weather)",
"fr": "Se connecte à l'API Météo SRF (https://developer.srgssr.ch/apis/srf-weather)",
"it": "Si collega all'API Weather SRF (https://developer.srgssr.ch/apis/srf-weather)",
"es": "Se conecta a la API meteorológica de SRF (https://developer.srgssr.ch/apis/srf-weather)",
"pl": "Łączy się z SRF Weather API (https://developer.srgssr.ch/apis/srf-weather)",
"zh-cn": "连接到SRF Weather API(https://developer.srgssr.ch/apis/srf-weather)",
"uk": "Підключається до SRF Weather API (https://developer.srgssr.ch/apis/srf-weather)"
},
"authors": [
"baerengraben <baerengraben@intelli.ch>"
],
"keywords": [
"SRG-SSR",
"Weather API",
"SRF Weather"
],
"license": "MIT",
"platform": "Javascript/Node.js",
"icon": "swiss-weather-api.png",
"enabled": true,
"extIcon": "https://raw.githubusercontent.com/baerengraben/ioBroker.swiss-weather-api/master/admin/swiss-weather-api.png",
"readme": "https://github.com/baerengraben/ioBroker.swiss-weather-api/blob/master/README.md",
"loglevel": "info",
"mode": "daemon",
"type": "weather",
"connectionType": "cloud",
"dataSource": "poll",
"compact": true,
"adminUI": {
"config": "json"
},
"dependencies": [
{
"js-controller": ">=3.3.22"
}
],
"globalDependencies": [
{
"admin": ">=5.1.13"
}
]
},
"native": {
"app_name": "",
"consumerKey": "",
"consumerSecret": "",
"latitude": "",
"longitude": "",
"pollinterval": 60
},
"objects": [],
"instanceObjects": [
{
"_id": "info.connection",
"type": "state",
"common": {
"name": "SRF Weather connected",
"type": "boolean",
"role": "indicator.connected",
"read": true,
"write": true,
"def": false,
"desc": "Is SRF Weather connected?"
},
"native": {}
}
]
}

@@ -5,3 +5,3 @@ // This file extends the AdapterConfig type from "@types/iobroker"

import { native } from "../io-package.json";
import { native } from '../io-package.json';

@@ -17,2 +17,5 @@ type _AdapterConfig = typeof native;

}
}
}
// this is required so the above AdapterConfig is found by TypeScript / type checking
export {};
{
"name": "iobroker.swiss-weather-api",
"version": "1.0.6",
"version": "2.0.2",
"description": "Connects to SRF Weather API (https://developer.srgssr.ch/apis/srf-weather)",

@@ -31,24 +31,47 @@ "author": {

"devDependencies": {
"@iobroker/testing": "^2.4. 4",
"@types/chai": "^4.2.18",
"@types/chai-as-promised": "^7.1.4",
"@types/gulp": "^4.0.8",
"@types/mocha": "^8.2.2",
"@types/node": "^15.3.1",
"@alcalzone/release-script": "^3.6.0",
"@alcalzone/release-script-plugin-iobroker": "^3.6.0",
"@alcalzone/release-script-plugin-license": "^3.5.9",
"@alcalzone/release-script-plugin-manual-review": "^3.5.9",
"@iobroker/adapter-dev": "^1.2.0",
"@iobroker/testing": "^4.1.0",
"@tsconfig/node16": "^16.1.0",
"@types/chai": "^4.3.5",
"@types/chai-as-promised": "^7.1.5",
"@types/mocha": "^10.0.1",
"@types/node": "^16.18.38",
"@types/proxyquire": "^1.3.28",
"@types/sinon": "^10.0.0",
"@types/sinon-chai": "^3.2.5",
"axios": "^0.21.2",
"chai": "^4.3.4",
"@types/sinon": "^10.0.15",
"@types/sinon-chai": "^3.2.9",
"chai": "^4.3.7",
"chai-as-promised": "^7.1.1",
"eslint": "^7.26.0",
"gulp": "^4.0.2",
"eslint": "^8.44.0",
"eslint-plugin-react": "^7.33.1",
"mocha": "^10.2.0",
"proxyquire": "^2.1.3",
"sinon": "^10.0.0",
"sinon-chai": "^3.6.0"
"sinon": "^15.2.0",
"sinon-chai": "^3.7.0",
"typescript": "~5.0.4"
},
"main": "main.js",
"files": [
"admin{,/!(src)/**}/!(tsconfig|tsconfig.*|.eslintrc).{json,json5}",
"admin{,/!(src)/**}/*.{html,css,png,svg,jpg,js}",
"lib/",
"www/",
"io-package.json",
"LICENSE",
"main.js"
],
"scripts": {
"test": "node node_modules/mocha/bin/mocha --exit"
"test:js": "mocha --config test/mocharc.custom.json \"{!(node_modules|test)/**/*.test.js,*.test.js,test/**/test!(PackageFiles|Startup).js}\"",
"test:package": "mocha test/package --exit",
"test:integration": "mocha test/integration --exit",
"test": "npm run test:js && npm run test:package",
"check": "tsc --noEmit -p tsconfig.check.json",
"lint": "eslint .",
"translate": "translate-adapter",
"release": "release-script",
"release-minor": "release-script minor --yes",
"release-major": "release-script major --yes"
},

@@ -58,3 +81,7 @@ "bugs": {

},
"directories": {
"lib": "lib",
"test": "test"
},
"readmeFilename": "README.md"
}

@@ -9,32 +9,26 @@ ![Logo](admin/swiss-weather-api.png)

[![Known Vulnerabilities](https://snyk.io/test/github/baerengraben/ioBroker.swiss-weather-api/badge.svg)](https://snyk.io/test/github/baerengraben/ioBroker.swiss-weather-api)
![GitHub issues](https://img.shields.io/github/issues/baerengraben/ioBroker.swiss-weather-api?logo=github&style=flat-square)
![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/baerengraben/ioBroker.swiss-weather-api/test-and-release.yml?branch=master&logo=github&style=flat-square)
[![NPM](https://nodei.co/npm/iobroker.swiss-weather-api.png?downloads=true)](https://nodei.co/npm/iobroker.swiss-weather-api/)
**Tests:**: [![Travis-CI](http://img.shields.io/travis/baerengraben/ioBroker.swiss-weather-api/master.svg)](https://travis-ci.org/baerengraben/ioBroker.swiss-weather-api)
**Update procedure Version 1.0.1 to 1.0.x**
- Just update in ioBroker. No special additional steps necessary
**Update procedure Version 1.0.0 to 1.0.1**
- With Version 1.0.1 I'm fixing Issue https://github.com/baerengraben/ioBroker.swiss-weather-api/issues/57
- Based on [this](https://forum.iobroker.net/topic/46975/vis-widgethintergrund-farbe-durch-objektdatenpunkt-steuern) discussion, colons are not allowed in IDs. I have therefore removed the colons, which were used for the hours, without replacement and also omitted the seconds. e.g. old 01:00:00 => new 0100)
This change makes it necessary to regenerate IDs. So, to install version 1.0.1, the currently running adapter instance must be completely removed and replaced with a new instance.
- Because the IDs changed with version 1.0.1, the visu-views had to be adapted as well. You can get the updated views [here](https://github.com/baerengraben/ioBroker.swiss-weather-api/tree/master/views) and import them into ioBroker-Visu.
## swiss-weather-api adapter for ioBroker
Connects to the great SRF weather API (https://developer.srgssr.ch/apis/srf-weather).
# swiss-weather-api adapter for ioBroker
Connects to the great SRF weather API - Version 2 (https://developer.srgssr.ch/apis/srf-weather).
The SRF Weather REST API allows you to get weather forecasts and reports from more than 25.000 locations across Switzerland. A "Freemium" subscription allows you to get 50 Request/day.
##**Icons**
Since Version 0.1.8 SRG-SSR provides their own icons. So each Datapoint provides an URL to the correspondig weather-situation (Color, Dark, and Light Icons).
## **Please Be aware:**
1. This adapter only supports locations within Switzerland.
1. SRF Weather API V1 is supported until Adapter-Version 1.0.6. SRF Weather API V2 is supported from Version 1.1.0
##**Please Be aware that this adapter only supports locations within Switzerland.**
## **Update procedure Version 1.0.x to 1.1.x**
- Remove the adapter (delete all Adapter-Objects in ioBroker!)
- Install Adapter completly new => New Objects will be generated
- Since SRF has changed the Path-Names, you have to update your Visu. Just [reimport the views](https://github.com/baerengraben/ioBroker.swiss-weather-api/tree/master/views).
##**Please Be aware that this adapter only supports RF Weather REST API Version 1 - Version 2 is comming soon!**
### Getting started
## Getting started
1. Get a free accout on https://developer.srgssr.ch/
1. Go to "My Apps" and create a new App. Here you can choose a Product. "Freemium" is their free product. If you only want a forecast for one location and get only 50 request per day (every 30min) or/and don't want to pay for more request per day, "Freemium" is what you want to choose. Now, this will create a specific ConsumerKey and ConsumerSecret
1. Find out Longitude / Latitude (decimal degrees) of the chosen location for which forecast is needed. This information is optional if you have set your location in the ioBroker settings (main settings) (via the map). In this case you could leave the latitude and longitude fields empty. The adapter then takes over the settings of the ioBroker. Latitude and longitude entered in the adapter configuration override the ioBroker settings.
1. Go to "Apps" and add new App. Here you can choose a API-Product. "SRF-MeteoProductFreemium" is their free product. If you only want a forecast for one location and get only 25 request per day (every 60min) or/and don't want to pay for more request per day, "SRF-MeteoProductFreemium" is what you want to choose. Now, this will create a specific ConsumerKey and ConsumerSecret
1. Find out Longitude / Latitude (decimal degrees) of the chosen location for which forecast is needed. This information is optional if you have set your location in the ioBroker settings (main settings) (via the map). In this case you could leave the latitude and longitude fields empty. The adapter then ueses the settings of the ioBroker. Latitude and longitude entered in the adapter configuration override the ioBroker settings.
1. Install this Adapter on ioBroker => This can take several minutes (~7min on a Raspberry Pi 3)

@@ -46,3 +40,3 @@ 1. On Adapter Configuration fill in

1. Longitude / Latitude of the chosen swiss location for which forecast is needed. => Please use decimal degrees (for example Zürich: 47.36667 / 8.5)
1. Poll Interval in Minutes (By default 30 minutes - 50 Request/Day)
1. Poll Interval in Minutes (By default 60 minutes - 25 Request/Day)

@@ -64,2 +58,15 @@ The first query is made 10s after the adapter was started. After the first start, the query will be executed regularly according to the conifugation parameter (Poll Interval in Minutes).

<!--
Placeholder for the next version (at the beginning of the line):
### **WORK IN PROGRESS**
-->
### 2.0.2 (2023-07-31)
* (baerengraben) Just another freaking release-script test
### 2.0.1 (2023-07-31)
* (baerengraben) Just a release-script test
### 2.0.0 (2023-07-31) - Release for SRF Weather API Version 2!
* (baerengraben) Update SRF API version 1 to version 2 https://github.com/baerengraben/ioBroker.swiss-weather-api/issues/94. With this Update new attributes are available: symbol24_code, DEWPOINT_C, RELHUM_PERCENT, FRESHSNOW_CM, PRESSURE_HPA, SUN_MIN, IRRADIANCE_WM2 and TTTFEEL_C
### 1.0.6

@@ -75,119 +82,7 @@ * (baerengraben) Fixing https://github.com/baerengraben/ioBroker.swiss-weather-api/issues/78

### 1.0.4
* (baerengraben) Fixing https://github.com/baerengraben/ioBroker.swiss-weather-api/issues/85
* (baerengraben) Fixing https://github.com/baerengraben/ioBroker.swiss-weather-api/issues/82
### 1.0.3
* (baerengraben) Fixing https://github.com/baerengraben/ioBroker.swiss-weather-api/issues/67
* (baerengraben) Fixing https://github.com/baerengraben/ioBroker.swiss-weather-api/issues/66
* (baerengraben) Fixing https://github.com/baerengraben/ioBroker.swiss-weather-api/issues/52
### 1.0.2
* (baerengraben) Fixing https://github.com/baerengraben/ioBroker.swiss-weather-api/issues/51
* (baerengraben) Fixing https://github.com/baerengraben/ioBroker.swiss-weather-api/issues/53
### 1.0.1
* (baerengraben) Fixing https://github.com/baerengraben/ioBroker.swiss-weather-api/issues/57
This change makes it necessary to regenerate IDs. So, to install version 1.0.1, the currently running adapter instance must be completely removed and replaced with a new instance.
### 1.0.0
* (baerengraben) Bugfix https://github.com/baerengraben/ioBroker.swiss-weather-api/issues/64
### 0.9.9
* (baerengraben) Workaround for SRG Certificate Problem: https://github.com/baerengraben/ioBroker.swiss-weather-api/issues/63
### 0.9.8
* (jobe451) Bugfix: JsonChart is missing 15h and 16h as x-labels
### 0.9.7
* (baerengraben) Bugfix - RC2 for stable release.
### 0.9.6
* (baerengraben) Bugfix - RC for stable release.
### 0.9.5
* (baerengraben) Some small improvements
### 0.9.4
* (baerengraben) Bugfix: https://github.com/baerengraben/ioBroker.swiss-weather-api/issues/47
### 0.9.3
* (baerengraben) Function Update: Added day_name to identify weekday from "forecast.day.day0.day_name" to "forecast.day.day7.day_name".
* (baerengraben) Added last_run as Object on swiss-weather-api.0.info.lastrun.
* (baerengraben) Added JsonChart Object on swiss-weather-api.0.forecast.60minutes.day(0-4).JsonChart.
* (baerengraben) Added some Examples how to do visualisation (folder views) based on https://forum.iobroker.net/topic/32232/material-design-widgets-wetter-view
### 0.9.2
* (baerengraben) Function Update: The current weather information is provided as a forecast.current_hour object. Every hour this information is updated. This is done every hour by copying the corresponding values from forecast.60minutes.day0.<current_time>. So no new http request will be executed. The values are only copied from the forecast objects. This makes it easier to display the current weather in the visualization.
### 0.9.1
* (baerengraben) Fix to reduce amount of Rest-Calls: https://github.com/baerengraben/ioBroker.swiss-weather-api/issues/41
* (baerengraben) Fix for https://github.com/baerengraben/ioBroker.swiss-weather-api/issues/32 (Crashes when no Internet Connection is available)
* (baerengraben) Partly Fix for https://github.com/baerengraben/ioBroker.swiss-weather-api/issues/24: Handling Adapter State Info.
### 0.9.0
* (baerengraben) Removed NodeJs 10 support and added NodeJs 16 support
* (baerengraben) Update to new SRF Weater API (https://developer.srgssr.ch/apis/srf-weather). Attention: Old Weather-API (Adapter Version 0.3.2 and earlier) will be decommissioned on Sept. 2021)
* (baerengraben) Removed Icon-Support from https://erikflowers.github.io/weather-icons/ since SRF is providing their own icons.
### 0.3.2
* (baerengraben) Fix for https://github.com/baerengraben/iobroker.swiss-weather-api/issues/13.
### 0.3.1
* (baerengraben) Adapter-Config attributes longitude & latitude is optional now. If no longitude/latitude is set, the adpater is getting the longitude/latitude from ioBroker System-Attributes (https://github.com/baerengraben/iobroker.swiss-weather-api/issues/6).
### 0.3.0
* (baerengraben) Change from Scheduled Adapter to Deamon Adapter(https://github.com/baerengraben/iobroker.swiss-weather-api/issues/11). The query interval is now configurable by parameter. The first query is made 10s after the adapter was started. Attention: For installing this version, please delete the older adapter version completely and install it again.
### 0.2.3
* (baerengraben) Update Dependencies
### 0.2.2
* (baerengraben) Some bug fixing
* (baerengraben) Enhancement https://github.com/baerengraben/iobroker.swiss-weather-api/issues/10
### 0.2.0
* (baerengraben) Updates in order to commit to iobroker stable
### 0.1.9
* (baerengraben) Dependency- and Vulnerabilites-Updates
### 0.1.8
* (baerengraben) Added Icons provided by SRGSSR => Thank you!! :)
* (baerengraben) Added new Object icon-url-srgssr => Contains the url-link to the srgssr Icon
### 0.1.7
**Attention**: If you have already installed a previous Version of swiss-weather-api (<= 0.1.6) please remove the adapter and install it completely new. This makes shure you get the new Unit-Names for "fff" and "ffx3" which where corrected by SRG.
* (baerengraben) Added Icon-Codes -17 to -30 => These are not yet confirmed by srf - but I beleave these are correct.
* (baerengraben) SRG is now providing the correct unit-names for "fff" and "ffx3". Adaptet this in the swiss-weather-adapter. **Attention**: You have to reinstall the swiss-weather-api (remove and install new Version) to make shure the Object-Name gets this Update.
### 0.1.6
* (baerengraben) Some fixes based on Feedback of forum.iobroker.net
### 0.1.5
* (baerengraben) Some fixes based on Feedback of forum.iobroker.net
### 0.1.4
* (baerengraben) Added Travis CI testing
### 0.1.3
* (baerengraben) Role-Definitions updated and added attribute 'icon-name'.
### 0.1.2
* (baerengraben) Some fixes.
### 0.1.0
* (baerengraben) Running version. Reads the complete weather forecast from https://api.srgssr.ch
### 0.0.2
* (baerengraben) first running version. Reads Current Forecast (https://api.srgssr.ch/forecasts/v1.0/weather/current)
### 0.0.1
* (baerengraben) initial release
## License
MIT License
Copyright (c) 2023 baerengraben <baerengraben@intelli.ch>
Permission is hereby granted, free of charge, to any person obtaining a copy

@@ -209,4 +104,2 @@ of this software and associated documentation files (the "Software"), to deal

OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Copyright (c) 2022 baerengraben <baerengraben@intelli.ch>
SOFTWARE.

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc