DroidScript App Integration

Posted on
  • I'm looking to create an app for the Bangle that integrates with a phone app so you can control the app via the phone.

    I've got the DroidScript plugin and I can control the Bangle but I'm not sure how best to get it to control the app and not just the Bangle. My only thought is to make the app modify a file stored on the bangle and make the app react to the changes in the file.

    Does anybody else have any better suggestions or something I'm overlooking?

  • So you want to control the Bangle.js app from the phone app? Or the phone app from Bangle.js?

    I'm not entirely sure I understand what you're asking - if you want to send commands to an app that's running, I'd say the easiest method would be to create a function in your Bangle.js app, say called MYAPP.

    You could then call that function using DroidScript and pass whatever data you want to it - for example by sending 'MYAPP({msg:"Hello",data:"World"})\n'

  • Yeah what I'm trying to do is create a tamagotchi style app where the pet lives on the bangle but you use the phone to send the commands to it (feed/play/clean/etc).

    Apologies if these are stupid questions, this is the first time I've used JavaScript for anything other than filling in a form. Loving how instant the feedback is from tweaking a line to having it update on your watch.

  • You got my attention on Tamagochi... perhaps you can start a simple app to feed it with Bangle's buttons, then upgrade that to connect to the phone if that's needed/desired. I'll love to see this in action.

  • Post a reply
    • Bold
    • Italics
    • Link
    • Image
    • List
    • Quote
    • code
    • Preview

DroidScript App Integration

Posted by Avatar for Taffaz @Taffaz