iobroker.squeezeboxrpc 1.5.1 → 1.5.2

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
@@ -58,7 +58,7 @@ all needed informations or send commands to the server/players.
58
58
  - After installation or update, it may sometimes be necessary\
59
59
  to execute the following command if problems have arisen in vis-1
60
60
 
61
- `iobroker upload squeezeboxpc`
61
+ `iobroker upload squeezeboxrpc`
62
62
 
63
63
  ## Provided states
64
64
 
@@ -581,6 +581,11 @@ are contained in the following CLI documentation:
581
581
  ### **WORK IN PROGRESS**
582
582
 
583
583
  -->
584
+ ### 1.5.2 (2024-12-16)
585
+
586
+ - fix spelling of iobroker upload squeezeboxrpc in readme
587
+ - fix playtime bar
588
+
584
589
  ### 1.5.1 (2024-11-29)
585
590
 
586
591
  - improve documentation
package/io-package.json CHANGED
@@ -1,8 +1,21 @@
1
1
  {
2
2
  "common": {
3
3
  "name": "squeezeboxrpc",
4
- "version": "1.5.1",
4
+ "version": "1.5.2",
5
5
  "news": {
6
+ "1.5.2": {
7
+ "en": "fix spelling of iobroker upload squeezeboxrpc in readme\nfix playtime bar",
8
+ "de": "fix buchstabierung von iobroker laden pressboxrpc in readme\nspielzeitleiste",
9
+ "ru": "фиксация iobroker загрузки сжатиеboxrpc в считывании\nисправить плей-тайм",
10
+ "pt": "correção ortografia de iobroker upload espremedorpc em readme\ncorrigir a barra de playtime",
11
+ "nl": "fix spelling van iobroker upload cleaseboxrpc in readme\nspeelbalk herstellen",
12
+ "fr": "corriger l'orthographe du téléchargement d'iobroker streetboxrpc dans readme\nfixer la barre de temps de jeu",
13
+ "it": "correzione ortografia di iobroker upload spreboxrpc in readme\nfix playtime bar",
14
+ "es": "fijación de la ortografía de iobroker subido apretboxrpc en readme\nbarra de juego",
15
+ "pl": "naprawić pisownię iobroker wysyłania squeezeboxrpc w readme\nnaprawić pasek czasu odtwarzania",
16
+ "uk": "фіксувати заклинання iobroker upload squeezeboxrpc в читме\nфіксувати час гри",
17
+ "zh-cn": "在readme中固定 iobroster 上传压缩盒的拼写\n修复播放时间栏"
18
+ },
6
19
  "1.5.1": {
7
20
  "en": "improve documentation\nremove margin from plcontainer\nimprove textoverflow with ellipsis\nadjust initial widgetsize of playlist widget\nrepair attributes for playlist widget\nadd light mode css for playlist widget",
8
21
  "de": "verbesserung der dokumentation\nentfernen sie den rand von plcontainer\ntextoverflow mit ellipsis verbessern\neinstellen der ersten widgetsize der wiedergabeliste widget\nreparatur-attribute für playlist widget\nlichtmodus css für playlist widget hinzufügen",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "iobroker.squeezeboxrpc",
3
- "version": "1.5.1",
3
+ "version": "1.5.2",
4
4
  "description": "ioBroker Logitech Squeezebox Adapter over JSON/RPC-Protocol",
5
5
  "author": {
6
6
  "name": "oweitman",
@@ -53,7 +53,7 @@
53
53
  var version;
54
54
  var init_package = __esm({
55
55
  "../package.json"() {
56
- version = "1.5.0";
56
+ version = "1.5.1";
57
57
  }
58
58
  });
59
59
 
@@ -1900,14 +1900,18 @@
1900
1900
  }
1901
1901
  const stateid_duration = `${data.ainstance.join(".")}.Players.${playername}.Duration`;
1902
1902
  const stateid_state = `${data.ainstance.join(".")}.Players.${playername}.state`;
1903
+ const stateid_time = `${data.ainstance.join(".")}.Players.${playername}.Time`;
1903
1904
  const state_duration = vis.states[`${stateid_duration}.val`] || vis.states[`${stateid_duration}.val`] === 0 ? parseInt(vis.states[`${stateid_duration}.val`]) : 0;
1904
1905
  const state_state = vis.states[`${stateid_state}.val`] || vis.states[`${stateid_state}.val`] === 0 ? parseInt(vis.states[`${stateid_state}.val`]) : 0;
1905
- let width = state_duration == 0 ? 0 : width;
1906
+ const state_time = vis.states[`${stateid_time}.val`] || vis.states[`${stateid_time}.val`] === 0 ? parseInt(vis.states[`${stateid_time}.val`]) : 0;
1907
+ let width = state_duration == 0 ? 0 : $(`#${widgetID} div.playtimebar`).width();
1906
1908
  if (state_state == 2) {
1907
1909
  width = 0;
1908
1910
  }
1909
1911
  if (vis.editMode) {
1910
1912
  width = 50;
1913
+ } else {
1914
+ width = Math.floor(state_time / state_duration * 100);
1911
1915
  }
1912
1916
  $(`#${widgetID} div.playtimebar`).width(`${width}%`);
1913
1917
  }
@@ -1664,6 +1664,7 @@ vis.binds['squeezeboxrpc'] = {
1664
1664
  }
1665
1665
  const stateid_duration = `${data.ainstance.join('.')}.Players` + `.${playername}.Duration`;
1666
1666
  const stateid_state = `${data.ainstance.join('.')}.Players` + `.${playername}.state`;
1667
+ const stateid_time = `${data.ainstance.join('.')}.Players` + `.${playername}.Time`;
1667
1668
 
1668
1669
  const state_duration =
1669
1670
  vis.states[`${stateid_duration}.val`] || vis.states[`${stateid_duration}.val`] === 0
@@ -1673,12 +1674,19 @@ vis.binds['squeezeboxrpc'] = {
1673
1674
  vis.states[`${stateid_state}.val`] || vis.states[`${stateid_state}.val`] === 0
1674
1675
  ? parseInt(vis.states[`${stateid_state}.val`])
1675
1676
  : 0;
1676
- let width = state_duration == 0 ? 0 : width;
1677
+ const state_time =
1678
+ vis.states[`${stateid_time}.val`] || vis.states[`${stateid_time}.val`] === 0
1679
+ ? parseInt(vis.states[`${stateid_time}.val`])
1680
+ : 0;
1681
+
1682
+ let width = state_duration == 0 ? 0 : $(`#${widgetID} div.playtimebar`).width();
1677
1683
  if (state_state == 2) {
1678
1684
  width = 0;
1679
1685
  } //0 if player stop
1680
1686
  if (vis.editMode) {
1681
1687
  width = 50;
1688
+ } else {
1689
+ width = Math.floor((state_time / state_duration) * 100);
1682
1690
  }
1683
1691
  $(`#${widgetID} div.playtimebar`).width(`${width}%`);
1684
1692
  },