iobroker.sbfspot 4.1.7 → 4.2.4

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 +81 -79
  7. package/.releaseconfig.json +3 -0
  8. package/LICENSE +20 -20
  9. package/README.md +141 -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 +161 -96
  15. package/lib/tools.js +99 -99
  16. package/main.js +1144 -1144
  17. package/package.json +13 -11
  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,215 @@
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.4 (2024-01-13)
67
+ * (René) upgrade better-sqlite
68
+
69
+ ### 4.2.3 (2024-01-12)
70
+ * (René) downgrade better-sqlite
71
+
72
+ ### 4.2.2 (2024-01-12)
59
73
  * (René) dependencies updated
60
74
 
61
- ### 4.1.6 (2023-07-30)
75
+ ### 4.2.1 (2023-12-11)
62
76
  * (René) dependencies updated
63
77
 
64
- ### 4.1.4 (2023-04-07)
78
+ ### 4.2.0 (2023-12-11)
65
79
  * (René) dependencies updated
66
80
 
67
- ### 4.1.3 (2023-01-31)
81
+ ### 4.1.6 (2023-07-30)
68
82
  * (René) dependencies updated
69
83
 
70
- ### 4.1.2 (2022-08-20)
84
+ ### 4.1.4 (2023-04-07)
85
+ * (René) dependencies updated
86
+
87
+ ### 4.1.3 (2023-01-31)
88
+ * (René) dependencies updated
89
+
90
+ ### 4.1.2 (2022-08-20)
71
91
  * (René) bug fix in AddObject
72
92
 
73
- ### 4.1.1 (2022-08-18)
74
- * (René) tooltip in wizard added
93
+ ### 4.1.1 (2022-08-18)
94
+ * (René) tooltip in wizard added
75
95
  * (René) flot and dependencies updated
76
96
 
77
- ### 4.0.8 (2021-07-11)
97
+ ### 4.0.8 (2021-07-11)
78
98
  * (René) bug fix color of labels in widget
79
99
 
80
- ### 4.0.7 (2021-10-30)
81
- * (René) see issue #62: avoid endless loop
100
+ ### 4.0.7 (2021-10-30)
101
+ * (René) see issue #62: avoid endless loop
82
102
  * (René) update flot to 4.2.2
83
103
 
84
- ### 4.0.6 (2021-07-09)
104
+ ### 4.0.6 (2021-07-09)
85
105
  * (René) bug fix data types
86
106
 
87
- ### 4.0.5 (2021-03-21)
107
+ ### 4.0.5 (2021-03-21)
88
108
  * (René) dependencies updated
89
109
 
90
- ### 2.3.3 (2019-02-03)
110
+ ### 2.3.3 (2019-02-03)
91
111
  * (René) due to install problems downgrade of sqlite3 package
92
112
 
93
- ### 2.3.1 (2019-02-02)
113
+ ### 2.3.1 (2019-02-02)
94
114
  * (René) bug fix: with sqlite "today" data were not shown
95
115
 
96
- ### 2.3.0 (2019-01-20)
97
- * (René) support of compact mode
116
+ ### 2.3.0 (2019-01-20)
117
+ * (René) support of compact mode
98
118
  * (René) add additional error information in log
99
119
 
100
- ### 2.2.5 (2018-11-26)
120
+ ### 2.2.5 (2018-11-26)
101
121
  * (René) upgrade packages
102
122
 
103
- ### 2.2.5 (2018-11-04)
123
+ ### 2.2.5 (2018-11-04)
104
124
  * (René) reset yield if no new value from today
105
125
 
106
- ### 2.2.4 (2018-08-19)
126
+ ### 2.2.4 (2018-08-19)
107
127
  * (René) bugfix for ticks on X
108
128
 
109
- ### 2.2.3
129
+ ### 2.2.3
110
130
  * (René) the same as 2.2.2
111
131
 
112
- ### 2.2.2
132
+ ### 2.2.2
113
133
  * (René) add timestamp of last update
114
134
 
115
- ### 2.2.1
135
+ ### 2.2.1
116
136
  * (René) close of database connection after last query result is available (e.g. to support more than one inverter)
117
137
 
118
- ### 2.2.0
119
- * (Nis) background color and border
138
+ ### 2.2.0
139
+ * (Nis) background color and border
120
140
  * (René) bug fixes in admin3
121
141
 
122
- ### 2.1.0
142
+ ### 2.1.0
123
143
  * (René) Support MariaDB
124
144
 
125
- ### 2.0.1
145
+ ### 2.0.1
126
146
  * (René) Support of admin3
127
147
 
128
- ### 2.0.0
129
- * (René) since we always use one graph per widget, only one is supported now
148
+ ### 2.0.0
149
+ * (René) since we always use one graph per widget, only one is supported now
130
150
  Attention: widget is not compatible with version 1.x.x; just check settings in widget after installation!
131
151
 
132
- ### 1.1.0
133
- * (René) autoscale of y axis
134
- * (René) color for y axis
152
+ ### 1.1.0
153
+ * (René) autoscale of y axis
154
+ * (René) color for y axis
135
155
  * (René) adjustable date format
136
156
 
137
- ### 1.0.1
157
+ ### 1.0.1
138
158
  * (René) bug fix for sqlite
139
159
 
140
- ### 1.0.0
160
+ ### 1.0.0
141
161
  * (René) first stable release
142
162
 
143
- ### 0.2.6
163
+ ### 0.2.6
144
164
  * (René) bug fix for android app > 1.0.6
145
165
 
146
- ### 0.2.5
166
+ ### 0.2.5
147
167
  * (René) use install date to calculate historical values
148
168
 
149
- ### 0.2.4
169
+ ### 0.2.4
150
170
  * (René) logo changed
151
171
 
152
- ### 0.2.3
153
- * (René) adding historical data as datapoint (JSON)
172
+ ### 0.2.3
173
+ * (René) adding historical data as datapoint (JSON)
154
174
  * (René) new vis widget to show historical data
155
175
 
156
- ### 0.2.2
176
+ ### 0.2.2
157
177
  * (René) renamed to sbfspot
158
178
 
159
- ### 0.2.1
179
+ ### 0.2.1
160
180
  * (René) index.html updated
161
181
 
162
- ### 0.2.0
182
+ ### 0.2.0
163
183
  * (René) support of sqlite and license changed to MIT
164
184
 
165
- ### 0.1.1
185
+ ### 0.1.1
166
186
  * (René) UTF8 coding
167
187
 
168
- ### 0.1.0
188
+ ### 0.1.0
169
189
  * (René) first release
170
190
 
171
- ### 0.0.1
191
+ ### 0.0.1
172
192
  * (René) initial release
173
193
 
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
194
+ ## License
195
+ MIT License
196
+
197
+ Copyright (c) 2017-2024 René G. <info@rg-engineering.eu>
198
+
199
+ Permission is hereby granted, free of charge, to any person obtaining a copy
200
+ of this software and associated documentation files (the "Software"), to deal
201
+ in the Software without restriction, including without limitation the rights
202
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
203
+ copies of the Software, and to permit persons to whom the Software is
204
+ furnished to do so, subject to the following conditions:
205
+
206
+ The above copyright notice and this permission notice shall be included in all
207
+ copies or substantial portions of the Software.
208
+
209
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
210
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
211
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
212
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
213
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
214
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
195
215
  SOFTWARE.