iobroker.zendure-solarflow 0.1.0-alpha.0

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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2023 Peter <peter.frommert@outlook.com>
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,71 @@
1
+ ![Logo](admin/zendure-solarflow.png)
2
+
3
+ # ioBroker.zendure-solarflow
4
+
5
+ [![NPM version](https://img.shields.io/npm/v/iobroker.zendure-solarflow.svg)](https://www.npmjs.com/package/iobroker.zendure-solarflow)
6
+ [![Downloads](https://img.shields.io/npm/dm/iobroker.zendure-solarflow.svg)](https://www.npmjs.com/package/iobroker.zendure-solarflow)
7
+ ![Number of Installations](https://iobroker.live/badges/zendure-solarflow-installed.svg)
8
+ ![Current version in stable repository](https://iobroker.live/badges/zendure-solarflow-stable.svg)
9
+
10
+ [![NPM](https://nodei.co/npm/iobroker.zendure-solarflow.png?downloads=true)](https://nodei.co/npm/iobroker.zendure-solarflow/)
11
+
12
+ **Tests:** ![Test and Release](https://github.com/nograx/ioBroker.zendure-solarflow/workflows/Test%20and%20Release/badge.svg)
13
+
14
+ ## Zendure Solarflow adapter for ioBroker
15
+
16
+ This project is an ioBroker Adapter to read data from the Zendure Solarflow Cloud API. It uses the official API provided by Zendure.
17
+ You can read more about the API here: https://github.com/Zendure/developer-device-data-report
18
+
19
+ Note: It is possible to control the Output limit with the state created in the productId/deviceKey/control subfolder.
20
+
21
+ Note2: You will be logged out of the official iOS or Android App after logging in with the ioBroker adapter. This is a normal behavior, currently I
22
+ don't know why. If you have more information, feel free to contact me.
23
+
24
+ ## Credits
25
+
26
+ Credits goes to https://github.com/reinhard-brandstaedter/solarflow which helped a lot with the knowledge about the MQTT server from Zendure! Thanks!
27
+
28
+ ## Donate
29
+
30
+ If you find the adapter useful for you and want to support my work, feel free to donate by Paypal. Thank You!
31
+ (this is an personal Donate link for Nograx, in no relation to the ioBroker Project!)<br />
32
+
33
+ [![Donate](https://img.shields.io/badge/Donate-PayPal-green.svg)](http://paypal.me/peter.frommert)
34
+
35
+ ## Changelog
36
+ ### 0.1.0-alpha.0 (2023-10-26)
37
+
38
+ - Get battery information
39
+ - Reset states if no new data comes in (e.g. when Hub goes offline). Currently the last value still persist when Hub goes offline, so you may have 'pseudo' data in your states.
40
+
41
+ ### 0.0.2 (2023-10-25)
42
+
43
+ - Initital Release, retrieving Hub data, telemetry and setting the output limit works!
44
+
45
+ ### 0.0.1 (2023-10-24)
46
+
47
+ - First test
48
+
49
+ ## License
50
+
51
+ MIT License
52
+
53
+ Copyright (c) 2023 Peter Frommert
54
+
55
+ Permission is hereby granted, free of charge, to any person obtaining a copy
56
+ of this software and associated documentation files (the "Software"), to deal
57
+ in the Software without restriction, including without limitation the rights
58
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
59
+ copies of the Software, and to permit persons to whom the Software is
60
+ furnished to do so, subject to the following conditions:
61
+
62
+ The above copyright notice and this permission notice shall be included in all
63
+ copies or substantial portions of the Software.
64
+
65
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
66
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
67
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
68
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
69
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
70
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
71
+ SOFTWARE.
@@ -0,0 +1,270 @@
1
+ /* node_modules/@iobroker/adapter-react/Components/loader.css */
2
+ .logo-background-light,
3
+ .logo-background-colored {
4
+ background: white;
5
+ }
6
+ .logo-background-dark,
7
+ .logo-background-blue {
8
+ background: black;
9
+ }
10
+ .logo-div {
11
+ position: absolute;
12
+ top: 50%;
13
+ left: 50%;
14
+ -ms-transform: translateX(-50%) translateY(-50%);
15
+ -webkit-transform: translate(-50%, -50%);
16
+ transform: translate(-50%, -50%);
17
+ overflow: hidden;
18
+ border-radius: 50%;
19
+ z-index: 2;
20
+ }
21
+ .logo-border {
22
+ border-top-color: #3399CC;
23
+ border-left-color: #164477;
24
+ border-bottom-color: #164477;
25
+ border-right-color: #164477;
26
+ border-radius: 50%;
27
+ border-style: solid;
28
+ box-sizing: border-box;
29
+ width: 100%;
30
+ height: 100%;
31
+ position: absolute;
32
+ }
33
+ .logo-top {
34
+ position: absolute;
35
+ width: 4.5%;
36
+ height: 16%;
37
+ top: 0;
38
+ z-index: 2;
39
+ }
40
+ .logo-i {
41
+ position: absolute;
42
+ width: 14.5%;
43
+ height: 60%;
44
+ top: 20%;
45
+ left: 42%;
46
+ background: #3399CC;
47
+ }
48
+ .logo-i-top {
49
+ position: absolute;
50
+ width: 14.5%;
51
+ height: 4%;
52
+ left: 42%;
53
+ background: #3399CC;
54
+ border-radius: 100%;
55
+ }
56
+ .logo-back {
57
+ width: 100%;
58
+ height: 100%;
59
+ z-index: 0;
60
+ overflow: hidden;
61
+ }
62
+ @keyframes logo-grow {
63
+ 0% {
64
+ width: 230px;
65
+ height: 230px;
66
+ transform: translate(-50%, -50%) scale(1);
67
+ opacity: 1;
68
+ }
69
+ 99% {
70
+ width: 230px;
71
+ height: 230px;
72
+ transform: translate(-50%, -50%) scale(10);
73
+ opacity: 0;
74
+ }
75
+ 100% {
76
+ width: 0;
77
+ height: 0;
78
+ opacity: 0;
79
+ }
80
+ }
81
+ @keyframes logo-spin {
82
+ 100% {
83
+ -webkit-transform: rotate(360deg);
84
+ transform: rotate(360deg);
85
+ }
86
+ }
87
+ @keyframes logo-color-inside-light {
88
+ 0% {
89
+ background: #FEFEFE;
90
+ }
91
+ 100% {
92
+ background: #3399CC;
93
+ }
94
+ }
95
+ @keyframes logo-color-inside-dark {
96
+ 0% {
97
+ background: #030303;
98
+ }
99
+ 100% {
100
+ background: #3399CC;
101
+ }
102
+ }
103
+ @keyframes logo-color-inside-colored {
104
+ 0% {
105
+ background: #FEFEFE;
106
+ }
107
+ 100% {
108
+ background: #3399CC;
109
+ }
110
+ }
111
+ @keyframes logo-color-inside-blue {
112
+ 0% {
113
+ background: #030303;
114
+ }
115
+ 100% {
116
+ background: #3399CC;
117
+ }
118
+ }
119
+ @keyframes logo-color-outside-light {
120
+ 0% {
121
+ border-color: #FEFEFE;
122
+ }
123
+ 100% {
124
+ border-top-color: #3399CC;
125
+ border-left-color: #164477;
126
+ border-bottom-color: #164477;
127
+ border-right-color: #164477;
128
+ }
129
+ }
130
+ @keyframes logo-color-outside-dark {
131
+ 0% {
132
+ border-color: #040404;
133
+ }
134
+ 100% {
135
+ border-top-color: #3399CC;
136
+ border-left-color: #164477;
137
+ border-bottom-color: #164477;
138
+ border-right-color: #164477;
139
+ }
140
+ }
141
+ @keyframes logo-color-outside-colored {
142
+ 0% {
143
+ border-color: #FEFEFE;
144
+ }
145
+ 100% {
146
+ border-top-color: #3399CC;
147
+ border-left-color: #164477;
148
+ border-bottom-color: #164477;
149
+ border-right-color: #164477;
150
+ }
151
+ }
152
+ @keyframes logo-color-outside-blue {
153
+ 0% {
154
+ border-color: #040404;
155
+ }
156
+ 100% {
157
+ border-top-color: #3399CC;
158
+ border-left-color: #164477;
159
+ border-bottom-color: #164477;
160
+ border-right-color: #164477;
161
+ }
162
+ }
163
+ .logo-animate-wait {
164
+ animation: logo-color-outside 1.5s, logo-spin 1.5s linear infinite;
165
+ }
166
+ .logo-animate-grow-light {
167
+ background: #DDD;
168
+ }
169
+ .logo-animate-grow-dark {
170
+ background: #1d1d1d;
171
+ }
172
+ .logo-animate-grow-colored {
173
+ background: #DDD;
174
+ }
175
+ .logo-animate-grow-blue {
176
+ background: #1d1d1d;
177
+ }
178
+ .logo-animate-grow {
179
+ display: inline-block;
180
+ text-align: center;
181
+ z-index: 1;
182
+ top: 50%;
183
+ left: 50%;
184
+ -ms-transform: translateX(-50%) translateY(-50%);
185
+ -webkit-transform: translate(-50%, -50%);
186
+ transform: translate(-50%, -50%);
187
+ width: 245px;
188
+ height: 245px;
189
+ border-radius: 50%;
190
+ position: absolute;
191
+ animation: logo-grow 1s 1 ease forwards;
192
+ }
193
+ .logo-animate-color-inside-light {
194
+ animation: logo-color-inside-light 2.5s;
195
+ }
196
+ .logo-animate-color-inside-dark {
197
+ animation: logo-color-inside-dark 2.5s;
198
+ }
199
+ .logo-animate-color-inside-colored {
200
+ animation: logo-color-inside-colored 2.5s;
201
+ }
202
+ .logo-animate-color-inside-blue {
203
+ animation: logo-color-inside-blue 2.5s;
204
+ }
205
+ .logo-animate-color-outside-light {
206
+ animation: logo-color-outside-light 1.5s;
207
+ }
208
+ .logo-animate-color-outside-dark {
209
+ animation: logo-color-outside-dark 1.5s;
210
+ }
211
+ .logo-animate-color-outside-colored {
212
+ animation: logo-color-outside-colored 1.5s;
213
+ }
214
+ .logo-animate-color-outside-blue {
215
+ animation: logo-color-outside-blue 1.5s;
216
+ }
217
+
218
+ /* node_modules/@iobroker/adapter-react/index.css */
219
+ html {
220
+ height: 100%;
221
+ }
222
+ body {
223
+ margin: 0;
224
+ padding: 0;
225
+ font-family:
226
+ -apple-system,
227
+ BlinkMacSystemFont,
228
+ "Segoe UI",
229
+ "Roboto",
230
+ "Oxygen",
231
+ "Ubuntu",
232
+ "Cantarell",
233
+ "Fira Sans",
234
+ "Droid Sans",
235
+ "Helvetica Neue",
236
+ sans-serif;
237
+ -webkit-font-smoothing: antialiased;
238
+ -moz-osx-font-smoothing: grayscale;
239
+ width: 100%;
240
+ height: 100%;
241
+ overflow: hidden;
242
+ }
243
+ ::-webkit-scrollbar-track {
244
+ background-color: #ccc;
245
+ border-radius: 5px;
246
+ }
247
+ ::-webkit-scrollbar {
248
+ width: 5px;
249
+ height: 5px;
250
+ background-color: #ccc;
251
+ }
252
+ ::-webkit-scrollbar-thumb {
253
+ background-color: #575757;
254
+ border-radius: 5px;
255
+ }
256
+ #root {
257
+ height: 100%;
258
+ }
259
+ .App {
260
+ height: 100%;
261
+ }
262
+ @keyframes glow {
263
+ from {
264
+ background-color: initial;
265
+ }
266
+ to {
267
+ background-color: #58c458;
268
+ }
269
+ }
270
+ /*# sourceMappingURL=index.css.map */