We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d5db4e0 + a6c4d75 commit 5e3cfb8Copy full SHA for 5e3cfb8
examples/battery_pool.py
@@ -13,8 +13,7 @@
13
from frequenz.sdk import microgrid
14
from frequenz.sdk.actor import ResamplerConfig
15
16
-HOST = "microgrid.sandbox.api.frequenz.io" # it should be the host name.
17
-PORT = 62060
+MICROGRID_API_URL = "grpc://microgrid.sandbox.api.frequenz.io:62060"
18
19
20
async def main() -> None:
@@ -26,7 +25,7 @@ async def main() -> None:
26
25
logging.getLogger("hpack.hpack").setLevel(logging.INFO)
27
28
await microgrid.initialize(
29
- "grpc://microgrid.sandbox.api.frequenz.io:62060",
+ MICROGRID_API_URL,
30
resampler_config=ResamplerConfig(resampling_period=timedelta(seconds=1.0)),
31
)
32
0 commit comments