# Orientation Change Triggers Tracking

**URL:** <https://discuss.blues.com/t/orientation-change-triggers-tracking/2992>\
**Category:** Notecarrier A\
**Created:** [April 16, 2025, 12:25pm UTC](https://discuss.blues.com/t/orientation-change-triggers-tracking/2992 "2025-04-16T12:25:28Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![DSKUP](https://avatars.discourse-cdn.com/v4/letter/d/59ef9b/32.png) [@DSKUP](https://discuss.blues.com/u/DSKUP)\
**Post date:** [April 16, 2025, 12:25pm UTC](https://discuss.blues.com/t/orientation-change-triggers-tracking/2992/1 "2025-04-16T12:25:28Z")

</div>

Hi there,

I’m experimenting with using Notecarrier A as an anti-theft component within outdoor security cameras. Basically I’m trying to track the location of the camera itself, should it be stolen along with the assets it is monitoring. With the card configured to start tracking location upon motion sense, I’m getting a load of unwanted triggers do to micro-movements of the camera mounting surface (large trees). Ideally I would configure it to trigger tracking only when the orientation changes, and thereafter it sends periodic events to track location. Is this possible? Do you happen to have a tutorial for a similar application? I’ve found useful information on both location tracking, as well sending an event upon orientation change, but I can’t seem to effectively put them together. Appreciate any advice/info you can offer.

---

<div class="post-metadata">

**Author:** ![abucknall](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.blues.com/abucknall/32/1335_2.png) [@abucknall](https://discuss.blues.com/u/abucknall)\
**Post date:** [April 16, 2025, 1:03pm UTC](https://discuss.blues.com/t/orientation-change-triggers-tracking/2992/2 "2025-04-16T13:03:09Z")

</div>

Hi @DSKUP,

The API you are looking for is [card.motion.sync](https://dev.blues.io/api-reference/notecard-api/card-requests/latest/#card-motion-sync), you can configure the `threshold` parameter to `0` which will mean that you only get an alert if the orientation changes.

Here’s an example that might be of interest to you, [Sign and Door Tilt Sensor - Accelerators - Blues Developers](https://dev.blues.io/accelerators/sign-and-door-tilt-sensor/), specifically examining the `threshold` value and how it will only trigger on orientation change and not bumps or knocks.

Let me know if this helps,  
Alex

---

<div class="post-metadata">

**Author:** ![DSKUP](https://avatars.discourse-cdn.com/v4/letter/d/59ef9b/32.png) [@DSKUP](https://discuss.blues.com/u/DSKUP)\
**Post date:** [April 17, 2025, 2:59pm UTC](https://discuss.blues.com/t/orientation-change-triggers-tracking/2992/3 "2025-04-17T14:59:05Z")

</div>

Thanks for the quick reply Alex! Yes, I have seen this tutorial, and I am able to trigger an alert on \_Motion.qo when the orientation changes. But I also want this to trigger location tracking. For other devices (where the unwanted motion triggers are not an issue) I have used

{“req”:“card.location.mode”,“mode”:“periodic”,“seconds”:60}

and

{  
“req”:“card.location.track”,  
“start”:true,  
“heartbeat”:true,  
“hours”:24,  
“File”:“\_track.qo”,  
“sync”: true  
}

My understanding is that this begins sending periodic location readings once motion has been detected. But for the ‘orientation-only’ device, after entering..

{ “req”: “card.motion.sync”, “start”: true, “threshold”: 0 }

and then entering..

{“req”:“card.location.mode”,“mode”:“periodic”,“seconds”:60}

and

{  
“req”:“card.location.track”,  
“start”:true,  
“heartbeat”:true,  
“hours”:24,  
“File”:“\_track.qo”,  
“sync”: true  
}

.. the card begins triggering on non-orientation based motion- that is, the vibrations that I do not want to trigger motion in this case.

I hope this is all making sense. Any advice?

---

<div class="post-metadata">

**Author:** ![abucknall](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.blues.com/abucknall/32/1335_2.png) [@abucknall](https://discuss.blues.com/u/abucknall)\
**Post date:** [April 17, 2025, 3:37pm UTC](https://discuss.blues.com/t/orientation-change-triggers-tracking/2992/4 "2025-04-17T15:37:17Z")

</div>

Ah I see what you mean! I believe you can set a global accelerometer sensitivity with [`card.motion.mode`](https://dev.blues.io/api-reference/notecard-api/card-requests/latest/#card-motion-mode), passing in the parameter `sensitivity`. You may need to experiment with what value for sensitivity works best for you. You should be able to follow this up with a `card.location.mode` request, which should use the sensitivity set earlier with the `threshold` parameter before turning the GPS on to record location. Let me know if that works!

Alternatively, could you use a geofence for your application? Or does it specifically need to start tracking at the point of exceeding an acceleration sensitivity threshold?

Thank,  
Alex
