Add config files
This commit is contained in:
parent
72f5c92f3e
commit
dd418a1df7
|
@ -0,0 +1,9 @@
|
|||
[probe]
|
||||
identifiant_sonde = dummy
|
||||
nom_sonde = dummy
|
||||
emails = 1@1
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
|
||||
[probe]
|
||||
identifiant_sonde = f570d2a9-f46a-4068-9e74-8543f1417bbb
|
||||
nom_sonde = Alexi
|
||||
emails = colin.goutte@free.fr
|
||||
alexi@savediffusion.fr
|
||||
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
|
||||
[probe]
|
||||
identifiant_sonde = 04e5fa0f-d90c-424d-9fff-41147762ecbb
|
||||
nom_sonde = Colin
|
||||
emails = colin.goutte@free.fr
|
||||
|
||||
|
|
@ -0,0 +1,22 @@
|
|||
from uuid import uuid4
|
||||
|
||||
nom_sonde = input("Choisir un nom pour la sonde:")
|
||||
|
||||
|
||||
content = """
|
||||
[probe]
|
||||
identifiant_sonde = {id_sonde}
|
||||
nom_sonde = {nom_sonde}
|
||||
emails = {emails}
|
||||
|
||||
"""
|
||||
|
||||
|
||||
with open(f"api_client_{nom_sonde}.ini", "w") as f:
|
||||
f.write(
|
||||
content.format(
|
||||
id_sonde=str(uuid4()),
|
||||
nom_sonde=nom_sonde,
|
||||
emails="\n ".join(["aaa", "bbb"]),
|
||||
)
|
||||
)
|
|
@ -0,0 +1,7 @@
|
|||
[relais]
|
||||
identitifant_sonde = 838266b2-fc3a-4430-95e8-f7f0d0fc9871
|
||||
api_login_url = 'https://merlin.savediffusion.fr/api/1.1/user/login'
|
||||
api_status_url = 'https://merlin.savediffusion.fr/api/1.1/status"
|
||||
api_user_login = 'admin'
|
||||
api_user_password = 'Watermark35'
|
||||
forward_api_address = 'https:/papi.silib.re/'
|
Loading…
Reference in New Issue