{"id":1475,"date":"2014-06-26T04:45:02","date_gmt":"2014-06-26T08:45:02","guid":{"rendered":"http:\/\/345am.com\/?p=1475"},"modified":"2014-06-26T04:45:02","modified_gmt":"2014-06-26T08:45:02","slug":"using-trigger-tasker-for-nfc-automated-foursquare-checkins","status":"publish","type":"post","link":"https:\/\/345am.com\/?p=1475","title":{"rendered":"Using Trigger &#038; Tasker for NFC Automated Foursquare Checkins"},"content":{"rendered":"<p>I&#8217;m using an HTC M8 running KitKat along with\u00a0<a title=\"Tasker\" href=\"https:\/\/play.google.com\/store\/apps\/details?id=net.dinglisch.android.taskerm\" target=\"_blank\" rel=\"noopener\">Tasker<\/a>\u00a0v.4.3\u00a0and <a title=\"Trigger\" href=\"https:\/\/play.google.com\/store\/apps\/details?id=com.jwsoft.nfcactionlauncher\" target=\"_blank\" rel=\"noopener\">Trigger<\/a>\u00a0v.8.5\u00a0to add in NFC support.<\/p>\n<p>Assumptions for this guide are that you have:<\/p>\n<ol>\n<li>A phone that supports NFC<\/li>\n<li>Some programmable NFC stickers or badges<\/li>\n<li>A Foursquare account, valid OAuth token, and a VenueID you would like to use. If not, visit <a title=\"Foursqaure for Developers\" href=\"https:\/\/developer.foursquare.com\/\" target=\"_blank\" rel=\"noopener\">Foursquare&#8217;s Developer Site<\/a> before proceeding<\/li>\n<\/ol>\n<p><strong>STEP 1 &#8211; Install &amp; Configure Tasker<br \/>\n<\/strong><\/p>\n<ol>\n<li>Launch Tasker and enter Preferences<\/li>\n<li>Touch to the MISC tab and enable &#8220;Allow External Access&#8221;<\/li>\n<li>Save\/Confirm changes, and close Tasker<\/li>\n<\/ol>\n<p><strong>STEP 2 &#8211; Install Trigger<\/strong><\/p>\n<ol>\n<li>The order of installation apparently makes a difference, so make sure to install it after Tasker<\/li>\n<\/ol>\n<p><strong>STEP 3 &#8211; Create a Foursquare Checkin Task<\/strong><\/p>\n<ol>\n<li>Launch Tasker<\/li>\n<li>Touch to enter the Tasks tab<\/li>\n<li>Add a new task, and label it whatever you&#8217;d like<\/li>\n<li>When prompted to &#8220;Click + to add an Action&#8221;, do so and select the &#8220;Net&#8221; option<\/li>\n<li>Within the &#8220;Net&#8221; action group, select &#8220;HTTP Post&#8221;<\/li>\n<li>For the &#8220;Server:Port&#8221; enter the following: \u00a0https:\/\/api.foursquare.com<\/li>\n<li>For the &#8220;Path&#8221; enter the following: \u00a0\/v2\/checkins\/add?venueId=VenueIDHere&amp;oauth_token=OauthTokenHere&amp;v=YYYYMMDD<br \/>\n<em>Example: \u00a0\/v2\/checkins\/add?venueId=5642309487SDFdsda29&amp;oauth_token=0NVSDFJSDHFDSKFJDSFAFDAWBS&amp;v=20140626<\/em><\/li>\n<li>Save the Task and press the Play icon from the Task Edit section to run the task and confirm it&#8217;s working as expected<\/li>\n<li>All done with Tasker<\/li>\n<\/ol>\n<p><strong>STEP 4 &#8211; Create an NFC based Trigger<\/strong><\/p>\n<ol>\n<li>Launch Trigger<\/li>\n<li>Touch\u00a0the &#8220;+&#8221; icon to add a new Trigger<\/li>\n<li>Touch the &#8220;+&#8221; icon once again to define what the Trigger will be based on, and select &#8220;NFC&#8221;<\/li>\n<li>You&#8217;ll receive a prompt indicating that you&#8217;ll be able to write this trigger to an NFC tag once done. Touch &#8220;Next&#8221; to proceed<\/li>\n<li>Define any Restrictions for when this trigger will be applicable, or just touch\u00a0Done to proceed with the default settings of &#8220;No Restrictions&#8221;<\/li>\n<li>Touch Next to proceed with what this Trigger will do once activated<\/li>\n<li>Touch the &#8220;+&#8221; icon once again to choose between categories of actions, scroll down to Tasker and check the &#8220;Tasker Task&#8221; box and touch &#8220;Next&#8221; to proceed<\/li>\n<li>Touch the magnifying glass to reveal all Tasks configured within Tasker and select the one configured above to checkin to your Foursqaure venue<\/li>\n<li>One done, you&#8217;re returned to the Tasks section where you can add or define other actions which should take place with the trigger is activated<\/li>\n<li>Touch Next to proceed and you&#8217;ll be prompted to configure a &#8220;Switch&#8221; set of actions. Click Done to proceed<\/li>\n<li>You&#8217;ll be taken to a screen where Trigger will wait for you to present or tap an NFC tag to program it. Once done, you&#8217;ll receive an audio\/visual confirmation<\/li>\n<li>Touch Done when finished and you&#8217;ll be returned to the Tasks\/Triggers screen to reveal which triggers are currently enabled and what their actions are<\/li>\n<\/ol>\n<p><strong>STEP 5 &#8211; Test it out!<\/strong><\/p>\n<ol>\n<li>Close out of Tasker and Trigger<\/li>\n<li>With the phone unlocked, tap your programmed NFC tag and Trigger should pick up from there<\/li>\n<li>Based on the Trigger you&#8217;ve set up it will check you into the predefined venue and kick off any other actions you may have set<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;m using an HTC M8 running KitKat along with\u00a0Tasker\u00a0v.4.3\u00a0and Trigger\u00a0v.8.5\u00a0to add in NFC support. Assumptions for this guide are that you have: A phone that supports NFC Some programmable NFC stickers or badges A Foursquare account, valid OAuth token, and a VenueID you would like to use. If not, visit Foursquare&#8217;s Developer Site before proceeding [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8,9],"tags":[],"class_list":["post-1475","post","type-post","status-publish","format-standard","hentry","category-fyi","category-geek-alert"],"_links":{"self":[{"href":"https:\/\/345am.com\/index.php?rest_route=\/wp\/v2\/posts\/1475","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/345am.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/345am.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/345am.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/345am.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1475"}],"version-history":[{"count":0,"href":"https:\/\/345am.com\/index.php?rest_route=\/wp\/v2\/posts\/1475\/revisions"}],"wp:attachment":[{"href":"https:\/\/345am.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1475"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/345am.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1475"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/345am.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1475"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}