@@ -20,7 +20,7 @@ state changes.
2020
2121The following platforms are officially supported (tested):
2222
23- - ** Python:** 3.11, 3.12
23+ - ** Python:** 3.11, 3.13
2424- ** Operating System:** Ubuntu Linux 24.04
2525- ** Architectures:** amd64, arm64
2626
@@ -64,12 +64,14 @@ from frequenz.dispatch import Dispatcher
6464async def main () -> None :
6565 url = os.getenv(" DISPATCH_API_URL" , " grpc://localhost:50051" )
6666 auth_key = os.getenv(" DISPATCH_API_AUTH_KEY" , " my-api-key" )
67+ sign_secret = os.getenv(" DISPATCH_API_SIGN_SECRET" )
6768 microgrid_id = 1
6869
6970 async with Dispatcher(
7071 microgrid_id = microgrid_id,
7172 server_url = url,
7273 auth_key = auth_key,
74+ sign_secret = sign_secret,
7375 ) as dispatcher:
7476 async for event in dispatcher.lifecycle_events:
7577 print (f " Received lifecycle event: { event} " )
@@ -105,13 +107,15 @@ async def run() -> None:
105107 " DISPATCH_API_URL" , " grpc://dispatch.api.example.com:50051"
106108 )
107109 auth_key = os.getenv(" DISPATCH_API_AUTH_KEY" , " my-api-key" )
110+ sign_secret = os.getenv(" DISPATCH_API_SIGN_SECRET" )
108111
109112 microgrid_id = 1
110113
111114 async with Dispatcher(
112115 microgrid_id = microgrid_id,
113116 server_url = url,
114117 auth_key = auth_key,
118+ sign_secret = sign_secret,
115119 ) as dispatcher:
116120 await dispatcher.start_managing(
117121 dispatch_type = " EXAMPLE_TYPE" ,
0 commit comments