How to export and import presets from/to Ox

rodd

Hall of Fame Member
Well this has been a long time coming, and I finally got annoyed enough to figure it out. First, I will warn you that this can only be used to export ALL presets, and will overwrite whatever is in Ox when you import them. You can't export or import individual presets, so no sharing presets (yet). I may try to figure that out too because I am pretty sure it is possible. Also don't try to rename stuff in the json file, or mess with it at all, as this may have unintended consequences. Use this for backup/restore ONLY at this point.

--You will need the curl utility, which is included natively on MacOS but you'll need to download it for Windows. I haven't tested it on Windows.
--You will need to discover the IP address of your Ox and replace it in the commands below. I left mine in here (192.168.1.56) just for reference, and the :4718 needs to stay there, that is the port number.

Anyway, here it is:

Export using curl:
curl -H "Content-Type: application/json" -d "{}" "http://192.168.1.56:4718/presets/devices/hegel/export" >ox_presets.json

Import using curl:
curl -H "Content-Type: application/json" -d @./ox_presets.json http://192.168.1.56:4718/presets/devices/hegel/import
 

tomtama

Hall of Fame Member
This is great! Thanks for sharing it. It works perfectly, at least the backup. I won't be trying to restore it unless I need it for some reason.
 

Matt Hepworth

Master of the UADiverse
Forum Admin
Moderator
Well this has been a long time coming, and I finally got annoyed enough to figure it out. First, I will warn you that this can only be used to export ALL presets, and will overwrite whatever is in Ox when you import them. You can't export or import individual presets, so no sharing presets (yet). I may try to figure that out too because I am pretty sure it is possible. Also don't try to rename stuff in the json file, or mess with it at all, as this may have unintended consequences. Use this for backup/restore ONLY at this point.

--You will need the curl utility, which is included natively on MacOS but you'll need to download it for Windows. I haven't tested it on Windows.
--You will need to discover the IP address of your Ox and replace it in the commands below. I left mine in here (192.168.1.56) just for reference, and the :4718 needs to stay there, that is the port number.

Anyway, here it is:

Export using curl:
curl -H "Content-Type: application/json" -d "{}" "http://192.168.1.56:4718/presets/devices/hegel/export" >ox_presets.json

Import using curl:
curl -H "Content-Type: application/json" -d @./ox_presets.json http://192.168.1.56:4718/presets/devices/hegel/import
What?!

Badass!
 

fstrat76

Active Member
Nice find. If you ever mess up and accidentally save over a preset, it looks fairly easy to read the json backup file to find some settings for one preset and adjust manually if needed.
 

rodd

Hall of Fame Member
if anyone is interested in sending me their export I will see if I can come up with a way to share them. Send me a DM with a link to your file. thanks.
 

Bmanzer

Member
FYI - I tried this with the Win10 PowerShell utility and it failed.
It worked fine with the standard command line window.
 

timmytva

Member
That is a nice piece of nerdery right there. Well done.

Tim
 

crelons672

Member
Well this has been a long time coming, and I finally got annoyed enough to figure it out. First, I will warn you that this can only be used to export ALL presets, and will overwrite whatever is in Ox when you import them. You can't export or import individual presets, so no sharing presets (yet). I may try to figure that out too because I am pretty sure it is possible. Also don't try to rename stuff in the json file, or mess with it at all, as this may have unintended consequences. Use this for backup/restore ONLY at this point.

--You will need the curl utility, which is included natively on MacOS but you'll need to download it for Windows. I haven't tested it on Windows.
--You will need to discover the IP address of your Ox and replace it in the commands below. I left mine in here (192.168.1.56) just for reference, and the :4718 needs to stay there, that is the port number.

Anyway, here it is:

Export using curl:
curl -H "Content-Type: application/json" -d "{}" "http://192.168.1.56:4718/presets/devices/hegel/export" >ox_presets.json

Import using curl:
curl -H "Content-Type: application/json" -d @./ox_presets.json http://192.168.1.56:4718/presets/devices/hegel/import
Hey man, just found your fix.

Please setup a donation link or something because you are a life saver! 👏

And for people wondering where the file ends up or how to have the curl command save it somewhere else, here´s a little more help (Just replace what's in ALL CAPS AND UNDERLINED with your individual info, leave everything else as is, including quotation marks):


Export using curl:
curl -H "Content-Type: application/json" -d "{}" "http://YOUR IP:4718/presets/devices/hegel/export" >"/YOUR CHOSEN PATH/ox_presets.json"

Import using curl:
curl -H "Content-Type: application/json" -d @"/YOUR CHOSEN PATH/ox_presets.json" http://YOUR IP:4718/presets/devices/hegel/import
 
Last edited:
UAD Bundle Month
Top