iobroker.sbfspot 4.1.7 → 4.2.1

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.
Files changed (69) hide show
  1. package/.eslintrc.json +34 -34
  2. package/.github/ISSUE_TEMPLATE/BugReport.md +36 -36
  3. package/.github/ISSUE_TEMPLATE/Enhancement.md +19 -19
  4. package/.github/dependabot.yml +13 -13
  5. package/.github/workflows/npmpublish.yml +30 -30
  6. package/.github/workflows/test-and-release.yml +79 -79
  7. package/.releaseconfig.json +3 -0
  8. package/LICENSE +20 -20
  9. package/README.md +132 -121
  10. package/admin/index.html +175 -175
  11. package/admin/index_m.html +261 -261
  12. package/admin/words.js +24 -24
  13. package/docs/en/install_arm.md +64 -64
  14. package/io-package.json +122 -96
  15. package/lib/tools.js +99 -99
  16. package/main.js +1144 -1144
  17. package/package.json +11 -9
  18. package/widgets/sbfspot/lib/js/flot/jquery.canvaswrapper.js +549 -549
  19. package/widgets/sbfspot/lib/js/flot/jquery.colorhelpers.js +199 -199
  20. package/widgets/sbfspot/lib/js/flot/jquery.flot.axislabels.js +212 -212
  21. package/widgets/sbfspot/lib/js/flot/jquery.flot.browser.js +98 -98
  22. package/widgets/sbfspot/lib/js/flot/jquery.flot.categories.js +202 -202
  23. package/widgets/sbfspot/lib/js/flot/jquery.flot.composeImages.js +330 -330
  24. package/widgets/sbfspot/lib/js/flot/jquery.flot.crosshair.js +202 -202
  25. package/widgets/sbfspot/lib/js/flot/jquery.flot.drawSeries.js +662 -662
  26. package/widgets/sbfspot/lib/js/flot/jquery.flot.errorbars.js +375 -375
  27. package/widgets/sbfspot/lib/js/flot/jquery.flot.fillbetween.js +254 -254
  28. package/widgets/sbfspot/lib/js/flot/jquery.flot.flatdata.js +47 -47
  29. package/widgets/sbfspot/lib/js/flot/jquery.flot.hover.js +361 -361
  30. package/widgets/sbfspot/lib/js/flot/jquery.flot.image.js +249 -249
  31. package/widgets/sbfspot/lib/js/flot/jquery.flot.js +2953 -2953
  32. package/widgets/sbfspot/lib/js/flot/jquery.flot.legend.js +437 -437
  33. package/widgets/sbfspot/lib/js/flot/jquery.flot.logaxis.js +298 -298
  34. package/widgets/sbfspot/lib/js/flot/jquery.flot.navigate.js +834 -834
  35. package/widgets/sbfspot/lib/js/flot/jquery.flot.pie.js +794 -794
  36. package/widgets/sbfspot/lib/js/flot/jquery.flot.resize.js +60 -60
  37. package/widgets/sbfspot/lib/js/flot/jquery.flot.saturated.js +43 -43
  38. package/widgets/sbfspot/lib/js/flot/jquery.flot.selection.js +527 -527
  39. package/widgets/sbfspot/lib/js/flot/jquery.flot.stack.js +220 -220
  40. package/widgets/sbfspot/lib/js/flot/jquery.flot.symbol.js +98 -98
  41. package/widgets/sbfspot/lib/js/flot/jquery.flot.threshold.js +143 -143
  42. package/widgets/sbfspot/lib/js/flot/jquery.flot.time.js +586 -586
  43. package/widgets/sbfspot/lib/js/flot/jquery.flot.touch.js +320 -320
  44. package/widgets/sbfspot/lib/js/flot/jquery.flot.touchNavigate.js +360 -360
  45. package/widgets/sbfspot/lib/js/flot/jquery.flot.uiConstants.js +10 -10
  46. package/widgets/sbfspot/lib/js/flot/jquery.js +9473 -9473
  47. package/widgets/sbfspot/lib/js/lib/globalize.culture.en-US.js +33 -33
  48. package/widgets/sbfspot/lib/js/lib/globalize.js +1601 -1601
  49. package/widgets/sbfspot/lib/js/lib/jquery.event.drag.js +145 -145
  50. package/widgets/sbfspot/lib/js/lib/jquery.mousewheel.js +86 -86
  51. package/widgets/sbfspot.html +1597 -1597
  52. package/.project +0 -17
  53. package/.settings/.jsdtscope +0 -7
  54. package/.settings/org.eclipse.wst.jsdt.ui.superType.container +0 -1
  55. package/.settings/org.eclipse.wst.jsdt.ui.superType.name +0 -1
  56. package/admin/sbfspot_alt.png +0 -0
  57. package/bin/Microsoft.NodejsTools.WebRole.dll +0 -0
  58. package/lib/SMA_Bluetooth.js +0 -27
  59. package/main_neu.js +0 -1056
  60. package/obj/Debug/sbfspot.njsproj.CoreCompileInputs.cache +0 -1
  61. package/obj/Debug/sbfspot.njsproj.FileListAbsolute.txt +0 -3
  62. package/obj/Debug/sbfspot.njsprojAssemblyReference.cache +0 -0
  63. package/package_neu.json +0 -41
  64. package/readme.txt +0 -4
  65. package/sbfspot.njsproj +0 -185
  66. package/todo.txt +0 -24
  67. package/typings/globals/node/index.d.ts +0 -4209
  68. package/typings/globals/node/typings.json +0 -8
  69. package/typings/index.d.ts +0 -1
package/README.md CHANGED
@@ -1,195 +1,206 @@
1
- ![Logo](admin/sbfspot.png)
2
- # ioBroker.sbfspot
3
-
4
- ![Number of Installations](http://iobroker.live/badges/sbfspot-installed.svg) ![Number of Installations](http://iobroker.live/badges/sbfspot-stable.svg)
5
- [![Downloads](https://img.shields.io/npm/dm/iobroker.sbfspot.svg)](https://www.npmjs.com/package/iobroker.sbfspot)
6
- [![NPM version](http://img.shields.io/npm/v/iobroker.sbfspot.svg)](https://www.npmjs.com/package/iobroker.sbfspot)
7
-
8
- [![Known Vulnerabilities](https://snyk.io/test/github/rg-engineering/ioBroker.sbfspot/badge.svg)](https://snyk.io/test/github/rg-engineering/ioBroker.sbfspot)
9
- ![GitHub Actions](https://github.com/rg-engineering/ioBroker.sbfspot/workflows/Test%20and%20Release/badge.svg)
10
-
11
- [![NPM](https://nodei.co/npm/iobroker.sbfspot.png?downloads=true)](https://nodei.co/npm/iobroker.sbfspot/)
12
-
13
-
14
-
15
- **This adapter uses Sentry libraries to automatically report exceptions and code errors to the developers.**
16
- For more details and for information how to disable the error reporting see [Sentry-Plugin Documentation](https://github.com/ioBroker/plugin-sentry#plugin-sentry)! Sentry reporting is used starting with js-controller 3.0.
17
-
18
-
19
- **If you like it, please consider a donation:**
20
-
21
- [![paypal](https://www.paypalobjects.com/en_US/DK/i/btn/btn_donateCC_LG.gif)](https://www.paypal.com/donate/?hosted_button_id=34ESBMJ932QZC)
22
-
23
- This adapter reads data from SMA power inverters using sbfspot.
24
- Now both database types (mySQL and sqlite) are supported.
25
- Since version 0.2.3 there is a own vis widget based on flot available to show historical data.
26
-
27
- ## Installation
28
-
29
- please follow installation instructions for sbfspot under https://github.com/SBFspot/SBFspot/wiki
30
-
31
- [detailed installation on arm based systems ](docs/en/install_arm.md)
32
-
33
- ## Hints
34
- * use latest version from sbfspot from https://github.com/SBFspot/SBFspot
35
- * adapter, sbfspot and databases (mySQL or sqlite) must run on the same system e.g. Raspberry PI
36
- * installation manual for sbfspot on Raspberry Pi (or similar) can be found under https://github.com/SBFspot/SBFspot/wiki/Installation-Linux-SQLite or https://www.rg-engineering.eu/index.php/produkte/software/plugin-fuer-iobroker-sbfspot
37
- * for Raspberry Pi there is a semi-automated configuration tool available under https://github.com/SBFspot/sbfspot-config
38
-
39
- ## known issues
40
-
41
- * sometimes installation of npm package sqlite3 fails.
42
- in that case reinstall all npm packages
43
-
44
- > cd /opt/iobroker/node_modules/iobroker.sbfspot
45
- > sudo npm install
46
-
47
- sometimes npm intall must be called more then one time to successfully install all necessray packages
48
-
49
-
50
- * please create issues at [github](https://github.com/rg-engineering/ioBroker.sbfspot/issues) if you find bugs or whish new features
51
-
52
- ## Changelog
53
-
54
- <!--
55
- Placeholder for the next version (at the beginning of the line):
56
- ### **WORK IN PROGRESS**
1
+ ![Logo](admin/sbfspot.png)
2
+ # ioBroker.sbfspot
3
+
4
+ ![Number of Installations](http://iobroker.live/badges/sbfspot-installed.svg) ![Number of Installations](http://iobroker.live/badges/sbfspot-stable.svg)
5
+ [![Downloads](https://img.shields.io/npm/dm/iobroker.sbfspot.svg)](https://www.npmjs.com/package/iobroker.sbfspot)
6
+ [![NPM version](http://img.shields.io/npm/v/iobroker.sbfspot.svg)](https://www.npmjs.com/package/iobroker.sbfspot)
7
+
8
+ [![Known Vulnerabilities](https://snyk.io/test/github/rg-engineering/ioBroker.sbfspot/badge.svg)](https://snyk.io/test/github/rg-engineering/ioBroker.sbfspot)
9
+ ![GitHub Actions](https://github.com/rg-engineering/ioBroker.sbfspot/workflows/Test%20and%20Release/badge.svg)
10
+
11
+ [![NPM](https://nodei.co/npm/iobroker.sbfspot.png?downloads=true)](https://nodei.co/npm/iobroker.sbfspot/)
12
+
13
+ ![node-lts](https://img.shields.io/node/v-lts/iobroker.sbfspot?style=flat-square)
14
+ ![Libraries.io dependency status for latest release](https://img.shields.io/librariesio/release/npm/iobroker.sbfspot?label=npm%20dependencies&style=flat-square)
15
+
16
+
17
+ ![GitHub](https://img.shields.io/github/license/rg-engineering/ioBroker.sbfspot?style=flat-square)
18
+ ![GitHub repo size](https://img.shields.io/github/repo-size/rg-engineering/ioBroker.sbfspot?logo=github&style=flat-square)
19
+ ![GitHub commit activity](https://img.shields.io/github/commit-activity/m/rg-engineering/ioBroker.sbfspot?logo=github&style=flat-square)
20
+ ![GitHub last commit](https://img.shields.io/github/last-commit/rg-engineering/ioBroker.sbfspot?logo=github&style=flat-square)
21
+ ![GitHub issues](https://img.shields.io/github/issues/rg-engineering/ioBroker.sbfspot?logo=github&style=flat-square)
22
+
23
+ **This adapter uses Sentry libraries to automatically report exceptions and code errors to the developers.**
24
+ For more details and for information how to disable the error reporting see [Sentry-Plugin Documentation](https://github.com/ioBroker/plugin-sentry#plugin-sentry)! Sentry reporting is used starting with js-controller 3.0.
25
+
26
+
27
+ **If you like it, please consider a donation:**
28
+
29
+ [![paypal](https://www.paypalobjects.com/en_US/DK/i/btn/btn_donateCC_LG.gif)](https://www.paypal.com/donate/?hosted_button_id=34ESBMJ932QZC)
30
+
31
+ This adapter reads data from SMA power inverters using sbfspot.
32
+ Now both database types (mySQL and sqlite) are supported.
33
+ Since version 0.2.3 there is a own vis widget based on flot available to show historical data.
34
+
35
+ ## Installation
36
+
37
+ please follow installation instructions for sbfspot under https://github.com/SBFspot/SBFspot/wiki
38
+
39
+ [detailed installation on arm based systems ](docs/en/install_arm.md)
40
+
41
+ ## Hints
42
+ * use latest version from sbfspot from https://github.com/SBFspot/SBFspot
43
+ * adapter, sbfspot and databases (mySQL or sqlite) must run on the same system e.g. Raspberry PI
44
+ * installation manual for sbfspot on Raspberry Pi (or similar) can be found under https://github.com/SBFspot/SBFspot/wiki/Installation-Linux-SQLite or https://www.rg-engineering.eu/index.php/produkte/software/plugin-fuer-iobroker-sbfspot
45
+ * for Raspberry Pi there is a semi-automated configuration tool available under https://github.com/SBFspot/sbfspot-config
46
+
47
+ ## known issues
48
+
49
+ * sometimes installation of npm package sqlite3 fails.
50
+ in that case reinstall all npm packages
51
+
52
+ > cd /opt/iobroker/node_modules/iobroker.sbfspot
53
+ > sudo npm install
54
+
55
+ sometimes npm intall must be called more then one time to successfully install all necessray packages
56
+
57
+
58
+ * please create issues at [github](https://github.com/rg-engineering/ioBroker.sbfspot/issues) if you find bugs or whish new features
59
+
60
+ ## Changelog
61
+
62
+ <!--
63
+ Placeholder for the next version (at the beginning of the line):
64
+ ### **WORK IN PROGRESS**
57
65
  -->
58
- ### 4.1.7 (2023-11-18)
66
+ ### 4.2.1 (2023-12-11)
67
+ * (René) dependencies updated
68
+
69
+ ### 4.2.0 (2023-12-11)
59
70
  * (René) dependencies updated
60
71
 
61
- ### 4.1.6 (2023-07-30)
72
+ ### 4.1.6 (2023-07-30)
62
73
  * (René) dependencies updated
63
74
 
64
- ### 4.1.4 (2023-04-07)
75
+ ### 4.1.4 (2023-04-07)
65
76
  * (René) dependencies updated
66
77
 
67
- ### 4.1.3 (2023-01-31)
78
+ ### 4.1.3 (2023-01-31)
68
79
  * (René) dependencies updated
69
80
 
70
- ### 4.1.2 (2022-08-20)
81
+ ### 4.1.2 (2022-08-20)
71
82
  * (René) bug fix in AddObject
72
83
 
73
- ### 4.1.1 (2022-08-18)
74
- * (René) tooltip in wizard added
84
+ ### 4.1.1 (2022-08-18)
85
+ * (René) tooltip in wizard added
75
86
  * (René) flot and dependencies updated
76
87
 
77
- ### 4.0.8 (2021-07-11)
88
+ ### 4.0.8 (2021-07-11)
78
89
  * (René) bug fix color of labels in widget
79
90
 
80
- ### 4.0.7 (2021-10-30)
81
- * (René) see issue #62: avoid endless loop
91
+ ### 4.0.7 (2021-10-30)
92
+ * (René) see issue #62: avoid endless loop
82
93
  * (René) update flot to 4.2.2
83
94
 
84
- ### 4.0.6 (2021-07-09)
95
+ ### 4.0.6 (2021-07-09)
85
96
  * (René) bug fix data types
86
97
 
87
- ### 4.0.5 (2021-03-21)
98
+ ### 4.0.5 (2021-03-21)
88
99
  * (René) dependencies updated
89
100
 
90
- ### 2.3.3 (2019-02-03)
101
+ ### 2.3.3 (2019-02-03)
91
102
  * (René) due to install problems downgrade of sqlite3 package
92
103
 
93
- ### 2.3.1 (2019-02-02)
104
+ ### 2.3.1 (2019-02-02)
94
105
  * (René) bug fix: with sqlite "today" data were not shown
95
106
 
96
- ### 2.3.0 (2019-01-20)
97
- * (René) support of compact mode
107
+ ### 2.3.0 (2019-01-20)
108
+ * (René) support of compact mode
98
109
  * (René) add additional error information in log
99
110
 
100
- ### 2.2.5 (2018-11-26)
111
+ ### 2.2.5 (2018-11-26)
101
112
  * (René) upgrade packages
102
113
 
103
- ### 2.2.5 (2018-11-04)
114
+ ### 2.2.5 (2018-11-04)
104
115
  * (René) reset yield if no new value from today
105
116
 
106
- ### 2.2.4 (2018-08-19)
117
+ ### 2.2.4 (2018-08-19)
107
118
  * (René) bugfix for ticks on X
108
119
 
109
- ### 2.2.3
120
+ ### 2.2.3
110
121
  * (René) the same as 2.2.2
111
122
 
112
- ### 2.2.2
123
+ ### 2.2.2
113
124
  * (René) add timestamp of last update
114
125
 
115
- ### 2.2.1
126
+ ### 2.2.1
116
127
  * (René) close of database connection after last query result is available (e.g. to support more than one inverter)
117
128
 
118
- ### 2.2.0
119
- * (Nis) background color and border
129
+ ### 2.2.0
130
+ * (Nis) background color and border
120
131
  * (René) bug fixes in admin3
121
132
 
122
- ### 2.1.0
133
+ ### 2.1.0
123
134
  * (René) Support MariaDB
124
135
 
125
- ### 2.0.1
136
+ ### 2.0.1
126
137
  * (René) Support of admin3
127
138
 
128
- ### 2.0.0
129
- * (René) since we always use one graph per widget, only one is supported now
139
+ ### 2.0.0
140
+ * (René) since we always use one graph per widget, only one is supported now
130
141
  Attention: widget is not compatible with version 1.x.x; just check settings in widget after installation!
131
142
 
132
- ### 1.1.0
133
- * (René) autoscale of y axis
134
- * (René) color for y axis
143
+ ### 1.1.0
144
+ * (René) autoscale of y axis
145
+ * (René) color for y axis
135
146
  * (René) adjustable date format
136
147
 
137
- ### 1.0.1
148
+ ### 1.0.1
138
149
  * (René) bug fix for sqlite
139
150
 
140
- ### 1.0.0
151
+ ### 1.0.0
141
152
  * (René) first stable release
142
153
 
143
- ### 0.2.6
154
+ ### 0.2.6
144
155
  * (René) bug fix for android app > 1.0.6
145
156
 
146
- ### 0.2.5
157
+ ### 0.2.5
147
158
  * (René) use install date to calculate historical values
148
159
 
149
- ### 0.2.4
160
+ ### 0.2.4
150
161
  * (René) logo changed
151
162
 
152
- ### 0.2.3
153
- * (René) adding historical data as datapoint (JSON)
163
+ ### 0.2.3
164
+ * (René) adding historical data as datapoint (JSON)
154
165
  * (René) new vis widget to show historical data
155
166
 
156
- ### 0.2.2
167
+ ### 0.2.2
157
168
  * (René) renamed to sbfspot
158
169
 
159
- ### 0.2.1
170
+ ### 0.2.1
160
171
  * (René) index.html updated
161
172
 
162
- ### 0.2.0
173
+ ### 0.2.0
163
174
  * (René) support of sqlite and license changed to MIT
164
175
 
165
- ### 0.1.1
176
+ ### 0.1.1
166
177
  * (René) UTF8 coding
167
178
 
168
- ### 0.1.0
179
+ ### 0.1.0
169
180
  * (René) first release
170
181
 
171
- ### 0.0.1
182
+ ### 0.0.1
172
183
  * (René) initial release
173
184
 
174
- ## License
175
- MIT License
176
-
177
- Copyright (c) 2017-2023 rg-engineering info@rg-engineering.eu
178
-
179
- Permission is hereby granted, free of charge, to any person obtaining a copy
180
- of this software and associated documentation files (the "Software"), to deal
181
- in the Software without restriction, including without limitation the rights
182
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
183
- copies of the Software, and to permit persons to whom the Software is
184
- furnished to do so, subject to the following conditions:
185
-
186
- The above copyright notice and this permission notice shall be included in all
187
- copies or substantial portions of the Software.
188
-
189
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
190
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
191
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
192
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
193
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
194
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
185
+ ## License
186
+ MIT License
187
+
188
+ Copyright (c) 2017-2023 rg-engineering info@rg-engineering.eu
189
+
190
+ Permission is hereby granted, free of charge, to any person obtaining a copy
191
+ of this software and associated documentation files (the "Software"), to deal
192
+ in the Software without restriction, including without limitation the rights
193
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
194
+ copies of the Software, and to permit persons to whom the Software is
195
+ furnished to do so, subject to the following conditions:
196
+
197
+ The above copyright notice and this permission notice shall be included in all
198
+ copies or substantial portions of the Software.
199
+
200
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
201
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
202
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
203
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
204
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
205
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
195
206
  SOFTWARE.