Questions tagged [onx]

on{X} is a website, api and android app which allows a developer to remotely write javascript functions triggered by native device events such as unlocking the phone, receiving a phone call, etc.

on{X} is a website, api and android app which allows a developer to remotely write javascript functions triggered by native device events such as unlocking the phone, receiving a phone call, etc. (see full list below)


What is on{X}?

  • on{X} is a mobile application for Android that exposes the device triggers and actions through a JavaScript object, called ‘device’. Use the on{X} website to write JavaScript scripts (aka, rules) that use the ‘device’ object and ‘push’ them to your Android phone. When the on{X} app is installed on your phone, you can use on{X} website to remotely program your phone and create new personalized behaviors and experiences.

From the Blog:

A developer oriented service that enables us, the developers and technological enthusiasts, to easily program our mobile device to dynamically react to the continuously changing environment. The code we write is an action that we hook up to a sensor-based event. For example: “AC power disconnected” or “WiFi network detected”. Do you want some more sophisticated examples? How about “User mode-of-transport just changed from walking to driving” or “user left home”? For each such triggering event, we can easily create reactions. Instead of limiting the reaction to a simple list of actions, we are offering the full power of JavaScript. That’s right, you can push any arbitrary JavaScript code, remotely, down to your mobile device and hook it up to a continuous signals sensing framework that you only need to download and install once. The possibilities are wide open – you no longer need to worry about the target platform. Even better, we are offering the use of the advanced technology we put in the system that is constantly optimizing the power drain on the battery – you simply don’t need to worry about having a hot dead phone in your pocket after only 4 hours of use.

Prerequisites

  • To get started with on{X} you don’t need any experience developing mobile apps. Basic JavaScript programming skills will do.

Triggers

  • Triggers are events occurring on your phone, such as receiving a text message, unlocking the screen, finding a new WiFi network, etc. The ‘device’ JavaScript object, allows you to register a callback to be executed upon event triggering.

Actions

  • Actions are operations supported by the ‘device’ JavaScript object, such as sending text messages, sending emails, launching a web browser, showing notifications, etc.

Installing, testing and debugging your rules

  • on{X} requires you to register on their site with facebook in order to create rules to push to your android device. From the site you can update and edit rules at any times and view the console from the browser.
6 questions
4
votes
1 answer

Getting the current location of a device using the on{X} api

I've been playing with the on{X} api and i'm trying to get some location data however as much as I try I cannot figure out how to get the /current/ location. Documentation: https://www.onx.ms/#apiPage/location This is their example: //…
Michael Zaporozhets
  • 23,588
  • 3
  • 30
  • 47
3
votes
1 answer

How can I enable sync with on{x}

Is there a way to turn on/off Sync with on{x} scripting?
Paul Sheldrake
  • 7,505
  • 10
  • 38
  • 50
2
votes
0 answers

CMake on Ubuntu: Could NOT find Threads (missing: Threads_FOUND)

I'm trying to compile Onx and I am receiving a CMake error message. I am receiving this error on my ubuntu 20.04 lts: Could NOT find Threads (missing: Threads_FOUND) I'm waiting your comments. Thanks for help
efeozkesici
  • 455
  • 1
  • 7
  • 14
2
votes
2 answers

How on{X} works?

I recently got to know about on{X}, which allows user to define rules and trigger actions based on the rule. How this works exactly? How on{X} makes device calls? Does it have a base application running on Android phone and then programming on top…
ravs
  • 63
  • 4
1
vote
1 answer

How do I check what is in "device.calendar.ongoing" in on{x}?

I want log the data in device.calendar.ongoing so I can debug a problem with my script. I have tried if (device.calendar.ongoing.length > 0) { console.log("All items: " + JSON.stringify(device.calendar.ongoing)); } but that returned All…
Mike Wills
  • 20,959
  • 28
  • 93
  • 149
-2
votes
1 answer

Is it possible to use google-apps-script as backend for ms on{X}?

I'm trying to use google-apps-script as "prototype-quality" backend with microsoft on{X} ("on{X} (pronounced like 'on-ex') lets you control and extend the capabilities of your Android phone using a JavaScript API to remotely program it") it can do…
Yurash
  • 51
  • 3