Sure thing. I'll submit this as a how to with a cleaner writeup later, but I'll use you all as my guinea pigs to make sure its clear first:
1) Code up
this macro in the CML Macro thingey, compile/package it, import it. (I stole it from znelbok and barely changed it, hence the random mentions about camera stuff). NOTE: YOU MAY NEED TO TWEAK THE VARIABLES DRIVER NAME & FIELD NAME in the code. I have sample-variables-driver and NFCTagReceived, so either you need to also use those exact names or change it.
2) Have I mentioned you need to set up a variables driver field and add a string field called NFCTagReceived (unless you changed it to something else in which case add that).
3) In tasker, set up one task for each widget you're going to want. I'm using Browse URl/URL, although the one side effect is that it physically opens Chrome. I'm trying to get HTTP GET or HTTP POST to work, but it ain't. My line is:
Quote:http://IVBIsAStud.homedns.org:11001/CMLB...NFC?Cmd=<2 letter code to keep URL short>
.
Vary the two letter code for each event. IE, my code for this particular one is HL (Home, lights on). I use tasker with NFC, so I also have tasks for things like LV (leaving), VD (vivek docked, and yes I know the abbreviation)
4) On your phone, add a Tasker widget that calls that task.
4) In the CQC Admin Interface, BrowseFields section, set up a trigger on that field for any change.
5) In the CQC Event Server, set up one triggered event for each task that looks for "Is New Fld Value For", that field, and whatever 2 letter codes you used. Add whatever actions you want. Don't just have to be lighting related, could be anything/everything you do with CQC.
I think thats it.