MSS icon indicating copy to clipboard operation
MSS copied to clipboard

autoplot ftml files need the path and file stored

Open ReimarBauer opened this issue 9 months ago • 9 comments

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.

ReimarBauer avatar Mar 19 '25 17:03 ReimarBauer

Hii @ReimarBauer, i would like to work on this issue, please assign it to me.

annapurna-gupta avatar Mar 27 '25 12:03 annapurna-gupta

Hi @annapurna-gupta you have it.

ReimarBauer avatar Mar 28 '25 10:03 ReimarBauer

Image

@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 avatar Apr 02 '25 15:04 annapurna-gupta

@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

ReimarBauer avatar Apr 05 '25 07:04 ReimarBauer

Image

When I run the command mssautoplot --cpath ~/.config/msui/mssautoplot.json, it throws a KeyError: 'http://localhost:8083', don't understand why?

annapurna-gupta avatar Apr 23 '25 17:04 annapurna-gupta

Please share the autoplot.json.

ReimarBauer avatar Apr 23 '25 18:04 ReimarBauer

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

example_flight.zip

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

ReimarBauer avatar Apr 23 '25 21:04 ReimarBauer

Thank you i will look into this:)

annapurna-gupta avatar Apr 24 '25 14:04 annapurna-gupta