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

Simulator documentation #62

Open
davidskeck opened this issue Mar 30, 2022 · 1 comment
Open

Simulator documentation #62

davidskeck opened this issue Mar 30, 2022 · 1 comment

Comments

@davidskeck
Copy link
Contributor

Apologies if I am just missing this, but I don't see any documentation about how to set up the simulator to use locally for creating watch apps. Is there a document that covers this? Thank you!

@joeycastillo
Copy link
Owner

There isn't yet; I need to make one. The closest thing is @a2's comments on the simulator pull request.

You'll need to install Emscripten and make sure that emmake is in your path. Then in a folder with a Makefile, run emmake make instead of make, and python3 -m http.server -d build/ to run a server locally. The URL is http://localhost:8000/watch.html. I have noticed that emmake doesn't seem to notice when files change and recompile them; until we figure out a workaround for that, I just delete the whole build folder after making a change.

Note also that the "Set location register" button in the simulator HTML page may not work when served locally, as the getLocation call fails when the page isn't being served over a secure connection.

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

No branches or pull requests

2 participants