I'm nearly finished with an app I've been working on, that allows my bangle JS to work as a TV remote control. I was thinking of learning how to create a mobile app (so the https requests from the watch can go directly to the TV via the app) however for now, I have a node webserver on an rpi and send the https request to that - which then sends commands to the TV.
In order to do this the bangle JS currently has my webservers IP and my login/password for the https server, included as variables inside the code. I obviously can't publish it with my variables but I'm unsure what the best approach here is, if we want to 'generalise' the code, so anyone can then assign their own variables.
I was thinking to comment in the project that you need to write a file to your watch that the code could then reference but wasn't sure if that's the easiest thing to do, to make things generalised for users.
Can someone confirm what the best/easiest approach would be for users to be able to assign their values? Alternatively I could draw some terrible keyboard screen so people can spend 10 minutes typing things in on the watch, but something tells me people won't appreciate that :)
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
I'm nearly finished with an app I've been working on, that allows my bangle JS to work as a TV remote control. I was thinking of learning how to create a mobile app (so the https requests from the watch can go directly to the TV via the app) however for now, I have a node webserver on an rpi and send the https request to that - which then sends commands to the TV.
In order to do this the bangle JS currently has my webservers IP and my login/password for the https server, included as variables inside the code. I obviously can't publish it with my variables but I'm unsure what the best approach here is, if we want to 'generalise' the code, so anyone can then assign their own variables.
I was thinking to comment in the project that you need to write a file to your watch that the code could then reference but wasn't sure if that's the easiest thing to do, to make things generalised for users.
Can someone confirm what the best/easiest approach would be for users to be able to assign their values? Alternatively I could draw some terrible keyboard screen so people can spend 10 minutes typing things in on the watch, but something tells me people won't appreciate that :)