Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Download dump file for homebridge-deconz and homebridge-hue2 #1268

Open
ebaauw opened this issue Jan 10, 2022 · 3 comments
Open

Download dump file for homebridge-deconz and homebridge-hue2 #1268

ebaauw opened this issue Jan 10, 2022 · 3 comments

Comments

@ebaauw
Copy link
Contributor

ebaauw commented Jan 10, 2022

Is your feature request related to a problem? Please describe:

I'm finally migrating homebridge-hue to dynamic platform accessories. Rather than updating the plugin, forcing a big-bang migration, I'm actually creating two new plugins: homebridge-deconz and homebridge-hue2, see ebaauw/homebridge-hue#1070. Both new plugins will be creating a dump file, just like homebridge-hue.

Describe the solution you'd like:

Same feature as #676 for homebridge-hue: an option to download the dump file from the plugin Settings in the UI.

The dump files will be named: homebridge-deconz.json.gz and homebridge-hue2.json.gz.

Describe alternatives you've considered:

None. If it ain't broke...

Additional context:

Since the new plugins can now persist data in cachedAccessories, there's no longer a need to add the API key (username) to config.json. Consequently, I'm also getting rid of the user-defined keys in config.json.

I'm still in the process of developing the new plugins, and they're not yet creating the dump files, so there's no hurry to implement this. Just filing the issue already, so you can do this at a moment that's convenient for you. As always, thanks!

@github-actions github-actions bot added the stale label Feb 10, 2022
@oznu oznu added pinned and removed stale labels Feb 10, 2022
@homebridge homebridge deleted a comment from github-actions bot Feb 10, 2022
@ebaauw
Copy link
Contributor Author

ebaauw commented Feb 20, 2022

I'm actually trying to create a dynamic settings interface, using @homebride/plugin-ui-utils. Maybe I could create the option to download the dump file there?

How do I create a button on the form that looks like the DOWNLOAD button? Or like the SAVE? I managed to create a button alright, but I cannot make it black or purple - only ugly white, red, or blue.

I do see an error in Safari's JavaScript console, but I don't think it causes any ill effects:

Error while parsing the 'sandbox' attribute: 'allow-downloads' is an invalid sandbox flag.
setAttribute — main-es2015.9d482d945810494ac85a.js:1:291804
setAttribute — main-es2015.9d482d945810494ac85a.js:1:2287626
Tt — main-es2015.9d482d945810494ac85a.js:1:128272
mo — main-es2015.9d482d945810494ac85a.js:1:172260
bo — main-es2015.9d482d945810494ac85a.js:1:172892
template — main-es2015.9d482d945810494ac85a.js:1:2150553
$i — main-es2015.9d482d945810494ac85a.js:1:156161
qi — main-es2015.9d482d945810494ac85a.js:1:154357
fn — main-es2015.9d482d945810494ac85a.js:1:162256
(anonymous function) — main-es2015.9d482d945810494ac85a.js:1:154558
qi — main-es2015.9d482d945810494ac85a.js:1:154567
create — main-es2015.9d482d945810494ac85a.js:1:215566
_createFromComponent — main-es2015.9d482d945810494ac85a.js:1:423435
open — main-es2015.9d482d945810494ac85a.js:1:421622
(anonymous function) — main-es2015.9d482d945810494ac85a.js:1:2152794
generatorResume
o — main-es2015.9d482d945810494ac85a.js:1:2491729
onInvoke — main-es2015.9d482d945810494ac85a.js:1:229053
run — polyfills-es2015.e8bb8be2ebc926cac2d0.js:1:1916
(anonymous function) — polyfills-es2015.e8bb8be2ebc926cac2d0.js:1:16689
onInvokeTask — main-es2015.9d482d945810494ac85a.js:1:228873
runTask — polyfills-es2015.e8bb8be2ebc926cac2d0.js:1:2535
m — polyfills-es2015.e8bb8be2ebc926cac2d0.js:1:9130
invokeTask — polyfills-es2015.e8bb8be2ebc926cac2d0.js:1:8209
p — polyfills-es2015.e8bb8be2ebc926cac2d0.js:1:20146
f — polyfills-es2015.e8bb8be2ebc926cac2d0.js:1:20465
setAttribute — main-es2015.9d482d945810494ac85a.js:1:291804

@bwp91
Copy link
Contributor

bwp91 commented Oct 12, 2023

hi erik just going through some of the issues here, did this come to a resolution?

@ebaauw
Copy link
Contributor Author

ebaauw commented Oct 12, 2023

Not yet. Homebridge deCONZ is now on v1.x and fully functional, except for the dynamic settings interface. I’m more into backends and not really experienced in UI development (that’s why I’m using Homebridge in the first place: to let HomeKit handle the UI).

I looked into creating a PR for homebridge-config-ui-x, but had a hard time understanding the code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants