GithubHelp home page GithubHelp logo

gabfv / logitech-g-hub-settings-extractor Goto Github PK

View Code? Open in Web Editor NEW
65.0 5.0 10.0 25 KB

This is a small python tool to extract the json file stored inside the "settings.db" file of the Logitech G Hub app. This allows you to update the json and then replace the file blob inside the db with the new json.

License: MIT License

Python 100.00%
logitech ghub

logitech-g-hub-settings-extractor's Issues

Possible to edit a backup settings.db?

My Ghub profile was corrupted.
I have a backup "\AppData\Local\LGHUB" but Ghub keeps giving me error "Unable to save changes. An unknown error occured"
When I run this py script (with my backup db), I get error "Failed to read blob data from sqlite table database disk image is malformed"

Is there anyway to transfer my settings from my backup settings.db over to Ghub?

How to import?

Now that I've used this script to extract a JSON file per the README, how do I import the JSON file into a new installation of Logitech GHUB? Could this info be added to the README?

image

Issues with macos

This program is intended to extract and replace the settings.json inside the settings.db used by Logitech G Hub.

Press Enter to continue.

Traceback (most recent call last):
File "ghub-settings.py", line 173, in
input()
File "", line 0

^

SyntaxError: unexpected EOF while parsing

Can't update settings.db on Windows

The G Hub settings.db database won't update when using G Hub 2024.6.6 on Windows 11. I used your code in my project, WoW Lights a couple of years ago. I'm updating WoW Lights now and things are fine on MacOS. But on testing Windows the changes I try to make in G Hub are ignored. First issue: quitting G Hub isn't enough anymore; the lghub agent holds the database open too; I was able to force-quit that. But, second issue: the database now has settings.db-wal and settings.db-shm files which indicate Logitech is using write-ahead logging and shared memory features in Sqlite. I think this breaks your code. Any suggestions, please?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.