2018-09-23 16:13:07 +08:00
|
|
|
{
|
|
|
|
"common": {
|
|
|
|
"name": "yr",
|
|
|
|
"version": "2.0.2",
|
|
|
|
"title": "yr.no",
|
|
|
|
"titleLang": {
|
|
|
|
"en": "yr.no weather",
|
|
|
|
"cn": "天气预报"
|
|
|
|
},
|
|
|
|
"desc": {
|
|
|
|
"en": "Fetches 48h weather forecast from yr.no",
|
|
|
|
"cn": "云控天气预报"
|
|
|
|
},
|
|
|
|
"license": "MIT",
|
|
|
|
"platform": "Node.js",
|
|
|
|
"mode": "schedule",
|
|
|
|
"schedule": "6 * * * *",
|
|
|
|
"enabled": true,
|
|
|
|
"loglevel": "info",
|
|
|
|
"materialize": true,
|
|
|
|
"keywords": ["weather", "forecast", "temperature", "rain", "yr", "meteorology"],
|
|
|
|
"main": "main.js",
|
|
|
|
"icon": "yr.png",
|
|
|
|
"extIcon": "https://git.spacen.net/yunkong2/yunkong2.yr/raw/master/admin/yr.png",
|
|
|
|
"readme": "https://github.com/yunkong2/yunkong2.yr/blob/master/README.md",
|
|
|
|
"allowInit": true,
|
|
|
|
"type": "weather"
|
|
|
|
},
|
|
|
|
"native": {
|
|
|
|
"location": "",
|
|
|
|
"language": "",
|
2018-09-23 16:39:54 +08:00
|
|
|
"transURL": "",
|
2018-09-23 16:13:07 +08:00
|
|
|
"sendTranslations": true,
|
|
|
|
"nonMetric": false
|
|
|
|
},
|
|
|
|
"objects": [
|
|
|
|
|
|
|
|
],
|
|
|
|
"instanceObjects": [
|
|
|
|
{
|
|
|
|
"_id": "forecast",
|
|
|
|
"type": "device",
|
|
|
|
"common": {
|
|
|
|
"name": "actual weather or forecast",
|
|
|
|
"role": "weather"
|
|
|
|
},
|
|
|
|
"native": {}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"_id": "forecast.day0",
|
|
|
|
"type": "channel",
|
|
|
|
"common": {
|
|
|
|
"name": "actual weather or forecast for today",
|
|
|
|
"role": "weather.forecast"
|
|
|
|
},
|
|
|
|
"native": {}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"_id": "forecast.day0.date",
|
|
|
|
"type": "state",
|
|
|
|
"common": {
|
|
|
|
"name": "Actual date",
|
|
|
|
"type": "string",
|
|
|
|
"role": "date",
|
|
|
|
"read": true,
|
|
|
|
"write": false,
|
|
|
|
"desc": "Actual date as string"
|
|
|
|
},
|
|
|
|
"native": {}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"_id": "forecast.day0.icon",
|
|
|
|
"type": "state",
|
|
|
|
"common": {
|
|
|
|
"name": "Actual icon",
|
|
|
|
"type": "string",
|
|
|
|
"role": "weather.icon",
|
|
|
|
"read": true,
|
|
|
|
"write": false,
|
|
|
|
"desc": "Path to icon"
|
|
|
|
},
|
|
|
|
"native": {}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"_id": "forecast.day0.state",
|
|
|
|
"type": "state",
|
|
|
|
"common": {
|
|
|
|
"name": "Actual state",
|
|
|
|
"type": "string",
|
|
|
|
"role": "weather.state",
|
|
|
|
"read": true,
|
|
|
|
"write": false,
|
|
|
|
"desc": "Description of weather"
|
|
|
|
},
|
|
|
|
"native": {}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"_id": "forecast.day0.temperatureActual",
|
|
|
|
"type": "state",
|
|
|
|
"common": {
|
|
|
|
"name": "Actual temperature",
|
|
|
|
"type": "number",
|
|
|
|
"role": "value.temperature",
|
|
|
|
"read": true,
|
|
|
|
"unit": "°C",
|
|
|
|
"write": false
|
|
|
|
},
|
|
|
|
"native": {}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"_id": "forecast.day0.temperatureMin",
|
|
|
|
"type": "state",
|
|
|
|
"common": {
|
|
|
|
"name": "Forecast of temperature for today",
|
|
|
|
"type": "number",
|
|
|
|
"role": "value.temperature.min.forecast.0",
|
|
|
|
"read": true,
|
|
|
|
"write": false,
|
|
|
|
"unit": "°C",
|
|
|
|
"desc": "Forecast of temperature for today. Minimum value."
|
|
|
|
},
|
|
|
|
"native": {}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"_id": "forecast.day0.temperatureMax",
|
|
|
|
"type": "state",
|
|
|
|
"common": {
|
|
|
|
"name": "Forecast of temperature for today",
|
|
|
|
"type": "number",
|
|
|
|
"role": "value.temperature.max.forecast.0",
|
|
|
|
"read": true,
|
|
|
|
"write": false,
|
|
|
|
"unit": "°C",
|
|
|
|
"desc": "Forecast of temperature for today. Maximum value."
|
|
|
|
},
|
|
|
|
"native": {}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"_id": "forecast.day0.precipitation",
|
|
|
|
"type": "state",
|
|
|
|
"common": {
|
|
|
|
"name": "Forecast of precipitation level for today (rain/snow)",
|
|
|
|
"type": "number",
|
|
|
|
"role": "weather.precipitation",
|
|
|
|
"read": true,
|
|
|
|
"write": false,
|
|
|
|
"unit": "mm",
|
|
|
|
"desc": "Forecast for rain or snow level in mm"
|
|
|
|
},
|
|
|
|
"native": {}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"_id": "forecast.day0.windDirection",
|
|
|
|
"type": "state",
|
|
|
|
"common": {
|
|
|
|
"name": "Forecast for wind direction for today",
|
|
|
|
"type": "string",
|
|
|
|
"role": "weather.direction.wind.forecast.0",
|
|
|
|
"read": true,
|
|
|
|
"write": false,
|
|
|
|
"desc": "Forecast for wind direction for today"
|
|
|
|
},
|
|
|
|
"native": {}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"_id": "forecast.day0.windSpeed",
|
|
|
|
"type": "state",
|
|
|
|
"common": {
|
|
|
|
"name": "Forecast for wind speed for today",
|
|
|
|
"type": "number",
|
|
|
|
"role": "value.speed.wind.forecast.0",
|
|
|
|
"read": true,
|
|
|
|
"write": false,
|
|
|
|
"unit": "km/h",
|
|
|
|
"desc": "Forecast for wind speed in km/h"
|
|
|
|
},
|
|
|
|
"native": {}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"_id": "forecast.day0.pressure",
|
|
|
|
"type": "state",
|
|
|
|
"common": {
|
|
|
|
"name": "Forecast for pressure for today",
|
|
|
|
"type": "number",
|
|
|
|
"role": "value.pressure.forecast.0",
|
|
|
|
"read": true,
|
|
|
|
"write": false,
|
|
|
|
"unit": "hPa",
|
|
|
|
"desc": "Forecast for pressure in hPa"
|
|
|
|
},
|
|
|
|
"native": {}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"_id": "forecast.day1",
|
|
|
|
"type": "channel",
|
|
|
|
"common": {
|
|
|
|
"name": "Forecast for tomorrow",
|
|
|
|
"role": "weather.forecast"
|
|
|
|
},
|
|
|
|
"native": {}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"_id": "forecast.day1.date",
|
|
|
|
"type": "state",
|
|
|
|
"common": {
|
|
|
|
"name": "Tomorrow date",
|
|
|
|
"type": "string",
|
|
|
|
"role": "date.forecast.1",
|
|
|
|
"read": true,
|
|
|
|
"write": false,
|
|
|
|
"desc": "Tomorrow date as string"
|
|
|
|
},
|
|
|
|
"native": {}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"_id": "forecast.day1.icon",
|
|
|
|
"type": "state",
|
|
|
|
"common": {
|
|
|
|
"name": "Icon for tomorrow",
|
|
|
|
"type": "string",
|
|
|
|
"role": "weather.icon.forecast.1",
|
|
|
|
"read": true,
|
|
|
|
"write": false,
|
|
|
|
"desc": "Path to icon for tomorrow"
|
|
|
|
},
|
|
|
|
"native": {}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"_id": "forecast.day1.state",
|
|
|
|
"type": "state",
|
|
|
|
"common": {
|
|
|
|
"name": "Text for tomorrow",
|
|
|
|
"type": "string",
|
|
|
|
"role": "weather.state.forecast.1",
|
|
|
|
"read": true,
|
|
|
|
"write": false,
|
|
|
|
"desc": "Description of weather for tomorrow"
|
|
|
|
},
|
|
|
|
"native": {}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"_id": "forecast.day1.temperatureMin",
|
|
|
|
"type": "state",
|
|
|
|
"common": {
|
|
|
|
"name": "Forecast of temperature for tomorrow",
|
|
|
|
"type": "number",
|
|
|
|
"role": "value.temperature.min.forecast.1",
|
|
|
|
"read": true,
|
|
|
|
"write": false,
|
|
|
|
"unit": "°C",
|
|
|
|
"desc": "Forecast of temperature for tomorrow. Minimum value."
|
|
|
|
},
|
|
|
|
"native": {}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"_id": "forecast.day1.temperatureMax",
|
|
|
|
"type": "state",
|
|
|
|
"common": {
|
|
|
|
"name": "Forecast of temperature for tomorrow",
|
|
|
|
"type": "number",
|
|
|
|
"role": "value.temperature.max.forecast.1",
|
|
|
|
"read": true,
|
|
|
|
"write": false,
|
|
|
|
"unit": "°C",
|
|
|
|
"desc": "Forecast of temperature for tomorrow. Maximum value."
|
|
|
|
},
|
|
|
|
"native": {}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"_id": "forecast.day1.precipitation",
|
|
|
|
"type": "state",
|
|
|
|
"common": {
|
|
|
|
"name": "Forecast of precipitation level for tomorrow (rain/snow)",
|
|
|
|
"type": "number",
|
|
|
|
"role": "value.precipitation.forecast.1",
|
|
|
|
"read": true,
|
|
|
|
"write": false,
|
|
|
|
"unit": "mm",
|
|
|
|
"desc": "Forecast for rain or snow level in mm"
|
|
|
|
},
|
|
|
|
"native": {}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"_id": "forecast.day1.windDirection",
|
|
|
|
"type": "state",
|
|
|
|
"common": {
|
|
|
|
"name": "Forecast for wind direction for tomorrow",
|
|
|
|
"type": "string",
|
|
|
|
"role": "weather.direction.wind.forecast.1",
|
|
|
|
"read": true,
|
|
|
|
"write": false,
|
|
|
|
"desc": "Forecast wind direction as text"
|
|
|
|
},
|
|
|
|
"native": {}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"_id": "forecast.day1.windSpeed",
|
|
|
|
"type": "state",
|
|
|
|
"common": {
|
|
|
|
"name": "Forecast for wind speed for tomorrow",
|
|
|
|
"type": "number",
|
|
|
|
"role": "value.speed.wind.forecast.1",
|
|
|
|
"read": true,
|
|
|
|
"write": false,
|
|
|
|
"unit": "km/h",
|
|
|
|
"desc": "Forecast for wind speed in km/h"
|
|
|
|
},
|
|
|
|
"native": {}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"_id": "forecast.day1.pressure",
|
|
|
|
"type": "state",
|
|
|
|
"common": {
|
|
|
|
"name": "Forecast for pressure for tomorrow",
|
|
|
|
"type": "number",
|
|
|
|
"role": "value.pressure.forecast.1",
|
|
|
|
"read": true,
|
|
|
|
"write": false,
|
|
|
|
"unit": "hPa",
|
|
|
|
"desc": "Forecast for pressure in hPa for tomorrow"
|
|
|
|
},
|
|
|
|
"native": {}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"_id": "forecast.day2",
|
|
|
|
"type": "channel",
|
|
|
|
"common": {
|
|
|
|
"name": "actual weather or forecast for the day after tomorrow",
|
|
|
|
"role": "weather.forecast"
|
|
|
|
},
|
|
|
|
"native": {}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"_id": "forecast.day2.date",
|
|
|
|
"type": "state",
|
|
|
|
"common": {
|
|
|
|
"name": "The day after tomorrow date",
|
|
|
|
"type": "string",
|
|
|
|
"role": "date.forecast.2",
|
|
|
|
"read": true,
|
|
|
|
"write": false,
|
|
|
|
"desc": "The day after tomorrow date as string"
|
|
|
|
},
|
|
|
|
"native": {}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"_id": "forecast.day2.icon",
|
|
|
|
"type": "state",
|
|
|
|
"common": {
|
|
|
|
"name": "Icon for the day after tomorrow",
|
|
|
|
"type": "string",
|
|
|
|
"role": "weather.icon.forecast.2",
|
|
|
|
"read": true,
|
|
|
|
"write": false,
|
|
|
|
"desc": "Path to icon for the day after tomorrow"
|
|
|
|
},
|
|
|
|
"native": {}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"_id": "forecast.day2.state",
|
|
|
|
"type": "state",
|
|
|
|
"common": {
|
|
|
|
"name": "Day after tomorrow state",
|
|
|
|
"type": "string",
|
|
|
|
"role": "weather.state.forecast.2",
|
|
|
|
"read": true,
|
|
|
|
"write": false,
|
|
|
|
"desc": "Description of weather for the day after tomorrow"
|
|
|
|
},
|
|
|
|
"native": {}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"_id": "forecast.day2.temperatureMin",
|
|
|
|
"type": "state",
|
|
|
|
"common": {
|
|
|
|
"name": "Forecast of temperature for the day after tomorrow",
|
|
|
|
"type": "number",
|
|
|
|
"role": "value.temperature.min.forecast.2",
|
|
|
|
"read": true,
|
|
|
|
"write": false,
|
|
|
|
"unit": "°C",
|
|
|
|
"desc": "Forecast of temperature for the day after tomorrow. Minimum value."
|
|
|
|
},
|
|
|
|
"native": {}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"_id": "forecast.day2.temperatureMax",
|
|
|
|
"type": "state",
|
|
|
|
"common": {
|
|
|
|
"name": "Forecast of temperature for the day after tomorrow",
|
|
|
|
"type": "number",
|
|
|
|
"role": "value.temperature.max.forecast.2",
|
|
|
|
"read": true,
|
|
|
|
"write": false,
|
|
|
|
"unit": "°C",
|
|
|
|
"desc": "Forecast of temperature for the day after tomorrow. Maximum value."
|
|
|
|
},
|
|
|
|
"native": {}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"_id": "forecast.day2.precipitation",
|
|
|
|
"type": "state",
|
|
|
|
"common": {
|
|
|
|
"name": "Forecast of precipitation level for the day after tomorrow (rain/snow)",
|
|
|
|
"type": "number",
|
|
|
|
"role": "value.precipitation.forecast.2",
|
|
|
|
"read": true,
|
|
|
|
"write": false,
|
|
|
|
"unit": "mm",
|
|
|
|
"desc": "Forecast for rain or snow level in mm"
|
|
|
|
},
|
|
|
|
"native": {}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"_id": "forecast.day2.windDirection",
|
|
|
|
"type": "state",
|
|
|
|
"common": {
|
|
|
|
"name": "Forecast for wind direction for the day after tomorrow",
|
|
|
|
"type": "string",
|
|
|
|
"role": "weather.direction.wind.forecast.2",
|
|
|
|
"read": true,
|
|
|
|
"write": false,
|
|
|
|
"desc": "Forecast for wind direction as text"
|
|
|
|
},
|
|
|
|
"native": {}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"_id": "forecast.day2.windSpeed",
|
|
|
|
"type": "state",
|
|
|
|
"common": {
|
|
|
|
"name": "Forecast for wind speed for the day after tomorrow",
|
|
|
|
"type": "number",
|
|
|
|
"role": "value.speed.wind.forecast.2",
|
|
|
|
"read": true,
|
|
|
|
"write": false,
|
|
|
|
"unit": "km/h",
|
|
|
|
"desc": "Forecast for wind speed in km/h"
|
|
|
|
},
|
|
|
|
"native": {}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"_id": "forecast.day2.pressure",
|
|
|
|
"type": "state",
|
|
|
|
"common": {
|
|
|
|
"name": "Forecast for pressure for the day after tomorrow",
|
|
|
|
"type": "number",
|
|
|
|
"role": "value.pressure.forecast.2",
|
|
|
|
"read": true,
|
|
|
|
"write": false,
|
|
|
|
"unit": "hPa",
|
|
|
|
"desc": "Forecast for pressure in hPa for the day after tomorrow"
|
|
|
|
},
|
|
|
|
"native": {}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"_id": "forecast.info",
|
|
|
|
"type": "channel",
|
|
|
|
"common": {
|
|
|
|
"name": "forecast links and objects"
|
|
|
|
},
|
|
|
|
"native": {}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"_id": "forecast.info.object",
|
|
|
|
"type": "state",
|
|
|
|
"common": {
|
|
|
|
"type": "object",
|
|
|
|
"name": "forecast table",
|
|
|
|
"role": "weather.table",
|
|
|
|
"read": true,
|
|
|
|
"write": false
|
|
|
|
},
|
|
|
|
"native": {}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"_id": "forecast.info.html",
|
|
|
|
"type": "state",
|
|
|
|
"common": {
|
|
|
|
"type": "string",
|
|
|
|
"name": "forecast html",
|
|
|
|
"role": "weather.html",
|
|
|
|
"read": true,
|
|
|
|
"write": false
|
|
|
|
},
|
|
|
|
"native": {}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"_id": "forecast.info.diagram",
|
|
|
|
"type": "state",
|
|
|
|
"common": {
|
|
|
|
"type": "string",
|
|
|
|
"name": "forecast diagram url",
|
|
|
|
"role": "weather.chart.url.forecast",
|
|
|
|
"read": true,
|
|
|
|
"write": false
|
|
|
|
},
|
|
|
|
"native": {}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|