From 21a00854635de2d13ac7ee4898c4b6772c0141c8 Mon Sep 17 00:00:00 2001 From: Michael Zanetti Date: Sat, 28 Oct 2017 21:34:53 +0200 Subject: [PATCH] tune weather interface --- libguh/interfaces/weather.json | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/libguh/interfaces/weather.json b/libguh/interfaces/weather.json index 136754e8..5560ed43 100644 --- a/libguh/interfaces/weather.json +++ b/libguh/interfaces/weather.json @@ -1,8 +1,33 @@ { "states": [ + { + "name": "weatherDescription", + "type": "QString" + }, + { + "name": "weatherCondition", + "type": "QString", + "allowedValues": ["clear-day", "clear-night", "few-clouds-day", "few-clouds-night", "clouds", "overcast", "light-rain", "shower-rain", "thunderstorm", "snow", "fog"] + }, { "name": "temperature", "type": "double" + }, + { + "name": "humidity", + "type": "int" + }, + { + "name": "pressure", + "type": "double" + }, + { + "name": "windSpeed", + "type": "double" + }, + { + "name": "windDirection", + "type": "int" } ] }