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)
Post Reply
freakstar
Member
Member
Posts: 118
Joined: Thu Sep 22, 2011 4:07 pm

Microsoft's ON{X}

Post by freakstar »

https://www.onx.ms/



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").
AshaiRey
Senior Member
Senior Member
Posts: 1310
Joined: Mon Feb 02, 2009 5:27 pm
Location: Netherlands
Contact:

Re: Microsoft's ON{X}

Post by AshaiRey »

Oops,
You need a facebook account to login.. :evil:
This would be a 'throw-away' app for me.
Bram
Digit
Global Moderator
Global Moderator
Posts: 3388
Joined: Sat Mar 25, 2006 10:23 am
Location: Netherlands
Contact:

Re: Microsoft's ON{X}

Post by Digit »

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
structor
Member
Member
Posts: 125
Joined: Tue Sep 22, 2009 8:12 pm
Location: Netherlands

Re: Microsoft's ON{X}

Post by structor »

I have tasker, which can do a lot on your droid. It's not a free app, but i'm very happy with it.
Digit
Global Moderator
Global Moderator
Posts: 3388
Joined: Sat Mar 25, 2006 10:23 am
Location: Netherlands
Contact:

Re: Microsoft's ON{X}

Post by Digit »

- 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...
airox
Member
Member
Posts: 214
Joined: Sat May 15, 2010 10:42 pm

Re: Microsoft's ON{X}

Post by airox »

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();
Digit
Global Moderator
Global Moderator
Posts: 3388
Joined: Sat Mar 25, 2006 10:23 am
Location: Netherlands
Contact:

Re: Microsoft's ON{X}

Post by Digit »

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.
Post Reply

Return to “Miscellaneous Home Automation topics”