arthexis 0.1.7__py3-none-any.whl → 0.1.9__py3-none-any.whl
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.
Potentially problematic release.
This version of arthexis might be problematic. Click here for more details.
- arthexis-0.1.9.dist-info/METADATA +168 -0
- arthexis-0.1.9.dist-info/RECORD +92 -0
- arthexis-0.1.9.dist-info/licenses/LICENSE +674 -0
- config/__init__.py +0 -1
- config/auth_app.py +0 -1
- config/celery.py +1 -2
- config/context_processors.py +1 -1
- config/offline.py +2 -0
- config/settings.py +134 -16
- config/urls.py +71 -3
- core/admin.py +1331 -165
- core/admin_history.py +50 -0
- core/admindocs.py +151 -0
- core/apps.py +158 -3
- core/backends.py +46 -4
- core/entity.py +62 -48
- core/fields.py +6 -1
- core/github_helper.py +25 -0
- core/github_issues.py +172 -0
- core/lcd_screen.py +1 -0
- core/liveupdate.py +25 -0
- core/log_paths.py +100 -0
- core/mailer.py +83 -0
- core/middleware.py +57 -0
- core/models.py +1136 -259
- core/notifications.py +11 -1
- core/public_wifi.py +227 -0
- core/release.py +27 -20
- core/sigil_builder.py +131 -0
- core/sigil_context.py +20 -0
- core/sigil_resolver.py +284 -0
- core/system.py +129 -10
- core/tasks.py +118 -19
- core/test_system_info.py +22 -0
- core/tests.py +445 -58
- core/tests_liveupdate.py +17 -0
- core/urls.py +2 -2
- core/user_data.py +329 -167
- core/views.py +383 -57
- core/widgets.py +51 -0
- core/workgroup_urls.py +17 -0
- core/workgroup_views.py +94 -0
- nodes/actions.py +0 -2
- nodes/admin.py +159 -284
- nodes/apps.py +9 -15
- nodes/backends.py +53 -0
- nodes/lcd.py +24 -10
- nodes/models.py +375 -178
- nodes/tasks.py +1 -5
- nodes/tests.py +524 -129
- nodes/utils.py +13 -2
- nodes/views.py +66 -23
- ocpp/admin.py +150 -61
- ocpp/apps.py +4 -3
- ocpp/consumers.py +432 -69
- ocpp/evcs.py +25 -8
- ocpp/models.py +408 -68
- ocpp/simulator.py +13 -6
- ocpp/store.py +258 -30
- ocpp/tasks.py +11 -7
- ocpp/test_export_import.py +8 -7
- ocpp/test_rfid.py +211 -16
- ocpp/tests.py +1198 -135
- ocpp/transactions_io.py +68 -22
- ocpp/urls.py +35 -2
- ocpp/views.py +654 -101
- pages/admin.py +173 -13
- pages/checks.py +0 -1
- pages/context_processors.py +19 -6
- pages/middleware.py +153 -0
- pages/models.py +37 -9
- pages/tests.py +759 -40
- pages/urls.py +3 -0
- pages/utils.py +0 -1
- pages/views.py +576 -25
- arthexis-0.1.7.dist-info/METADATA +0 -126
- arthexis-0.1.7.dist-info/RECORD +0 -77
- arthexis-0.1.7.dist-info/licenses/LICENSE +0 -21
- config/workgroup_app.py +0 -7
- core/checks.py +0 -29
- {arthexis-0.1.7.dist-info → arthexis-0.1.9.dist-info}/WHEEL +0 -0
- {arthexis-0.1.7.dist-info → arthexis-0.1.9.dist-info}/top_level.txt +0 -0
ocpp/evcs.py
CHANGED
|
@@ -176,6 +176,8 @@ async def simulate_cp(
|
|
|
176
176
|
rfid: str,
|
|
177
177
|
vin: str,
|
|
178
178
|
cp_path: str,
|
|
179
|
+
serial_number: str,
|
|
180
|
+
connector_id: int,
|
|
179
181
|
duration: int,
|
|
180
182
|
kw_min: float,
|
|
181
183
|
kw_max: float,
|
|
@@ -273,6 +275,7 @@ async def simulate_cp(
|
|
|
273
275
|
{
|
|
274
276
|
"chargePointModel": "Simulator",
|
|
275
277
|
"chargePointVendor": "SimVendor",
|
|
278
|
+
"serialNumber": serial_number,
|
|
276
279
|
},
|
|
277
280
|
]
|
|
278
281
|
)
|
|
@@ -310,7 +313,7 @@ async def simulate_cp(
|
|
|
310
313
|
"meter",
|
|
311
314
|
"MeterValues",
|
|
312
315
|
{
|
|
313
|
-
"connectorId":
|
|
316
|
+
"connectorId": connector_id,
|
|
314
317
|
"meterValue": [
|
|
315
318
|
{
|
|
316
319
|
"timestamp": time.strftime(
|
|
@@ -364,6 +367,7 @@ async def simulate_cp(
|
|
|
364
367
|
{
|
|
365
368
|
"chargePointModel": "Simulator",
|
|
366
369
|
"chargePointVendor": "SimVendor",
|
|
370
|
+
"serialNumber": serial_number,
|
|
367
371
|
},
|
|
368
372
|
]
|
|
369
373
|
)
|
|
@@ -401,7 +405,7 @@ async def simulate_cp(
|
|
|
401
405
|
"meter",
|
|
402
406
|
"MeterValues",
|
|
403
407
|
{
|
|
404
|
-
"connectorId":
|
|
408
|
+
"connectorId": connector_id,
|
|
405
409
|
"meterValue": [
|
|
406
410
|
{
|
|
407
411
|
"timestamp": time.strftime(
|
|
@@ -431,7 +435,7 @@ async def simulate_cp(
|
|
|
431
435
|
"start",
|
|
432
436
|
"StartTransaction",
|
|
433
437
|
{
|
|
434
|
-
"connectorId":
|
|
438
|
+
"connectorId": connector_id,
|
|
435
439
|
"idTag": rfid,
|
|
436
440
|
"meterStart": meter_start,
|
|
437
441
|
"vin": vin,
|
|
@@ -459,7 +463,7 @@ async def simulate_cp(
|
|
|
459
463
|
"meter",
|
|
460
464
|
"MeterValues",
|
|
461
465
|
{
|
|
462
|
-
"connectorId":
|
|
466
|
+
"connectorId": connector_id,
|
|
463
467
|
"transactionId": tx_id,
|
|
464
468
|
"meterValue": [
|
|
465
469
|
{
|
|
@@ -522,7 +526,7 @@ async def simulate_cp(
|
|
|
522
526
|
"meter",
|
|
523
527
|
"MeterValues",
|
|
524
528
|
{
|
|
525
|
-
"connectorId":
|
|
529
|
+
"connectorId": connector_id,
|
|
526
530
|
"meterValue": [
|
|
527
531
|
{
|
|
528
532
|
"timestamp": time.strftime("%Y-%m-%dT%H:%M:%S")
|
|
@@ -578,10 +582,12 @@ async def simulate_cp(
|
|
|
578
582
|
def simulate(
|
|
579
583
|
*,
|
|
580
584
|
host: str = "127.0.0.1",
|
|
581
|
-
ws_port: int =
|
|
585
|
+
ws_port: int = 8000,
|
|
582
586
|
rfid: str = "FFFFFFFF",
|
|
583
587
|
cp_path: str = "CPX",
|
|
584
588
|
vin: str = "",
|
|
589
|
+
serial_number: str = "",
|
|
590
|
+
connector_id: int = 1,
|
|
585
591
|
duration: int = 600,
|
|
586
592
|
kw_min: float = 30.0,
|
|
587
593
|
kw_max: float = 60.0,
|
|
@@ -614,6 +620,8 @@ def simulate(
|
|
|
614
620
|
"rfid": rfid,
|
|
615
621
|
"cp_path": cp_path,
|
|
616
622
|
"vin": vin,
|
|
623
|
+
"serial_number": serial_number,
|
|
624
|
+
"connector_id": connector_id,
|
|
617
625
|
"duration": duration,
|
|
618
626
|
"kw_min": kw_min,
|
|
619
627
|
"kw_max": kw_max,
|
|
@@ -642,6 +650,8 @@ def simulate(
|
|
|
642
650
|
rfid,
|
|
643
651
|
vin,
|
|
644
652
|
this_cp_path,
|
|
653
|
+
serial_number,
|
|
654
|
+
connector_id,
|
|
645
655
|
duration,
|
|
646
656
|
kw_min,
|
|
647
657
|
kw_max,
|
|
@@ -662,6 +672,8 @@ def simulate(
|
|
|
662
672
|
rfid,
|
|
663
673
|
vin,
|
|
664
674
|
this_cp_path,
|
|
675
|
+
serial_number,
|
|
676
|
+
connector_id,
|
|
665
677
|
duration,
|
|
666
678
|
kw_min,
|
|
667
679
|
kw_max,
|
|
@@ -712,6 +724,8 @@ def simulate(
|
|
|
712
724
|
rfid,
|
|
713
725
|
vin,
|
|
714
726
|
cp_path,
|
|
727
|
+
serial_number,
|
|
728
|
+
connector_id,
|
|
715
729
|
duration,
|
|
716
730
|
kw_min,
|
|
717
731
|
kw_max,
|
|
@@ -736,6 +750,8 @@ def simulate(
|
|
|
736
750
|
rfid,
|
|
737
751
|
vin,
|
|
738
752
|
this_cp_path,
|
|
753
|
+
serial_number,
|
|
754
|
+
connector_id,
|
|
739
755
|
duration,
|
|
740
756
|
kw_min,
|
|
741
757
|
kw_max,
|
|
@@ -850,7 +866,9 @@ def _simulator_status_json(cp: Optional[int] = None) -> str:
|
|
|
850
866
|
|
|
851
867
|
if cp is not None:
|
|
852
868
|
return json.dumps(_export_state(_simulators[cp]), indent=2)
|
|
853
|
-
return json.dumps(
|
|
869
|
+
return json.dumps(
|
|
870
|
+
{str(idx): _export_state(st) for idx, st in _simulators.items()}, indent=2
|
|
871
|
+
)
|
|
854
872
|
|
|
855
873
|
|
|
856
874
|
def get_simulator_state(cp: Optional[int] = None, refresh_file: bool = False):
|
|
@@ -908,4 +926,3 @@ __all__ = [
|
|
|
908
926
|
"view_cp_simulator",
|
|
909
927
|
"view_simulator",
|
|
910
928
|
]
|
|
911
|
-
|