Skip to content

Commit

Permalink
[visualcrossing] Initial contribution (openhab#17239)
Browse files Browse the repository at this point in the history
* EVERYTHING

Signed-off-by: Martin Grześlowski <martin.grzeslowski@gmail.com>
Signed-off-by: Patrik Gfeller <patrik.gfeller@proton.me>
  • Loading branch information
magx2 authored and pgfeller committed Sep 29, 2024
1 parent 39b81de commit 96f25f6
Show file tree
Hide file tree
Showing 48 changed files with 9,283 additions and 0 deletions.
1 change: 1 addition & 0 deletions CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
Expand Up @@ -395,6 +395,7 @@
/bundles/org.openhab.binding.verisure/ @jannegpriv
/bundles/org.openhab.binding.vesync/ @dag81
/bundles/org.openhab.binding.vigicrues/ @clinique
/bundles/org.openhab.binding.visualcrossing/ @magx2
/bundles/org.openhab.binding.vitotronic/ @steand
/bundles/org.openhab.binding.vizio/ @mlobstein
/bundles/org.openhab.binding.volvooncall/ @Jamstah
Expand Down
5 changes: 5 additions & 0 deletions bom/openhab-addons/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1971,6 +1971,11 @@
<artifactId>org.openhab.binding.vigicrues</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.openhab.addons.bundles</groupId>
<artifactId>org.openhab.binding.visualcrossing</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.openhab.addons.bundles</groupId>
<artifactId>org.openhab.binding.vitotronic</artifactId>
Expand Down
13 changes: 13 additions & 0 deletions bundles/org.openhab.binding.visualcrossing/NOTICE
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
This content is produced and maintained by the openHAB project.

* Project home: https://www.openhab.org

== Declared Project Licenses

This program and the accompanying materials are made available under the terms
of the Eclipse Public License 2.0 which is available at
https://www.eclipse.org/legal/epl-2.0/.

== Source Code

https://github.com/openhab/openhab-addons
225 changes: 225 additions & 0 deletions bundles/org.openhab.binding.visualcrossing/README.md

Large diffs are not rendered by default.

39 changes: 39 additions & 0 deletions bundles/org.openhab.binding.visualcrossing/docs/Day_01.items
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
// Day01
Group Total_Weather_Data_Day01 "Day T+01" (Total_Weather_Data) [ "Equipment" ]
String Day01_DateTime "Time" (Total_Weather_Data_Day01)["Point"] { channel="visualcrossing:weather:default_config:day01#datetime" }
DateTime Day01_Timestamp "Timestamp" (Total_Weather_Data_Day01)["Point"] { channel="visualcrossing:weather:default_config:day01#timestamp" }
Number:Temperature Day01_Temperature "Temperature" (Total_Weather_Data_Day01)["Point"] { channel="visualcrossing:weather:default_config:day01#temperature" }
Number:Temperature Day01_Temperature_Min "Minimum Temperature" (Total_Weather_Data_Day01)["Point"] { channel="visualcrossing:weather:default_config:day01#temperature-min" }
Number:Temperature Day01_Temperature_Max "Maximum Temperature" (Total_Weather_Data_Day01)["Point"] { channel="visualcrossing:weather:default_config:day01#temperature-max" }
Number:Temperature Day01_FeelsLike "Feels Like" (Total_Weather_Data_Day01)["Point"] { channel="visualcrossing:weather:default_config:day01#feels-like" }
Number:Temperature Day01_FeelsLike_Min "Feels Like (min)" (Total_Weather_Data_Day01)["Point"] { channel="visualcrossing:weather:default_config:day01#feels-like-min" }
Number:Temperature Day01_FeelsLike_Max "Feels Like (max)" (Total_Weather_Data_Day01)["Point"] { channel="visualcrossing:weather:default_config:day01#feels-like-max" }
Number:Temperature Day01_Dew "Dew Point" (Total_Weather_Data_Day01)["Point"] { channel="visualcrossing:weather:default_config:day01#dew" }
Number Day01_Humidity "Humidity" (Total_Weather_Data_Day01)["Point"] { channel="visualcrossing:weather:default_config:day01#humidity" }
Number:Length Day01_Precip "Precipitation" (Total_Weather_Data_Day01)["Point"] { channel="visualcrossing:weather:default_config:day01#precip" }
Number Day01_Precip_Prob "Precipitation Probability" (Total_Weather_Data_Day01)["Point"] { channel="visualcrossing:weather:default_config:day01#precip-prob" }
String Day01_Precip_Type "Precipitation Type" (Total_Weather_Data_Day01)["Point"] { channel="visualcrossing:weather:default_config:day01#precip-type" }
Number Day01_Precip_Cover "Precipitation Cover" (Total_Weather_Data_Day01)["Point"] { channel="visualcrossing:weather:default_config:day01#precip-cover" }
Number:Length Day01_Snow "Snow" (Total_Weather_Data_Day01)["Point"] { channel="visualcrossing:weather:default_config:day01#snow" }
Number:Length Day01_Snow_Depth "Snow Depth" (Total_Weather_Data_Day01)["Point"] { channel="visualcrossing:weather:default_config:day01#snow-depth" }
Number:Speed Day01_Wind_Gust "Wind Gust" (Total_Weather_Data_Day01)["Point"] { channel="visualcrossing:weather:default_config:day01#wind-gust" }
Number:Speed Day01_Wind_Speed "Wind Speed" (Total_Weather_Data_Day01)["Point"] { channel="visualcrossing:weather:default_config:day01#wind-speed" }
Number:Angle Day01_Wind_Dir "Wind Direction" (Total_Weather_Data_Day01)["Point"] { channel="visualcrossing:weather:default_config:day01#wind-dir" }
Number:Pressure Day01_Pressure "Pressure" (Total_Weather_Data_Day01)["Point"] { channel="visualcrossing:weather:default_config:day01#pressure" }
Number Day01_Cloud_Cover "Cloud Cover" (Total_Weather_Data_Day01)["Point"] { channel="visualcrossing:weather:default_config:day01#cloud-cover" }
Number:Length Day01_Visibility "Visibility" (Total_Weather_Data_Day01)["Point"] { channel="visualcrossing:weather:default_config:day01#visibility" }
Number:Intensity Day01_Solar_Radiation "Solar Radiation" (Total_Weather_Data_Day01)["Point"] { channel="visualcrossing:weather:default_config:day01#solar-radiation" }
Number Day01_Solar_Energy "Solar Energy" (Total_Weather_Data_Day01)["Point"] { channel="visualcrossing:weather:default_config:day01#solar-energy" }
Number Day01_UV_Index "UV Index" (Total_Weather_Data_Day01)["Point"] { channel="visualcrossing:weather:default_config:day01#uv-index" }
String Day01_Sunrise "Sunrise" (Total_Weather_Data_Day01)["Point"] { channel="visualcrossing:weather:default_config:day01#sunrise" }
DateTime Day01_Sunrise_Epoch "Sunrise Epoch" (Total_Weather_Data_Day01)["Point"] { channel="visualcrossing:weather:default_config:day01#sunrise-epoch" }
String Day01_Sunset "Sunset" (Total_Weather_Data_Day01)["Point"] { channel="visualcrossing:weather:default_config:day01#sunset" }
DateTime Day01_Sunset_Epoch "Sunset Epoch" (Total_Weather_Data_Day01)["Point"] { channel="visualcrossing:weather:default_config:day01#sunset-epoch" }
Number Day01_Moon_Phase "Moon Phase" (Total_Weather_Data_Day01)["Point"] { channel="visualcrossing:weather:default_config:day01#moon-phase" }
String Day01_Conditions "Conditions" (Total_Weather_Data_Day01)["Point"] { channel="visualcrossing:weather:default_config:day01#conditions" }
String Day01_Description "Description" (Total_Weather_Data_Day01)["Point"] { channel="visualcrossing:weather:default_config:day01#description" }
String Day01_Icon "Icon" (Total_Weather_Data_Day01)["Point"] { channel="visualcrossing:weather:default_config:day01#icon" }
String Day01_Stations "Stations" (Total_Weather_Data_Day01)["Point"] { channel="visualcrossing:weather:default_config:day01#stations" }
String Day01_Source "Source" (Total_Weather_Data_Day01)["Point"] { channel="visualcrossing:weather:default_config:day01#source" }
Number Day01_Severe_Risk "Severe Risk" (Total_Weather_Data_Day01)["Point"] { channel="visualcrossing:weather:default_config:day01#severe-risk" }

39 changes: 39 additions & 0 deletions bundles/org.openhab.binding.visualcrossing/docs/Day_02.items
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
// Day02
Group Total_Weather_Data_Day02 "Day T+02" (Total_Weather_Data) [ "Equipment" ]
String Day02_DateTime "Time" (Total_Weather_Data_Day02)["Point"] { channel="visualcrossing:weather:default_config:day01#datetime" }
DateTime Day02_Timestamp "Timestamp" (Total_Weather_Data_Day02)["Point"] { channel="visualcrossing:weather:default_config:day01#timestamp" }
Number:Temperature Day02_Temperature "Temperature" (Total_Weather_Data_Day02)["Point"] { channel="visualcrossing:weather:default_config:day01#temperature" }
Number:Temperature Day02_Temperature_Min "Minimum Temperature" (Total_Weather_Data_Day02)["Point"] { channel="visualcrossing:weather:default_config:day01#temperature-min" }
Number:Temperature Day02_Temperature_Max "Maximum Temperature" (Total_Weather_Data_Day02)["Point"] { channel="visualcrossing:weather:default_config:day01#temperature-max" }
Number:Temperature Day02_FeelsLike "Feels Like" (Total_Weather_Data_Day02)["Point"] { channel="visualcrossing:weather:default_config:day01#feels-like" }
Number:Temperature Day02_FeelsLike_Min "Feels Like (min)" (Total_Weather_Data_Day02)["Point"] { channel="visualcrossing:weather:default_config:day01#feels-like-min" }
Number:Temperature Day02_FeelsLike_Max "Feels Like (max)" (Total_Weather_Data_Day02)["Point"] { channel="visualcrossing:weather:default_config:day01#feels-like-max" }
Number:Temperature Day02_Dew "Dew Point" (Total_Weather_Data_Day02)["Point"] { channel="visualcrossing:weather:default_config:day01#dew" }
Number Day02_Humidity "Humidity" (Total_Weather_Data_Day02)["Point"] { channel="visualcrossing:weather:default_config:day01#humidity" }
Number:Length Day02_Precip "Precipitation" (Total_Weather_Data_Day02)["Point"] { channel="visualcrossing:weather:default_config:day01#precip" }
Number Day02_Precip_Prob "Precipitation Probability" (Total_Weather_Data_Day02)["Point"] { channel="visualcrossing:weather:default_config:day01#precip-prob" }
String Day02_Precip_Type "Precipitation Type" (Total_Weather_Data_Day02)["Point"] { channel="visualcrossing:weather:default_config:day01#precip-type" }
Number Day02_Precip_Cover "Precipitation Cover" (Total_Weather_Data_Day02)["Point"] { channel="visualcrossing:weather:default_config:day01#precip-cover" }
Number:Length Day02_Snow "Snow" (Total_Weather_Data_Day02)["Point"] { channel="visualcrossing:weather:default_config:day01#snow" }
Number:Length Day02_Snow_Depth "Snow Depth" (Total_Weather_Data_Day02)["Point"] { channel="visualcrossing:weather:default_config:day01#snow-depth" }
Number:Speed Day02_Wind_Gust "Wind Gust" (Total_Weather_Data_Day02)["Point"] { channel="visualcrossing:weather:default_config:day01#wind-gust" }
Number:Speed Day02_Wind_Speed "Wind Speed" (Total_Weather_Data_Day02)["Point"] { channel="visualcrossing:weather:default_config:day01#wind-speed" }
Number:Angle Day02_Wind_Dir "Wind Direction" (Total_Weather_Data_Day02)["Point"] { channel="visualcrossing:weather:default_config:day01#wind-dir" }
Number:Pressure Day02_Pressure "Pressure" (Total_Weather_Data_Day02)["Point"] { channel="visualcrossing:weather:default_config:day01#pressure" }
Number Day02_Cloud_Cover "Cloud Cover" (Total_Weather_Data_Day02)["Point"] { channel="visualcrossing:weather:default_config:day01#cloud-cover" }
Number:Length Day02_Visibility "Visibility" (Total_Weather_Data_Day02)["Point"] { channel="visualcrossing:weather:default_config:day01#visibility" }
Number:Intensity Day02_Solar_Radiation "Solar Radiation" (Total_Weather_Data_Day02)["Point"] { channel="visualcrossing:weather:default_config:day01#solar-radiation" }
Number Day02_Solar_Energy "Solar Energy" (Total_Weather_Data_Day02)["Point"] { channel="visualcrossing:weather:default_config:day01#solar-energy" }
Number Day02_UV_Index "UV Index" (Total_Weather_Data_Day02)["Point"] { channel="visualcrossing:weather:default_config:day01#uv-index" }
String Day02_Sunrise "Sunrise" (Total_Weather_Data_Day02)["Point"] { channel="visualcrossing:weather:default_config:day01#sunrise" }
DateTime Day02_Sunrise_Epoch "Sunrise Epoch" (Total_Weather_Data_Day02)["Point"] { channel="visualcrossing:weather:default_config:day01#sunrise-epoch" }
String Day02_Sunset "Sunset" (Total_Weather_Data_Day02)["Point"] { channel="visualcrossing:weather:default_config:day01#sunset" }
DateTime Day02_Sunset_Epoch "Sunset Epoch" (Total_Weather_Data_Day02)["Point"] { channel="visualcrossing:weather:default_config:day01#sunset-epoch" }
Number Day02_Moon_Phase "Moon Phase" (Total_Weather_Data_Day02)["Point"] { channel="visualcrossing:weather:default_config:day01#moon-phase" }
String Day02_Conditions "Conditions" (Total_Weather_Data_Day02)["Point"] { channel="visualcrossing:weather:default_config:day01#conditions" }
String Day02_Description "Description" (Total_Weather_Data_Day02)["Point"] { channel="visualcrossing:weather:default_config:day01#description" }
String Day02_Icon "Icon" (Total_Weather_Data_Day02)["Point"] { channel="visualcrossing:weather:default_config:day01#icon" }
String Day02_Stations "Stations" (Total_Weather_Data_Day02)["Point"] { channel="visualcrossing:weather:default_config:day01#stations" }
String Day02_Source "Source" (Total_Weather_Data_Day02)["Point"] { channel="visualcrossing:weather:default_config:day01#source" }
Number Day02_Severe_Risk "Severe Risk" (Total_Weather_Data_Day02)["Point"] { channel="visualcrossing:weather:default_config:day01#severe-risk" }

39 changes: 39 additions & 0 deletions bundles/org.openhab.binding.visualcrossing/docs/Day_03.items
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
// Day03
Group Total_Weather_Data_Day03 "Day T+03" (Total_Weather_Data) [ "Equipment" ]
String Day03_DateTime "Time" (Total_Weather_Data_Day03)["Point"] { channel="visualcrossing:weather:default_config:day01#datetime" }
DateTime Day03_Timestamp "Timestamp" (Total_Weather_Data_Day03)["Point"] { channel="visualcrossing:weather:default_config:day01#timestamp" }
Number:Temperature Day03_Temperature "Temperature" (Total_Weather_Data_Day03)["Point"] { channel="visualcrossing:weather:default_config:day01#temperature" }
Number:Temperature Day03_Temperature_Min "Minimum Temperature" (Total_Weather_Data_Day03)["Point"] { channel="visualcrossing:weather:default_config:day01#temperature-min" }
Number:Temperature Day03_Temperature_Max "Maximum Temperature" (Total_Weather_Data_Day03)["Point"] { channel="visualcrossing:weather:default_config:day01#temperature-max" }
Number:Temperature Day03_FeelsLike "Feels Like" (Total_Weather_Data_Day03)["Point"] { channel="visualcrossing:weather:default_config:day01#feels-like" }
Number:Temperature Day03_FeelsLike_Min "Feels Like (min)" (Total_Weather_Data_Day03)["Point"] { channel="visualcrossing:weather:default_config:day01#feels-like-min" }
Number:Temperature Day03_FeelsLike_Max "Feels Like (max)" (Total_Weather_Data_Day03)["Point"] { channel="visualcrossing:weather:default_config:day01#feels-like-max" }
Number:Temperature Day03_Dew "Dew Point" (Total_Weather_Data_Day03)["Point"] { channel="visualcrossing:weather:default_config:day01#dew" }
Number Day03_Humidity "Humidity" (Total_Weather_Data_Day03)["Point"] { channel="visualcrossing:weather:default_config:day01#humidity" }
Number:Length Day03_Precip "Precipitation" (Total_Weather_Data_Day03)["Point"] { channel="visualcrossing:weather:default_config:day01#precip" }
Number Day03_Precip_Prob "Precipitation Probability" (Total_Weather_Data_Day03)["Point"] { channel="visualcrossing:weather:default_config:day01#precip-prob" }
String Day03_Precip_Type "Precipitation Type" (Total_Weather_Data_Day03)["Point"] { channel="visualcrossing:weather:default_config:day01#precip-type" }
Number Day03_Precip_Cover "Precipitation Cover" (Total_Weather_Data_Day03)["Point"] { channel="visualcrossing:weather:default_config:day01#precip-cover" }
Number:Length Day03_Snow "Snow" (Total_Weather_Data_Day03)["Point"] { channel="visualcrossing:weather:default_config:day01#snow" }
Number:Length Day03_Snow_Depth "Snow Depth" (Total_Weather_Data_Day03)["Point"] { channel="visualcrossing:weather:default_config:day01#snow-depth" }
Number:Speed Day03_Wind_Gust "Wind Gust" (Total_Weather_Data_Day03)["Point"] { channel="visualcrossing:weather:default_config:day01#wind-gust" }
Number:Speed Day03_Wind_Speed "Wind Speed" (Total_Weather_Data_Day03)["Point"] { channel="visualcrossing:weather:default_config:day01#wind-speed" }
Number:Angle Day03_Wind_Dir "Wind Direction" (Total_Weather_Data_Day03)["Point"] { channel="visualcrossing:weather:default_config:day01#wind-dir" }
Number:Pressure Day03_Pressure "Pressure" (Total_Weather_Data_Day03)["Point"] { channel="visualcrossing:weather:default_config:day01#pressure" }
Number Day03_Cloud_Cover "Cloud Cover" (Total_Weather_Data_Day03)["Point"] { channel="visualcrossing:weather:default_config:day01#cloud-cover" }
Number:Length Day03_Visibility "Visibility" (Total_Weather_Data_Day03)["Point"] { channel="visualcrossing:weather:default_config:day01#visibility" }
Number:Intensity Day03_Solar_Radiation "Solar Radiation" (Total_Weather_Data_Day03)["Point"] { channel="visualcrossing:weather:default_config:day01#solar-radiation" }
Number Day03_Solar_Energy "Solar Energy" (Total_Weather_Data_Day03)["Point"] { channel="visualcrossing:weather:default_config:day01#solar-energy" }
Number Day03_UV_Index "UV Index" (Total_Weather_Data_Day03)["Point"] { channel="visualcrossing:weather:default_config:day01#uv-index" }
String Day03_Sunrise "Sunrise" (Total_Weather_Data_Day03)["Point"] { channel="visualcrossing:weather:default_config:day01#sunrise" }
DateTime Day03_Sunrise_Epoch "Sunrise Epoch" (Total_Weather_Data_Day03)["Point"] { channel="visualcrossing:weather:default_config:day01#sunrise-epoch" }
String Day03_Sunset "Sunset" (Total_Weather_Data_Day03)["Point"] { channel="visualcrossing:weather:default_config:day01#sunset" }
DateTime Day03_Sunset_Epoch "Sunset Epoch" (Total_Weather_Data_Day03)["Point"] { channel="visualcrossing:weather:default_config:day01#sunset-epoch" }
Number Day03_Moon_Phase "Moon Phase" (Total_Weather_Data_Day03)["Point"] { channel="visualcrossing:weather:default_config:day01#moon-phase" }
String Day03_Conditions "Conditions" (Total_Weather_Data_Day03)["Point"] { channel="visualcrossing:weather:default_config:day01#conditions" }
String Day03_Description "Description" (Total_Weather_Data_Day03)["Point"] { channel="visualcrossing:weather:default_config:day01#description" }
String Day03_Icon "Icon" (Total_Weather_Data_Day03)["Point"] { channel="visualcrossing:weather:default_config:day01#icon" }
String Day03_Stations "Stations" (Total_Weather_Data_Day03)["Point"] { channel="visualcrossing:weather:default_config:day01#stations" }
String Day03_Source "Source" (Total_Weather_Data_Day03)["Point"] { channel="visualcrossing:weather:default_config:day01#source" }
Number Day03_Severe_Risk "Severe Risk" (Total_Weather_Data_Day03)["Point"] { channel="visualcrossing:weather:default_config:day01#severe-risk" }

Loading

0 comments on commit 96f25f6

Please sign in to comment.