wohnungsbot icon indicating copy to clipboard operation
wohnungsbot copied to clipboard

Import JSON settings

Open neopostmodern opened this issue 1 year ago • 2 comments

Currently there is an option to export user settings (quite hidden on the "review configuration" page) – it'd be nice to be able to import settings too

neopostmodern avatar Sep 19 '23 10:09 neopostmodern

From my point of view this became somewhat low prio because if you really need it you can hack it already.

The config is saved in ~/.config/Electron/config.json (when developing) or in ~/.config/Wohnungsbot/config.json when installed. You can just copy / paste / replace / backup / restore this file to then have the corresponding configuration running.

So for "us developers" you don't really need it. Would be the question if there's a usecase, where a normal user wants to swap different configs.

hoelger avatar Sep 30 '23 13:09 hoelger

One very simple improvement could be done. Let's say a user sends you the config output from the GUI, then you have to wrap it in something like { configuration: <output> } and put it into the config.json. This is cumbersome handwriting work there.

Maybe just offer to download the config.json as file? Ah no this would then also send all the application-history that's in the file. Ok so maybe just wrap it in {configuration: ...} and that's it.

hoelger avatar Sep 30 '23 13:09 hoelger