iobroker.nspanel-lovelace-ui 0.2.2 → 0.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -84,6 +84,11 @@ Adapter Community (ioBroker Forum): [Forum](https://forum.iobroker.net/topic/800
84
84
  Placeholder for the next version (at the beginning of the line):
85
85
  ### **WORK IN PROGRESS**
86
86
  -->
87
+ ### 0.2.3 (2025-07-27)
88
+ - (ticaki) openweathermap added as standard weather adapter
89
+ - (ticaki) Some adjustments due to updated firmware
90
+ - (ticaki) Some improvements
91
+
87
92
  ### 0.2.2 (2025-07-19)
88
93
  - (tt-tom17) improved PageQR
89
94
  - (ticaki) BREAKING: alias def changed
@@ -2848,6 +2848,79 @@ class ConfigManager extends import_library.BaseClass {
2848
2848
  }
2849
2849
  ]);
2850
2850
  }
2851
+ } else if (config.weatherEntity.startsWith("openweathermap.") && config.weatherEntity.endsWith(".")) {
2852
+ const instance = config.weatherEntity.split(".")[1];
2853
+ if (pageItems.findIndex((x) => x.modeScr === "favorit") === -1) {
2854
+ pageItems.push({
2855
+ template: "text.openweathermap.favorit",
2856
+ dpInit: `/^openweathermap\\.${instance}.+/`,
2857
+ modeScr: "favorit"
2858
+ });
2859
+ }
2860
+ if (config.weatherAddDefaultItems) {
2861
+ pageItems = pageItems.concat([
2862
+ // Bottom 1 - openweathermap.0. sunset
2863
+ {
2864
+ template: "text.openweathermap.sunriseset",
2865
+ dpInit: `/^openweathermap\\.${instance}\\.forecast\\.current.+/`,
2866
+ modeScr: "bottom"
2867
+ },
2868
+ // Bottom 2 - openweathermap.0. Forecast Day 1
2869
+ {
2870
+ template: "text.openweathermap.bot2values",
2871
+ dpInit: `/^openweathermap\\.${instance}.+?\\.day0/`,
2872
+ modeScr: "bottom"
2873
+ },
2874
+ // Bottom 3 - openweathermap.0. Forecast Day 2
2875
+ {
2876
+ template: "text.openweathermap.bot2values",
2877
+ dpInit: `/^openweathermap\\.${instance}.+?\\.day1/`,
2878
+ modeScr: "bottom"
2879
+ },
2880
+ // Bottom 4 - openweathermap.0. Forecast Day 3
2881
+ {
2882
+ template: "text.openweathermap.bot2values",
2883
+ dpInit: `/^openweathermap\\.${instance}.+?\\.day2/`,
2884
+ modeScr: "bottom"
2885
+ },
2886
+ // Bottom 5 - openweathermap.0. Forecast Day 4
2887
+ {
2888
+ template: "text.openweathermap.bot2values",
2889
+ dpInit: `/^openweathermap\\.${instance}.+?\\.day3/`,
2890
+ modeScr: "bottom"
2891
+ },
2892
+ // Bottom 6 - openweathermap.0. Forecast Day 5
2893
+ {
2894
+ template: "text.openweathermap.bot2values",
2895
+ dpInit: `/^openweathermap\\.${instance}.+?\\.day4/`,
2896
+ modeScr: "bottom"
2897
+ },
2898
+ // Bottom 7 - openweathermap.0. Forecast Day 5
2899
+ {
2900
+ template: "text.openweathermap.bot2values",
2901
+ dpInit: `/^openweathermap\\.${instance}.+?\\.day5/`,
2902
+ modeScr: "bottom"
2903
+ },
2904
+ // Bottom 8 - Windgeschwindigkeit
2905
+ {
2906
+ template: "text.openweathermap.windspeed",
2907
+ dpInit: `/^openweathermap\\.${instance}./`,
2908
+ modeScr: "bottom"
2909
+ },
2910
+ // Bottom 9 - Böen
2911
+ {
2912
+ template: "text.openweathermap.windgust",
2913
+ dpInit: `/^openweathermap\\.${instance}./`,
2914
+ modeScr: "bottom"
2915
+ },
2916
+ // Bottom 10 - Windrichtung
2917
+ {
2918
+ template: "text.openweathermap.winddirection",
2919
+ dpInit: `/^openweathermap\\.${instance}./`,
2920
+ modeScr: "bottom"
2921
+ }
2922
+ ]);
2923
+ }
2851
2924
  }
2852
2925
  }
2853
2926
  if (config.indicatorScreensaverEntity) {
@@ -2944,7 +3017,7 @@ class ConfigManager extends import_library.BaseClass {
2944
3017
  dateFormat: {
2945
3018
  type: "const",
2946
3019
  constVal: {
2947
- local: "de",
3020
+ local: this.adapter.language || "en",
2948
3021
  format
2949
3022
  }
2950
3023
  }