download / backup / sync (big) files #5131
Replies: 1 comment
-
Posted at 2021-09-03 by @gfwilliams Generally to download data from apps I'd go to https://banglejs.com/apps/, connect, click I haven't heard of there being issues pulling large files off the Bangle with the app loader recently. I think the Web IDE could still have a timeout for large files. If you're having issues I can look into it though. There's no app with background sync or anything like that though - but it's an interesting thought. Posted at 2021-09-03 by uname I hadn't tried switching from https://banglejs.com/apps/, I confirm it worked the first time with no problems. Thanks! Posted at 2022-03-14 by Peter_Bernscheider I think, it´s very good idea to provide a backup/restore functionality in the IDE or in the app loader, which could restore all apps and all settings after a total crash of the watch. Why do I think, that this a good idea: Yesterday my Bangle2 was stuck, error message "Storage corrupted", then booted with a default set of apps, my apps all gone, all settings back to default. I had to repeat the app installation and settings process for all my apps and than upload my modified source code - tedious task! It would have been much easier to restore the last backup. Posted at 2022-03-14 by @gfwilliams I had been wondering about implementing something like this - but I wonder if many people would actually perform a backup? I guess even if not, being able to download every file into a Zip would be a pretty neat addition Posted at 2022-03-14 by rigrig
I've gone through the whole "reinstall my apps, reconfigure settings" a few times now, so I definitely would. Posted at 2022-03-14 by ChrisS
I have already done that multiple times by downloading (and later restoring) every file (or at least the data / config files) one by one which is cumbersome. Posted at 2022-03-14 by @halemmerich I would use that backup to duplicate all apps/settings to a second bangle when debugging or reproducing behaviour on different firmwares. Posted at 2022-03-14 by nicoboss
I had to do a complete reinstallation three times already, and even if it allowed me to sort out and reinstall only the apps I really needed, I would have liked to find more easily the few code modifications and the created data. So, I am for the possibility of making a general Backup :) Posted at 2022-03-14 by Serj
I've wanted this feature for a long time! And it's nice that others need it too! Posted at 2022-03-15 by @gfwilliams I've just added Backup/Restore functions to the 'More...' tab of the development app loader - let me know how it goes! To make it work nicely I had to tweak the app upload code, so please keep an eye on that and let me know if you see any issues Posted at 2022-03-15 by uname Perfect, thanks @gfwilliams! Edited: I get this error: "Backup failed, Uncaught Error: Can't get pointer to data to write" Posted at 2022-03-15 by @gfwilliams
Wow, that's odd. And that's backing up? I wonder whether you have a watch face that's causing the error and it gets picked up by the backup tool. I've just made some changes so the Bangle is reset before the backup starts, so that should fix it for you Posted at 2022-03-15 by @halemmerich Had the same problem on backup, the reset seems to fix it. The resulting zip file however is empty. Changing line 48 in backup.js to
fixes that as Edit: Browser is Chromium 98.0.4758.102 (Offizieller Build) Arch Linux (64-Bit) Posted at 2022-03-15 by Minnten Hello @gfwilliams, Since this update I am not able to upload apps with the development app loader. The stable app loader works well. Greetings Posted at 2022-03-15 by @halemmerich Changing line 68 in comms.js from
to
seems to fix that. No idea if that has other side effect though. Posted at 2022-03-15 by @gfwilliams Ahh, thanks! Just fixed - that was my fault. Tried to fix a lint error and inadvertantly broke it :) And thanks for spotting the Posted at 2022-03-15 by uname now works! Posted at 2022-03-15 by rigrig Awesome! At some point last week I abandoned a firmware update, and the download choked on
And after every single file, the IDE console shows a SyntaxError:
Edit: the caret points at the final closing parenthesis. Posted at 2022-03-15 by nicoboss wow, bravo, you have once again fulfilled one of our wishes, and in record time! you are really fantastic my first attempt unfortunately ended three quarters of the way through with a "backup failed, execution interrupted", but I'll try again :-) Attachments: Posted at 2022-03-17 by jeroenpeters1986 Yes, I think this is very useful. Somehow my Bangle.JS2 had to be reset 9 or 10 times now since I received it in december due to "storage corrupt". Sometimes 2 times in one week.. Posted at 2022-03-17 by @gfwilliams
Have you updated your main Bangle.js firmware version? I know before 2v12 there were issues but I believe this is pretty much sorted now.
I've just made it ignore this file. There was an issue with the built-in readFile function if the file wouldn't fit in RAM - so I think that's what was being hit here. I'm trying to get a fix in now. Posted at 2022-03-17 by @gfwilliams Ok, hopefully fixed now Posted at 2022-03-17 by jeroenpeters1986
Hey Gordon, yes I did, it seems pretty stable since the last firmware update. I think it 'crashed' 1 time since that, so I am optimistic, but still very happy with the backup/restore button!! Posted at 2022-03-17 by @gfwilliams
Ahh - that could actually have been because of corrupted data left over from the previous firmware, so it's not entirely unexpected. Hopefully that'll have been the last time you see it! Posted at 2022-04-29 by nicoboss Hi, I had given up the idea of making a backup using my iPad, because it seems that the contextual menus to choose for example where to save the files do not work under iOs (at least not on the versions I tested: iPad Pro under os14.8 and 15.4) But I get this error (image attached). I guess one of the files in the Bangle is corrupted and/or has characters that are bothering the backup program. for info, about a week ago, after a failed compaction, I did a factory reset, a firmware update and reinstalled the apps I wanted Any idea before i re-factory-reset the watch ? Attachments: Posted at 2022-04-29 by nicoboss edit to the previous message : Posted at 2022-05-03 by @gfwilliams Thanks - out of interest, which file was it? Just fixed it in the development app loader I think - it's an issue with the default Posted at 2022-05-03 by nicoboss
The files were FontLECO1976Regular.js and SPHCalendar.app.js (not sure for the second one, but just in case i have re-installed it before the new backuping attempt) Posted at 2022-08-24 by youphyun This is really great, are there any know constraints? For example should I make sure that the firmware version of the backup is the same as the actual firmware on the watch? Posted at 2022-08-24 by @halemmerich I would expect no more trouble than you get by normal updating. The backup only restores the files to the storage and does not touch the firmware. You can of course hit specific incompatibilities between firmware and app versions, but there is no generic problem with restoring older apps onto newer firmware. Just update them as usual after restoring to prevent most problems. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2021-09-02 by uname
maybe it's a stupid question but do we have apps available to backup or sync files from our smartwatch via bluetooth?
Or is the only way at the moment to go through the ide?
I can't download files that I guess are too big (banglerun trace) how can I get it?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions