Microsoft's ON{X}

Forum about other Home automation topics which can not be categorized in any other forum. So this needs to be Home automation Domotica related! (otherwise use Off Topic)

Microsoft's ON{X}

Postby freakstar » Wed Jun 06, 2012 10:05 am

https://www.onx.ms/


Link


Looks like an real easy and nice for Tasker on Android. Hope to configure the same settings ASAP. ("on WiFi connection set device value "Freek at home" at Yes" by example").
freakstar
Member
Member
 
Posts: 61
Joined: September 2011

Re: Microsoft's ON{X}

Postby AshaiRey » Wed Jun 06, 2012 1:36 pm

Oops,
You need a facebook account to login.. :evil:
This would be a 'throw-away' app for me.
Bram
AshaiRey
Advanced Member
Advanced Member
 
Posts: 932
Joined: February 2009
Location: Netherlands

Re: Microsoft's ON{X}

Postby Digit » Wed Jun 06, 2012 9:23 pm

I gave it a try and created 3 rules in less than 10 minutes:

- my wife can text me to get my current location;
- I am reminded to wear my tie when I arrive at work;
- a SMS is sent @ home when I leave work.

Just a few simple tests. The first one works OK, the rest I don't know yet :lol:

The need for Facebook authentication sucks and is one of the hottest topics on the on{x} forum, this is what the onx team writes about it on their blog:
Many people have raised questions regarding the need for authentication.
We hear you!
The reason we require authentication is to ensure privacy and make sure that only you can push code to your device.
In our first beta version, we’ve decided to use Facebook ID. We never post anything to Facebook, we just use it for authentication!
We plan to support additional authentication methods in the near future.
It would be great to get your input: which additional authentication method would you like to see?


However... to reply to the question in the quote above, you need to login with a Facebook account.... :roll:
User avatar
Digit
Global Moderator
Global Moderator
 
Posts: 3110
Joined: March 2006
Location: Netherlands

Re: Microsoft's ON{X}

Postby structor » Wed Jun 06, 2012 10:04 pm

I have tasker, which can do a lot on your droid. It's not a free app, but i'm very happy with it.
User avatar
structor
Member
Member
 
Posts: 125
Joined: September 2009
Location: Netherlands

Re: Microsoft's ON{X}

Postby Digit » Thu Jun 07, 2012 9:24 am

- I am reminded to wear my tie when I arrive at work;

The result was not what I expected: the reminder came 5 minutes after I arrived, while the radius for the location 'work' was set to 1000 meters.
Too late...
User avatar
Digit
Global Moderator
Global Moderator
 
Posts: 3110
Joined: March 2006
Location: Netherlands

Re: Microsoft's ON{X}

Postby airox » Mon Jul 16, 2012 11:05 am

Hi ppl,

I implemented on{x} into my system using the rules below which just call an URL in the case of an event on the phone.
Things which I have done with it:

1) When connecting to my WIFI at home and the phone hasn't been seen for a time disable the alarm and mark myself home.
This then turns on lights if necessary and disables power and such.

2) When the mode of transport turns to "driving" between 16:00 and 19:00 on a weekday then it tells throughout the house that I am driving towards home.
3) When my phone is home and there is an incoming call tell through the speakers in my house whoever is calling and display it on the touchpanel in the livingroom.
3) The same is done for SMS.
4) When my phone is home and it is getting empty tell through the speakers that I need to put it onto the charger.
5) Location is used for a lot of things.

Hopefully it has some use for somebody :-)

The concept works great so far!

Greetings,

Gijs

Code: Select all
var baseurl =’’;
var apikey = ‘’;

device.network.on("wifiOn", function (networkSignal){
    device.ajax({
      url: baseurl+'/webapi/exec.html?method=onxavailable&params[avail]=1&params[device]=156&apikey=' + apikey,
      type: 'GET'
    });
});

device.network.on("wifiOff", function (networkSignal){
   device.ajax({
      url: baseurl+'/webapi/exec.html?method=onxavailable&params[avail]=0&params[device]=156&apikey=' + apikey,
      type: 'GET'
    });
});

device.messaging.on('smsReceived', function (sms) {
   device.ajax({
      url: baseurl+'/webapi/exec.html?method=onxsms&params[txt]='+encodeURIComponent(sms.body)+'&params[from]='+encodeURIComponent(sms.from)+'&params[device]=156&apikey=' + apikey,
      type: 'GET'
    });
});


device.telephony.on('incomingCall', function (signal) {
   device.ajax({
      url: baseurl+'/webapi/exec.html?method=onxincomingcall&params[number]='+encodeURIComponent(signal.phoneNumber)+'&params[device]=156&apikey=' + apikey,
      type: 'GET'
    });
});

device.scheduler.setTimer({ name: "batLevelSend", time: 0, interval: 15*60*1000 },function () {
   device.ajax({
      url: baseurl+'/webapi/exec.html?method=onxbatlevel&params[level]='+encodeURIComponent(device.battery.status.percentage)+'&params[device]=156&apikey=' + apikey,
      type: 'GET'
   });
});

device.modeOfTransport.on('changed', function(signal) {
   device.ajax({
      url: baseurl+'/webapi/exec.html?method=onxtransport&params[mode]='+encodeURIComponent(signal.current)+'&params[device]=156&apikey=' + apikey,
      type: 'GET'
    });
});

var listener = device.location.createListener('PASSIVE', 120000);

listener.on('changed', function (signal) {
   device.ajax({
      url: baseurl+'/webapi/exec.html?method=onxlocation&params[long]='+encodeURIComponent(signal.location.longitude)+'&params[lat]='+encodeURIComponent(signal.location.latitude)+'&params[device]=156&apikey=' + apikey,
      type: 'GET'
    });
});

listener.start();
airox
Member
Member
 
Posts: 168
Joined: May 2010

Re: Microsoft's ON{X}

Postby Digit » Mon Jul 16, 2012 11:18 am

Gijs,
Keep an eye on the battery... I deleted the app from my phone 2 days ago.
Last week there was an update and after I installed the update, my phone battery went from 100 to 70% in ~9 hours!
I looked at what process was causing this and it was ON{x}... too bad...
Maybe I'll try again in the future, when I have something I really need to use ON{x} for.
User avatar
Digit
Global Moderator
Global Moderator
 
Posts: 3110
Joined: March 2006
Location: Netherlands


Return to Miscellaneous Home Automation topics

Who is online

Users browsing this forum: No registered users and 2 guests