ade Posted November 21, 2024 Posted November 21, 2024 Hello, The PVSyst CLI documentation mentions a "command options" file that allows us to store a full list of CLI command options and, I assume, simply point CLI to that file when running our simulations. What format does this file need to be in? Do we simply need to create a text or CSV file with the command options and file paths that we want to use?
Robin Vincent Posted November 22, 2024 Posted November 22, 2024 Yes, all you need is a text file containing all the commands you want to pass through. Each command must be on its own line. For instance, to convert a weather data file, you can set up a text file (TestCLiCmd.txt) containing the following lines : -icf:path/file.csv -imf:path/file.MEF -isf:path/file.SIT -omf:path/file.MET And then simply run the command : PVsystCLI convert-meteo -cof:TestCLiCmd.txt from the same directory.
ade Posted November 24, 2024 Author Posted November 24, 2024 Thanks for the response. I was able to get set up a command file for the convert-meteo command and it ran without issue using "command-meteo - cof:". I created a separate command file for use with the "run-simulation" command, but when I try to execute the "run-simulation - cof:" command with the "cof" option pointed at the correct command file, I receive an "Invalid command syntax" error. Running the simulation from the command prompt works fine if I type each command out separately, though.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now