Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add -r registersfilename commandline argument #92

Merged
merged 1 commit into from
Nov 19, 2022

Conversation

norrland
Copy link
Contributor

Allow specifying the registerfile from commandline.

ex:
$ python3 sungather.py -c /path/to/config.yaml -r /other/path/registers-sungrow.yaml

Allow specifying the registerfile from commandline.

ex:
$ python3 sungather.py -c /path/to/config.yaml -r /other/path/registers-sungrow.yaml
@bohdan-s
Copy link
Owner

What is the use case for this?
The idea of the registers file is it provides for every model in a single file.

@norrland
Copy link
Contributor Author

Sorry for no context.
I have SunGather running on a FreeBSD host in python virtualenv. When running it as a service, the os.cwd() won't be in the base of the sungather directory. In the service file I set the base configuration path for both config.yaml and registers-sungrow.yaml. The -r flag allows me to call the sungather.py from wherever.

@bohdan-s bohdan-s merged commit 9927bc5 into bohdan-s:main Nov 19, 2022
@bohdan-s
Copy link
Owner

Sounds like good functionality to add! Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants