Bouni / kicad-jlcpcb-tools

Plugin to generate BOM + CPL files for JLCPCB, assigning LCSC part numbers directly from the plugin, query the JLCPCB parts database, lookup datasheets and much more.
MIT License
1.13k stars 102 forks source link

Change parts db path #377

Open dzid26 opened 10 months ago

dzid26 commented 10 months ago

Is your feature request related to a problem? Please describe. The database is by default downloaded here Documents are by default synchronized to the the cloud. It's a Windows thing and it is convenient. Sycnhroinizing plugins and other kicad settings might be convenient too. Unfortunately, jlcpcb plugin stores 2GB of JLC data in the documents as well. C:\Users\dzidm\OneDrive\Documents\KiCad\7.0\3rdparty\plugins\com_github_bouni_kicad-jlcpcb-tools\jlcpcb

Describe the solution you'd like Change default path for storing database.

Describe alternatives you've considered Ability (setting) to move jlc database to some external temp folder.

Additional context

image
dzid26 commented 10 months ago

OneDrive also gives the ability to exclude specific uploads based on file extensions. I think this requires changing group policy.

image

*.bak is a no-brainer.
Excluding .db is not ideal, but a viable workaround.

image

Hmm, actually, OneDrive interface allows only to exclude 3 letter extensions.

Hmm, after removing part.db.bak OneDrive removed it locally despite .bak exclusion. Fortunately after recreating the file, it was not uploaded and was not removed.

Btw, bonus, turning on windows NTFS file compression on the folder saves 750MB on the disk per db.

image
Bouni commented 10 months ago

I agree that we should have a config option for setting the path for the db file. Will look into it soon. About the compression, there is not much I can do and I don't want to put too much effort into a platform specific feature.