Start to create Python client

This commit is contained in:
2024-06-29 18:05:58 +02:00
parent 1d32ca1559
commit dca8848ec9
8 changed files with 57 additions and 0 deletions

12
python_device/src/args.py Normal file
View File

@@ -0,0 +1,12 @@
import argparse
import os
parser = argparse.ArgumentParser(
description='SolarEnergy Python-based client')
parser.add_argument("--unsecure_origin", help="Change unsecure API origin", default="http://localhost:8080")
parser.add_argument("--storage", help="Change storage location", default="storage")
args = parser.parse_args()
args.secure_origin_path = os.path.join(args.storage, "SECURE_ORIGIN")