iobroker.squeezeboxrpc 1.3.4 → 1.3.8

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.
@@ -0,0 +1,24 @@
1
+ # Automatically merge Dependabot PRs when version comparison is within the range
2
+ # that is configured in .github/auto-merge.yml
3
+
4
+ name: Auto-Merge Dependabot PRs
5
+
6
+ on:
7
+ # WARNING: This needs to be run in the PR base, DO NOT build untrusted code in this action
8
+ # details under https://github.blog/changelog/2021-02-19-github-actions-workflows-triggered-by-dependabot-prs-will-run-with-read-only-permissions/
9
+ pull_request_target:
10
+
11
+ jobs:
12
+ auto-merge:
13
+ if: github.actor == 'dependabot[bot]' || github.actor == 'dependabot-preview[bot]'
14
+ runs-on: ubuntu-latest
15
+ steps:
16
+ - name: Checkout code
17
+ uses: actions/checkout@v2
18
+
19
+ - name: Check if PR should be auto-merged
20
+ uses: ahmadnassri/action-dependabot-auto-merge@v2
21
+ with:
22
+ github-token: ${{ secrets.DEPENDABOT_SECRET }}
23
+ # By default, squash and merge, so Github chooses nice commit messages
24
+ command: squash and merge
package/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2019-2020 oweitman
3
+ Copyright (c) 2019-2021 oweitman
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
package/README.md CHANGED
@@ -183,6 +183,22 @@ https://github.com/elParaguayo/LMS-CLI-Documentation/blob/master/LMS-CLI.md
183
183
 
184
184
  ## Changelog
185
185
 
186
+ ### 1.3.8
187
+ * fix forward button widget
188
+ ### 1.3.7
189
+ * fix object creation of states in player modul
190
+ ### 1.3.6
191
+ * fix object creation of states
192
+ ### 1.3.5
193
+ * fix object creation for favorites
194
+ ### 1.3.4
195
+ * fix object creation for favorites / * center widgets in sidebar
196
+ ### 1.3.3
197
+ * repair imageproxy for image datapoints of favorites
198
+ ### 1.3.2
199
+ * fix for Alarm contains only enabled Alarms
200
+ ### 1.3.1
201
+ * fix problem with git dependency url
186
202
  ### 1.3.0
187
203
  * fix problem wit setting own icon in player widget / * add infos about alarms to a player datapoint
188
204
  ### 1.2.1
@@ -287,8 +303,6 @@ https://github.com/elParaguayo/LMS-CLI-Documentation/blob/master/LMS-CLI.md
287
303
  ## License
288
304
  MIT License
289
305
 
290
- Copyright (c) 2019-2020 oweitman
291
-
292
306
  Permission is hereby granted, free of charge, to any person obtaining a copy
293
307
  of this software and associated documentation files (the "Software"), to deal
294
308
  in the Software without restriction, including without limitation the rights
@@ -306,3 +320,5 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
306
320
  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
307
321
  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
308
322
  SOFTWARE.
323
+
324
+ Copyright (c) 2019-2021 oweitman
package/io-package.json CHANGED
@@ -1,8 +1,20 @@
1
1
  {
2
2
  "common": {
3
3
  "name": "squeezeboxrpc",
4
- "version": "1.3.4",
4
+ "version": "1.3.8",
5
5
  "news": {
6
+ "1.3.8": {
7
+ "en": "* fix object forward btn widget"
8
+ },
9
+ "1.3.7": {
10
+ "en": "* fix object creation of states in player modul"
11
+ },
12
+ "1.3.6": {
13
+ "en": "* fix object creation of states"
14
+ },
15
+ "1.3.5": {
16
+ "en": "* fix object creation for favorites"
17
+ },
6
18
  "1.3.4": {
7
19
  "en": "* fix object creation for favorites / * center widgets in sidebar"
8
20
  },
@@ -17,40 +29,9 @@
17
29
  },
18
30
  "1.3.0": {
19
31
  "en": "* fix problem wit setting own icon in player widget / * add infos about alarms to a player datapoint"
20
- },
21
- "1.2.1": {
22
- "en": "* fix small issues in last version"
23
- },
24
- "1.2.0": {
25
- "en": "* improve handling of imageproxy artwork"
26
- },
27
- "1.1.0": {
28
- "en": "* make request of favorites configurable"
29
- },
30
- "1.0.1": {
31
- "en": " * change setstate/createobject logic * fix role and type for Mode-state * update tests * update dependency versions * improve io-package.json"
32
- },
33
- "1.0.0": {
34
- "en": "prepare for stable repository"
35
- },
36
- "0.8.32": {
37
- "en": "the adapter function iobroker.deleteChannel didnt works as expected. it didnt delete the whole subtree of states. now i implement my own delete function"
38
- },
39
- "0.8.31": {
40
- "en": "change behaviour of deleting favorites"
41
- },
42
- "0.8.30": {
43
- "en": "change from the issue of the adapter checker"
44
- },
45
- "0.8.29": {
46
- "en": "optimize handling of player state power and connected"
47
- },
48
- "0.8.28": {
49
- "en": "add advanced signaling function with telnet and fix some more authorization issues with LMS"
50
32
  }
51
33
  },
52
34
  "title": "SqueezeboxRPC: Controller for Logitech media Server over RPC-protokol",
53
- "desc": "SqueezeboxRPC: Controller for Logitech media Server over RPC-protokol",
54
35
  "desc": {
55
36
  "en": "SqueezeboxRPC: Controller for Logitech media Server over RPC-protokol",
56
37
  "de": "SqueezeboxRPC: Controller for Logitech media Server over RPC-protokol",
@@ -84,6 +65,8 @@
84
65
  "type": "multimedia",
85
66
  "compact": true,
86
67
  "materialize": true,
68
+ "connectionType":"local",
69
+ "dataSource":"poll",
87
70
  "restartAdapters": [
88
71
  "vis"
89
72
  ],
package/lib/iosbplayer.js CHANGED
@@ -70,7 +70,7 @@ function ioSBPlayer(server,playerdata) {
70
70
  name: 'Mode',
71
71
  read: true,
72
72
  write: false,
73
- type: 'number',
73
+ type: 'string',
74
74
  role: 'media.state',
75
75
  exist: false
76
76
  },
package/lib/iosbserver.js CHANGED
@@ -13,7 +13,7 @@ function IoSbServer(adapter) {
13
13
  name: 'LastScan',
14
14
  read: true,
15
15
  write: false,
16
- type: 'number',
16
+ type: 'string',
17
17
  role: 'value',
18
18
  exist: false
19
19
  },
@@ -167,7 +167,7 @@ function IoSbServer(adapter) {
167
167
  name: 'hasitems',
168
168
  read: true,
169
169
  write: false,
170
- type: 'string',
170
+ type: 'number',
171
171
  role: 'value',
172
172
  exist: false
173
173
  },
@@ -175,7 +175,7 @@ function IoSbServer(adapter) {
175
175
  name: 'url',
176
176
  read: true,
177
177
  write: false,
178
- type: 'number',
178
+ type: 'string',
179
179
  role: 'media.url',
180
180
  exist: false
181
181
  },
@@ -403,7 +403,6 @@ function IoSbServer(adapter) {
403
403
  if (this.adapter.config.usediscovery) this.doDiscoverServerClose();
404
404
  }
405
405
  this.getServerstatus = function() {
406
-
407
406
  this.log.silly('getServerstatus');
408
407
  this.request('',['serverstatus', '0', '888'], this.doServerstatus.bind(this));
409
408
  this.request('',['syncgroups', '?'], this.doSyncgroups.bind(this));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "iobroker.squeezeboxrpc",
3
- "version": "1.3.4",
3
+ "version": "1.3.8",
4
4
  "description": "ioBroker Logitech Squeezebox Adapter over JSON/RPC-Protocol",
5
5
  "author": {
6
6
  "name": "oweitman",
@@ -31,7 +31,7 @@
31
31
  "@types/proxyquire": "^1.3.28",
32
32
  "@types/sinon": "^9.0.0",
33
33
  "@types/sinon-chai": "^3.2.4",
34
- "axios": "^0.19.2",
34
+ "axios": "^0.21.1",
35
35
  "chai": "^4.2.0",
36
36
  "chai-as-promised": "^7.1.1",
37
37
  "eslint": "^6.8.0",
@@ -358,6 +358,7 @@ Text oder HTML-Code, der der Zahl angehängt wird.
358
358
  Text, der im Editor testweise angezeigt werden soll
359
359
  <h5>Multiplikation - Erweiterte Einstellungen</h5>
360
360
  Multiplikation des zugrundeliegenden Wertes, um auf Millisekunden zu kommen.
361
+ Da die Zeit in den Datenpunkten bei LMS meist in Sekunden angegeben sind, sollte der Wert hier 1000 betragen.
361
362
  <h5>Format - Erweiterte Einstellungen</h5>
362
363
  Zeichenkette um das Ergebnis entsprechend zu formatieren.
363
364
  alle Formatangaben vgl. <a href="https://github.com/jacwright/date.format">Github date.format.js</a><br>
@@ -335,6 +335,8 @@ vis.binds["squeezeboxrpc"] = {
335
335
  if (!data.viewindex || data.viewindex.trim() == "") {
336
336
  data.viewindex = this.getViewindex(players).join(", ");
337
337
  }
338
+
339
+ data.defaultPlayer = data.defaultPlayer || Object.keys(players)[0] || "0";
338
340
 
339
341
  if (vis.editMode && data.bCount != Math.min(players.length,data.viewindex.split(',').length)) {
340
342
  data.bCount = Math.min(players.length,data.viewindex.split(',').length);
@@ -415,7 +417,7 @@ vis.binds["squeezeboxrpc"] = {
415
417
 
416
418
  for (var i = 0; i < viewindex.length;i++) {
417
419
  text += ' <div >';
418
- text += ' <input type="radio" id="'+ widgetID + players[viewindex[i]] +'" name="'+widgetID+'" value="' + players[viewindex[i]] + '" >';
420
+ text += ' <input type="radio" id="'+ widgetID + players[viewindex[i]] +'" name="'+widgetID+'" value="' + players[viewindex[i]] + '" '+ (viewindex[i]==data.defaultPlayer?"checked":"")+'>';
419
421
  text += ' <label for="'+ widgetID + players[viewindex[i]] + '">';
420
422
  text += ' <span>';
421
423
  var buttonsImage = (data['buttonsImage'+(parseInt(viewindex[i])+1)]) || '';
@@ -671,7 +673,7 @@ vis.binds["squeezeboxrpc"] = {
671
673
  var data = event.data.data;
672
674
  var self = event.data.self;
673
675
  var playername = vis.binds["squeezeboxrpc"].getPlayerName(data.widgetPlayer);
674
- var stateid = data.ainstance.join('.')+".Players"+"."+playername+".btnRewind";
676
+ var stateid = data.ainstance.join('.')+".Players"+"."+playername+".btnForward";
675
677
  var state = true
676
678
  vis.setValue(stateid,state);
677
679
  },
@@ -16,12 +16,12 @@
16
16
  type="text/ejs"
17
17
  class="vis-tpl"
18
18
  data-vis-prev='<img style="display: block;margin-left: auto;margin-right: auto;width: 50%;" src="widgets/squeezeboxrpc/img/players.png"></img>'
19
- data-vis-attrs="ainstance/id;formattype[formatbutton]/select,,formatbutton,formatselect;viewindex//checkViewIndex;wrapcamelcase[true]/checkbox;bCount/hidden;editmodehelper[true]/checkbox;"
19
+ data-vis-attrs="ainstance/id;formattype[formatbutton]/select,,formatbutton,formatselect;viewindex//checkViewIndex;defaultPlayer:wrapcamelcase[true]/checkbox;bCount/hidden;editmodehelper[true]/checkbox;"
20
20
  data-vis-attrs0="group.buttonsettings;picWidth[50]/number;picHeight[50]/number;opacity[0.5]/slider,0,1,0.05;borderwidth[2px]/number/editDimension;borderstyle[solid]/nselect,,none,hidden,dotted,dashed,solid,double,groove,ridge,inset,outset,initial,inherit;bordercolornormal[#2e2e2e]/color;bordercoloractive[#87ceeb]/color;borderradius[5px]/number/editDimension;buttonbkcolor[#000000]/color;buttonmargin[0px]/number/editDimension;"
21
21
  data-vis-attrs1="group.buttons/byindex;buttonsImage(1-bCount)/image;buttonsText(1-bCount);"
22
22
  data-vis-set="squeezeboxrpc"
23
23
  data-vis-type="val"
24
- data-vis-beta="true"
24
+ data-vis-beta="false"
25
25
  data-vis-update-style="false"
26
26
  data-vis-name="Players">
27
27
  <div class="vis-widget <%== this.data.attr('class') %>" style="overflow:visible; width: 230px; height: 210px" id="<%= this.data.attr('wid') %>"><%
@@ -37,7 +37,7 @@
37
37
  data-vis-attrs1="group.buttons/byindex;buttonsImage(1-bCount)/image;buttonsText(1-bCount);"
38
38
  data-vis-set="squeezeboxrpc"
39
39
  data-vis-type="val"
40
- data-vis-beta="true"
40
+ data-vis-beta="false"
41
41
  data-vis-update-style="true"
42
42
  data-vis-name="Favorites">
43
43
  <div class="vis-widget <%== this.data.attr('class') %>" style="overflow:visible; width: 230px; height: 210px" id="<%= this.data.attr('wid') %>"><%
@@ -52,7 +52,7 @@
52
52
  data-vis-attrs0="group.svgsettings;fillcolor/color;strokecolor/color;strokewidth/number;"
53
53
  data-vis-set="squeezeboxrpc"
54
54
  data-vis-type="val"
55
- data-vis-beta="true"
55
+ data-vis-beta="false"
56
56
  data-vis-update-style="true"
57
57
  data-vis-name="Play Button">
58
58
  <div class="vis-widget <%== this.data.attr('class') %>" style="overflow:visible; width: 50px; height: 50px" id="<%= this.data.attr('wid') %>"><%
@@ -67,7 +67,7 @@
67
67
  data-vis-attrs0="group.svgsettings;fillcolor/color;strokecolor/color;strokewidth/number;"
68
68
  data-vis-set="squeezeboxrpc"
69
69
  data-vis-type="val"
70
- data-vis-beta="true"
70
+ data-vis-beta="false"
71
71
  data-vis-update-style="true"
72
72
  data-vis-name="Fwd Button">
73
73
  <div class="vis-widget <%== this.data.attr('class') %>" style="overflow:visible; width: 50px; height: 50px" id="<%= this.data.attr('wid') %>"><%
@@ -82,7 +82,7 @@
82
82
  data-vis-attrs0="group.svgsettings;fillcolor/color;strokecolor/color;strokewidth/number;"
83
83
  data-vis-set="squeezeboxrpc"
84
84
  data-vis-type="val"
85
- data-vis-beta="true"
85
+ data-vis-beta="false"
86
86
  data-vis-update-style="true"
87
87
  data-vis-name="Rew Button">
88
88
  <div class="vis-widget <%== this.data.attr('class') %>" style="overflow:visible; width: 50px; height: 50px" id="<%= this.data.attr('wid') %>"><%
@@ -97,7 +97,7 @@
97
97
  data-vis-attrs0="group.svgsettings;fillcolor/color;strokecolor/color;strokewidth/number;"
98
98
  data-vis-set="squeezeboxrpc"
99
99
  data-vis-type="val"
100
- data-vis-beta="true"
100
+ data-vis-beta="false"
101
101
  data-vis-update-style="true"
102
102
  data-vis-name="Repeat Button">
103
103
  <div class="vis-widget <%== this.data.attr('class') %>" style="overflow:visible; width: 50px; height: 50px" id="<%= this.data.attr('wid') %>"><%
@@ -112,7 +112,7 @@
112
112
  data-vis-attrs0="group.svgsettings;fillcolor/color;strokecolor/color;strokewidth/number;"
113
113
  data-vis-set="squeezeboxrpc"
114
114
  data-vis-type="val"
115
- data-vis-beta="true"
115
+ data-vis-beta="false"
116
116
  data-vis-update-style="true"
117
117
  data-vis-name="Shuffle Button">
118
118
  <div class="vis-widget <%== this.data.attr('class') %>" style="overflow:visible; width: 50px; height: 50px" id="<%= this.data.attr('wid') %>"><%
@@ -127,7 +127,7 @@
127
127
  data-vis-attrs0="group.segmentsettings;fillcolornormal[#005000]/color;fillcoloractive[#00ff00]/color;bordercolornormal/color;bordercoloractive/color;margin[1px];borderwidth[1px];"
128
128
  data-vis-set="squeezeboxrpc"
129
129
  data-vis-type="val"
130
- data-vis-beta="true"
130
+ data-vis-beta="false"
131
131
  data-vis-update-style="true"
132
132
  data-vis-name="Volume Bar">
133
133
  <div class="vis-widget <%== this.data.attr('class') %>" style="overflow:visible; width: 20px; height: 100px" id="<%= this.data.attr('wid') %>"><%
@@ -142,7 +142,7 @@
142
142
  data-vis-attrs0="group.buttonsettings;borderwidth[2px]/number/editDimension;borderstyle[solid]/nselect,,none,hidden,dotted,dashed,solid,double,groove,ridge,inset,outset,initial,inherit;bordercolornogroup[#2e2e2e]/color;bordercolorowngroup[#87ceeb]/color;bordercolorothergroup[#ff0080]/color;borderradius[5px]/number/editDimension;buttonbkcolor[#000000]/color;buttonmargin[0px]/number/editDimension;"
143
143
  data-vis-set="squeezeboxrpc"
144
144
  data-vis-type="val"
145
- data-vis-beta="true"
145
+ data-vis-beta="false"
146
146
  data-vis-update-style="true"
147
147
  data-vis-name="Syncgroup Widget">
148
148
  <div class="vis-widget <%== this.data.attr('class') %>" style="overflow:visible; width: 230px; height: 210px" id="<%= this.data.attr('wid') %>"><%
@@ -156,7 +156,7 @@
156
156
  data-vis-attrs="widgetPlayer/custom,squeezeboxrpc.attrSelect;mainbarcolor[#909090]/color;playtimebarcolor[#00ff00]/color;borderwidth[2px]/number/editDimension;borderstyle[solid]/nselect,,none,hidden,dotted,dashed,solid,double,groove,ridge,inset,outset,initial,inherit;bordercolor[#ffffff]/color;borderradius[2px]/number/editDimension;"
157
157
  data-vis-set="squeezeboxrpc"
158
158
  data-vis-type="val"
159
- data-vis-beta="true"
159
+ data-vis-beta="false"
160
160
  data-vis-update-style="true"
161
161
  data-vis-name="Playtime bar">
162
162
  <div class="vis-widget <%== this.data.attr('class') %>" style="overflow:visible; width: 200px; height: 10px" id="<%= this.data.attr('wid') %>"><%
@@ -170,7 +170,7 @@
170
170
  data-vis-attrs="widgetPlayer/custom,squeezeboxrpc.attrSelect;playerattribute/custom,squeezeboxrpc.playerAttrSelect;test_html;"
171
171
  data-vis-set="squeezeboxrpc"
172
172
  data-vis-type="val"
173
- data-vis-beta="true"
173
+ data-vis-beta="false"
174
174
  data-vis-update-style="true"
175
175
  data-vis-name="String">
176
176
  <div class="vis-widget <%== this.data.attr('class') %>" style="width: 50px; height: 20px" id="<%= this.data.attr('wid') %>"><%
@@ -184,7 +184,7 @@
184
184
  data-vis-attrs="widgetPlayer/custom,squeezeboxrpc.attrSelect;playerattribute/custom,squeezeboxrpc.playerAttrSelect;html_prepend;html_append;test_html;group.extended;digits;is_comma[true]/checkbox;is_tdp/checkbox;"
185
185
  data-vis-set="squeezeboxrpc"
186
186
  data-vis-type="val"
187
- data-vis-beta="true"
187
+ data-vis-beta="false"
188
188
  data-vis-update-style="true"
189
189
  data-vis-name="Number">
190
190
  <div class="vis-widget <%== this.data.attr('class') %>" style="overflow:visible; width: 50px; height: 20px" id="<%= this.data.attr('wid') %>"><%
@@ -195,10 +195,10 @@
195
195
  type="text/ejs"
196
196
  class="vis-tpl"
197
197
  data-vis-prev='<img src="widgets/squeezeboxrpc/img/datetime.png"></img>'
198
- data-vis-attrs="widgetPlayer/custom,squeezeboxrpc.attrSelect;playerattribute/custom,squeezeboxrpc.playerAttrSelect;html_prepend;html_append;test_html;format;factor/number;"
198
+ data-vis-attrs="widgetPlayer/custom,squeezeboxrpc.attrSelect;playerattribute/custom,squeezeboxrpc.playerAttrSelect;html_prepend;html_append;test_html;format;factor[1000]/number;"
199
199
  data-vis-set="squeezeboxrpc"
200
200
  data-vis-type="val"
201
- data-vis-beta="true"
201
+ data-vis-beta="false"
202
202
  data-vis-update-style="false"
203
203
  data-vis-name="DateTime">
204
204
  <div class="vis-widget <%== this.data.attr('class') %>" style="overflow:visible; width: 50px; height: 20px" id="<%= this.data.attr('wid') %>"><%
@@ -212,7 +212,7 @@
212
212
  data-vis-attrs="widgetPlayer/custom,squeezeboxrpc.attrSelect;playerattribute/custom,squeezeboxrpc.playerAttrSelect;stretch/checkbox;html_prepend;html_append;test_html;"
213
213
  data-vis-set="squeezeboxrpc"
214
214
  data-vis-type="val"
215
- data-vis-beta="true"
215
+ data-vis-beta="false"
216
216
  data-vis-update-style="true"
217
217
  data-vis-name="Image">
218
218
  <div class="vis-widget <%== this.data.attr('class') %>" style="width: 100px; height: 100px" id="<%= this.data.attr('wid') %>">
@@ -221,4 +221,3 @@
221
221
  %>
222
222
  </div>
223
223
  </script>
224
-