gut-space / svarog

📡 A ground stations network for receiving satellite transmissions, using VHF, UHF, and more.
MIT License
10 stars 0 forks source link

Argparse for submitobs.py #57

Open fivitti opened 3 years ago

fivitti commented 3 years ago

Script "submitobs.py" has a lot of parameters to pass from the command line. They are parsed directly from sys.argv. The order of parameters is important and some of them are optional. I think that using argparse library to handle them will be more user-friendly and descriptive.

tomaszmrugalski commented 3 years ago

Sounds good to me. This script wasn't used manually before.

I was thinking that one important change in this area would be to allow multiple files. At the moment at least 3 come to mind: products, waterfall, log file. One way to do it would to allow coma separated list of files as the first argument.

tomaszmrugalski commented 3 years ago

Yesterday, I've ran my local server (cd server; ./svarog-web.py) and then edited the station config to point to 'url': 'http://localhost:8080/receive'. Worked nicely, except I couldn't make the signatures to work. Most likely I messed up the secret configuration.