uploading files (not apps) #6258
Replies: 1 comment
-
Posted at 2020-05-04 by @gfwilliams
There's some stuff in the App Loader for this. For example the That works with an HTML file that creates and uploads an app on demand: https://github.com/espruino/BangleApps/blob/master/apps/qrcode/qrcode.html There's something called Right now you have to call that before uploading your app - it can create a separate file, or a static list in an app. There's also 'interface' (eg as used for the Stopwatch) which allows your to communicate with the watch once your app is installed (eg https://github.com/espruino/BangleApps/blob/master/apps/swatch/interface.html) but that might be a step too far in this case? (by the way, if you highlight your code and click the Posted at 2020-05-04 by FransM Thanks Gordon! Actually the primary use case I had in mind was cycling directions. The grocery example looks pretty straightforward although probably I prefer to use BTN4 and 5. Maybe easier to use while cycling. A few maybe not too related questions: And is there a way to upload a regular file directly (I'm running linux if that matters and can launch a web app if needed). So I can just push the file towards my bangle. Thanks, Frans. PS: and if these are silly questions or the answer is already somewhere just point me to it. I'm still in the process of finding my way. Posted at 2020-05-05 by @gfwilliams
Yep - there's a little GitHub cat logo just below each app's icon. Click on it and you go to the source :)
There's no command-line way of doing it at the moment I'm afraid. You'd have to use the IDE. It's possible that the Espruino CLI could be updated to allow Storage uploads, but that hasn't been done yet. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2020-05-04 by FransM
I'm writing a small app for my bangle to allow scrolling through a list of items (e.g. navigation directions, but this could apply to shopping lists as well).
For that I am looking for a way to upload the directions file (or shopping list).
Is that possible?
Below is a simplified example, but that one uses a static array.
I know how to read the info from a file, but it is not clear to me what the best way is to upload the file.
(BTW: I also considered a small generator that creates a dedicated app, but I feel that is more cumbersome).
Thanks, Frans
PS: and pardon me if this is the wrong forum, but I felt none of the forums was really applicable.
Beta Was this translation helpful? Give feedback.
All reactions