-
I'm able to write to
setting.json
andshadowclk.json
no problem and that handles all the settings on the watch side, but I want to be able to set the preview in my HTML code to match the data in the watch. I've tried using puck.eval() and Util.read but it's possible I was using them wrong. At one point I was inspecting the HTML code while it was running with breakpoints and I could see it read the file correctly while it was being parsed byinterface.js
but then it stepped intopuck.js
and the data never made it back into the HTML script for the preview to use.
EDIT: Sorry, I didn't read your question properly. I don't know how to do what you're asking for 🙃
You can upload the shadowclk.json file to the bangle by specifying it in the metadata.
One example where I upload JSON files on app install is here: https://github.com/thyttan/BangleApps/trÂee/my-setup/apps%2Fmysetup