fiftyfive 0.0.1__tar.gz → 0.2.0__tar.gz
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.
- {fiftyfive-0.0.1 → fiftyfive-0.2.0}/.gitignore +3 -1
- {fiftyfive-0.0.1 → fiftyfive-0.2.0}/PKG-INFO +1 -1
- {fiftyfive-0.0.1 → fiftyfive-0.2.0}/fiftyfive/api.py +1 -0
- {fiftyfive-0.0.1 → fiftyfive-0.2.0}/fiftyfive/requests.py +70 -0
- {fiftyfive-0.0.1 → fiftyfive-0.2.0}/pyproject.toml +1 -1
- {fiftyfive-0.0.1 → fiftyfive-0.2.0}/.github/workflows/release.yaml +0 -0
- {fiftyfive-0.0.1 → fiftyfive-0.2.0}/LICENSE +0 -0
- {fiftyfive-0.0.1 → fiftyfive-0.2.0}/README.md +0 -0
- {fiftyfive-0.0.1 → fiftyfive-0.2.0}/example.py +0 -0
- {fiftyfive-0.0.1 → fiftyfive-0.2.0}/fiftyfive/__init__.py +0 -0
- {fiftyfive-0.0.1 → fiftyfive-0.2.0}/fiftyfive/decorators.py +0 -0
- {fiftyfive-0.0.1 → fiftyfive-0.2.0}/fiftyfive/models.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: fiftyfive
|
|
3
|
-
Version: 0.0
|
|
3
|
+
Version: 0.2.0
|
|
4
4
|
Summary: Python 3 package to retrieve EV charger data from 50five
|
|
5
5
|
Project-URL: Homepage, https://github.com/Crazy-Duck/fiftyfive
|
|
6
6
|
Project-URL: Bug Tracker, https://github.com/Crazy-Duck/fiftyfive/issues
|
|
@@ -235,3 +235,73 @@ class Stop(Action):
|
|
|
235
235
|
"clickedButtonId": 0,
|
|
236
236
|
"channel": self.channel.id,
|
|
237
237
|
}
|
|
238
|
+
|
|
239
|
+
|
|
240
|
+
class SoftReset(Action):
|
|
241
|
+
def __init__(self, channel: Channel):
|
|
242
|
+
self.channel = channel
|
|
243
|
+
|
|
244
|
+
@property
|
|
245
|
+
def params(self) -> dict[str, str | int]:
|
|
246
|
+
return {
|
|
247
|
+
"action": "SoftReset",
|
|
248
|
+
"rechargeSpotId": self.channel.recharge_spot_id,
|
|
249
|
+
"clickedButtonId": 0,
|
|
250
|
+
"channel": self.channel.id,
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
|
|
254
|
+
class HardReset(Action):
|
|
255
|
+
def __init__(self, channel: Channel):
|
|
256
|
+
self.channel = channel
|
|
257
|
+
|
|
258
|
+
@property
|
|
259
|
+
def params(self) -> dict[str, str | int]:
|
|
260
|
+
return {
|
|
261
|
+
"action": "HardReset",
|
|
262
|
+
"rechargeSpotId": self.channel.recharge_spot_id,
|
|
263
|
+
"clickedButtonId": 0,
|
|
264
|
+
"channel": self.channel.id,
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
|
|
268
|
+
class UnlockConnector(Action):
|
|
269
|
+
def __init__(self, channel: Channel):
|
|
270
|
+
self.channel = channel
|
|
271
|
+
|
|
272
|
+
@property
|
|
273
|
+
def params(self) -> dict[str, str | int]:
|
|
274
|
+
return {
|
|
275
|
+
"action": "UnlockConnector",
|
|
276
|
+
"rechargeSpotId": self.channel.recharge_spot_id,
|
|
277
|
+
"clickedButtonId": 0,
|
|
278
|
+
"channel": self.channel.id,
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
|
|
282
|
+
class Block(Action):
|
|
283
|
+
def __init__(self, channel: Channel):
|
|
284
|
+
self.channel = channel
|
|
285
|
+
|
|
286
|
+
@property
|
|
287
|
+
def params(self) -> dict[str, str | int]:
|
|
288
|
+
return {
|
|
289
|
+
"action": "Block",
|
|
290
|
+
"rechargeSpotId": self.channel.recharge_spot_id,
|
|
291
|
+
"clickedButtonId": 0,
|
|
292
|
+
"channel": self.channel.id,
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
|
|
296
|
+
class Unblock(Action):
|
|
297
|
+
def __init__(self, channel: Channel):
|
|
298
|
+
self.channel = channel
|
|
299
|
+
|
|
300
|
+
@property
|
|
301
|
+
def params(self) -> dict[str, str | int]:
|
|
302
|
+
return {
|
|
303
|
+
"action": "Unblock",
|
|
304
|
+
"rechargeSpotId": self.channel.recharge_spot_id,
|
|
305
|
+
"clickedButtonId": 0,
|
|
306
|
+
"channel": self.channel.id,
|
|
307
|
+
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|