autoplot ftml files need the path and file stored
currently the autoplot requires the ftml file in the dir where the mssautoplot was called. We have to change this. the mssautoplot.json has to keep the path + file
Additional the cli mssautoplot can have an option to overewrite the path.
Hii @ReimarBauer, i would like to work on this issue, please assign it to me.
Hi @annapurna-gupta you have it.
@ReimarBauer, I got this error when running the command mssautoplot --cpath mssautoplot.json. this mean that mssautoplot can't find mssautoplot.json? and first autoplot should find mssautoplot.json file.
@annapurna-gupta you have to give a path and a file, minimum would be on linux ./mssautoplot.json, the default is set to the path where you have the msui_settings.json, you can lookup this in
- https://github.com/Open-MSS/MSS/blob/develop/mslib%2Futils%2Fmssautoplot.py#L583
- https://github.com/Open-MSS/MSS/blob/develop/mslib/msui/constants.py#L69
When I run the command mssautoplot --cpath ~/.config/msui/mssautoplot.json, it throws a KeyError: 'http://localhost:8083', don't understand why?
Please share the autoplot.json.
The problem is that there is not a flightpath name in the data structure, and there is then likly not an ftml file in the same dir. When you use it with local flightpathes, you must load one or save one, the initial "new flightrack" does only exists in memory. Have a look if it asks the keyring for a defined username/password or it does a request on the server. I guess it is only the keyring. You can also ignore in the popup. I extended your example, added both files to the zip. Because github does not allow uploading of a ftml file
having both files in .config/msui and I am in that dir
msui % mssautoplot --cpath ./mssautoplot.json
dbus[1768]: Dynamic session lookup supported but failed: launchd did not provide a socket path, verify that org.freedesktop.dbus-session.plist is loaded!
dbus[1768]: Dynamic session lookup supported but failed: launchd did not provide a socket path, verify that org.freedesktop.dbus-session.plist is loaded!
WARNING:root:Can't get password from keychain: (-128, 'Keychain Access Denied')
The image is saved at: /Users/reimarbauer/.config/msui/example-flight-ecmwf-eur-ll015-pleqpt01-00-global-cyl-20121017t120000z-1-30-0.png
Plot downloaded!
I ignored the keyring/keychain request
Thank you i will look into this:)