eclipse-volttron / volttron-openadr-ven

Apache License 2.0
5 stars 5 forks source link

Add demo config; update README #51

Closed bonicim closed 1 year ago

bonicim commented 1 year ago
kefeimo commented 1 year ago

For reproducibility

Able to reproduce the quick-start at Ubuntu 22.04 with Python 3.10. See the following desirable logs. image image

However, couldn't reproduce the quick-start at Ubuntu 22.04 with Python 3.8.

For future development to improve User experience

bonicim commented 1 year ago

@kefeimo That makes total sense regarding making an entry-point for this toy vtn. I looked into how to do it using pyproject.toml under the Poetry framework; it was not as hard as I thought. In pyproject.toml, the equivalent of what you have in setup.py is the following:


packages = [ 
    { include = "openadr_ven", from = "src" },
    { include = "utils" }, 
]

[tool.poetry.scripts]
volttron-openadr-ven = "openadr_ven.agent:main"
vtn-demo = 'utils.vtn.__main__:main' 

I actually tested this out and it works! I will create a separate PR that will add this functionality.

kefeimo commented 1 year ago

For Ubuntu20.04 logs (connection established but didn't observe the desired message)

image

and in volttron.log image