Does anyone know of any utilities that anyone has written for working with .gwbk files?
Basically, I would like something to script the renaming of the gateway inside the file and script changes to the UPC device paths.
I know the .gwbk is just an archive file but I don’t want to reinvent the wheel if I don’t have to.
Looking for python or C# libraries but really anything would be better than nothing.
The .gwbk is just a zip compressed file, so libraries abound. The actual database file is a SQLite database. I know for a fact Python has wrappers for sqlite, and I would be shocked if C# didn’t have similar capabilities.
Be warned that making direct modifications is going to be an opaque process that we explicitly don’t support or provide documentation for. You’ll have to reverse engineer our data representation(s) and we could change them between versions.
Except for a few XML and the json files in the zip, nothing will be easy. The bulk of the sqlite content is binary representations of java resources or module-specific settings. Device settings in particular are driver-specific.
Good luck. You will need it.
Yes, I knew all of that.
I am going to take that as a no then on there being a preexisting tool.