Homely icon indicating copy to clipboard operation
Homely copied to clipboard

Settings don't sync between computers

Open chrisvelevitch opened this issue 10 years ago • 8 comments

When I create my settings and the install Homely on another computer, the settings aren't sync'ed. Also when I change settings the other computer should also be sync'ed.

chrisvelevitch avatar Aug 20 '14 12:08 chrisvelevitch

The problem with Chrome's synced extension storage is the size limit for each item. Because all of the links are stored under a single key, it goes over the size limit after about 6 blocks.

In theory, the rest of the settings should sync okay, but we might need some other way of storing links (perhaps with the Chrome filesystem APIs).

Terrance avatar Aug 20 '14 18:08 Terrance

Seems the FileSystem API is only available to apps, not extensions. Investigating use of sync storage by flattening individual settings into their own keys, but this currently goes over the max items limit instead.

For now, might just have to implement this as importing/exporting a settings file (you can then synchronize it yourself between devices, e.g. cloud storage).

Terrance avatar Aug 27 '14 21:08 Terrance

Hi. Is sync between machines still not feasible for this extension? It's a terrific way of presenting important links--the best I've found--but the absence of automatic sync is a big drawback.

keithfrankish avatar Oct 09 '17 14:10 keithfrankish

Unsure, I haven't taken a look recently. I know extensions exist with arbitrary sync storage (SwitchyOmega and μBlock come to mind), so I might have to prod them and see how they do it. Possibly the FileSystem APIs have been extended to extensions now, or there's a separate API I can use.

Previously the links were too much to store in a single database key of the sync storage, but also too numerous to store in their own keys.

Terrance avatar Oct 10 '17 17:10 Terrance

Looks like they both achieve their storage through chunking their own config. 🤔

Given our config serializes into JSON, this is doable, if a bit ugly.

Terrance avatar Oct 10 '17 20:10 Terrance

Any progress on this one?

Droyk avatar Apr 28 '19 07:04 Droyk

Any progress on this one? Have the sync function would be perfect.

augustusy avatar Dec 26 '19 13:12 augustusy

@Terrance chrome.storage.sync can use Chrome's sync

ShunCai avatar Jan 01 '20 09:01 ShunCai