# Notecard API

**URL:** https://discuss.blues.com/c/notecard-api/12.md?page=3

[Latest](https://discuss.blues.com/latest.md) · [Categories](https://discuss.blues.com/categories.md) · [Tags](https://discuss.blues.com/tags.md)

**Page:** 4

---

## [GPS-inactive mystery - v1](https://discuss.blues.com/t/gps-inactive-mystery-v1/1807)

<div class="topic-metadata">

**Author:** [@jderimig](https://discuss.blues.com/u/jderimig)\
**Replies:** 6\
**Last updated:** [November 25, 2023, 2:12pm UTC](https://discuss.blues.com/t/gps-inactive-mystery-v1/1807 "2023-11-25T14:12:49Z")

</div>

I have modified the quckstart example by adding a card.location request. But the GPS fails to go active unless I comment out a note send request. I also added a card.time request show that should enable the GPS to star…

---

## [Any reason not to use card.location.track just to get 'heartbeat'](https://discuss.blues.com/t/any-reason-not-to-use-card-location-track-just-to-get-heartbeat/1006)

<div class="topic-metadata">

**Author:** [@rksteeves](https://discuss.blues.com/u/rksteeves)\
**Replies:** 10\
**Last updated:** [October 4, 2022, 4:52pm UTC](https://discuss.blues.com/t/any-reason-not-to-use-card-location-track-just-to-get-heartbeat/1006 "2022-10-04T16:52:49Z")

</div>

Is there any reason not to use card.location.track, just to utilize the heartbeat option to confirm the card is up and running? Power is not an issue. The card will be remote and not moving, but I thought it would be use…

---

## [Update code on a remote monitoring station](https://discuss.blues.com/t/update-code-on-a-remote-monitoring-station/1733)

<div class="topic-metadata">

**Author:** [@gghh](https://discuss.blues.com/u/gghh)\
**Replies:** 6\
**Last updated:** [October 30, 2023, 1:02pm UTC](https://discuss.blues.com/t/update-code-on-a-remote-monitoring-station/1733 "2023-10-30T13:02:39Z")

</div>

I am about to install a monitoring and control station in a very remote cabin 7 hours away. I am technically capable enough to design and build the mechanics, some electronics, the software and convert communications to…

---

## [Continuous data-streaming with minimal delay](https://discuss.blues.com/t/continuous-data-streaming-with-minimal-delay/1727)

<div class="topic-metadata">

**Author:** [@mprevisic](https://discuss.blues.com/u/mprevisic)\
**Replies:** 2\
**Last updated:** [October 19, 2023, 6:51pm UTC](https://discuss.blues.com/t/continuous-data-streaming-with-minimal-delay/1727 "2023-10-19T18:51:06Z")

</div>

I would like to exchange a data-packages every 2s over a cellular connection to the Notehub. Its a two-way communication that requires a download and upload with a package size of 100bytes. The resulting average baud-rat…

---

## [Getting UTC from the Notecard](https://discuss.blues.com/t/getting-utc-from-the-notecard/1684)

<div class="topic-metadata">

**Author:** [@rlkeith](https://discuss.blues.com/u/rlkeith)\
**Replies:** 4\
**Last updated:** [September 27, 2023, 9:30pm UTC](https://discuss.blues.com/t/getting-utc-from-the-notecard/1684 "2023-09-27T21:30:34Z")

</div>

Hi All, I need to get a timestamp to the nearest minute. I tried using card.status but the time obtained from that does not increment. I have also card.location but the GPS is not enabled, nor does it have an antenna co…

---

## [Is there a way to initiate a notecard firmware update from any of the apis?](https://discuss.blues.com/t/is-there-a-way-to-initiate-a-notecard-firmware-update-from-any-of-the-apis/1665)

<div class="topic-metadata">

**Author:** [@JordanEdwards](https://discuss.blues.com/u/JordanEdwards)\
**Replies:** 2\
**Last updated:** [September 22, 2023, 2:17pm UTC](https://discuss.blues.com/t/is-there-a-way-to-initiate-a-notecard-firmware-update-from-any-of-the-apis/1665 "2023-09-22T14:17:54Z")

</div>

I’ve got a script to initialize a new notecard when we want to begin using it, and I’d like to be able to update the firmware automatically if need be. I’m able to get the current firmware version of course, but I can’t …

---

## [Env.get and env.set](https://discuss.blues.com/t/env-get-and-env-set/1498)

<div class="topic-metadata">

**Author:** [@paulohm](https://discuss.blues.com/u/paulohm)\
**Replies:** 4\
**Last updated:** [September 18, 2023, 1:01pm UTC](https://discuss.blues.com/t/env-get-and-env-set/1498 "2023-09-18T13:01:49Z")

</div>

I’m trying to initiate a request to the notecard by setting an environment variable to 1 on notehub.io and retrieving it periodically on the card side using env.get. After doing what needs to be done on the card side, …

---

## [Set sensitivity of the NoteCard accelerometer sensor](https://discuss.blues.com/t/set-sensitivity-of-the-notecard-accelerometer-sensor/1640)

<div class="topic-metadata">

**Author:** [@bernd](https://discuss.blues.com/u/bernd)\
**Replies:** 3\
**Last updated:** [September 2, 2023, 2:04pm UTC](https://discuss.blues.com/t/set-sensitivity-of-the-notecard-accelerometer-sensor/1640 "2023-09-02T14:04:07Z")

</div>

I am working on a location tracker and want to use the motion sensor of the NoteCard to wake up my MCU when the device is moving. I have the ATTN activation working and get the signal every time I move my device. But i…

---

## [JAddStringToObject makes the note.add fail completely](https://discuss.blues.com/t/jaddstringtoobject-makes-the-note-add-fail-completely/1547)

<div class="topic-metadata">

**Author:** [@rlkeith](https://discuss.blues.com/u/rlkeith)\
**Replies:** 2\
**Last updated:** [August 7, 2023, 5:00pm UTC](https://discuss.blues.com/t/jaddstringtoobject-makes-the-note-add-fail-completely/1547 "2023-08-07T17:00:13Z")

</div>

Hi All, I am trying to send a note containing a string variable. However, the JAddStringToObject method only accepts the variable as a const char\*. I have tried doing this: String cmd\_id = “CommandID”; JAddStringToOb…

---

## [Typo at Low Power Design page](https://discuss.blues.com/t/typo-at-low-power-design-page/1515)

<div class="topic-metadata">

**Author:** [@paulohm](https://discuss.blues.com/u/paulohm)\
**Replies:** 1\
**Last updated:** [July 23, 2023, 3:21pm UTC](https://discuss.blues.com/t/typo-at-low-power-design-page/1515 "2023-07-23T15:21:26Z")

</div>

Please check the C/C++ code at this page, it mentions “sync” (wrong) instead of “start” (right) === When the host reawakens, the payload is retrieved by setting start to true in a card.attn request. J \*req = NoteNewRe…

---

## [Waiting for and getting time at startup](https://discuss.blues.com/t/waiting-for-and-getting-time-at-startup/1514)

<div class="topic-metadata">

**Author:** [@noforan](https://discuss.blues.com/u/noforan)\
**Replies:** 1\
**Last updated:** [July 23, 2023, 3:14pm UTC](https://discuss.blues.com/t/waiting-for-and-getting-time-at-startup/1514 "2023-07-23T15:14:56Z")

</div>

Hi there, I’m able to use card.time to get a timestamp for each sample grab and include it as I’m logging the sample data. However, there are times at startup when the card time is not yet available and I get the follo…

---

## [How to unset an argument of a Card Request](https://discuss.blues.com/t/how-to-unset-an-argument-of-a-card-request/1503)

<div class="topic-metadata">

**Author:** [@johnedstone](https://discuss.blues.com/u/johnedstone)\
**Replies:** 4\
**Last updated:** [July 17, 2023, 2:34pm UTC](https://discuss.blues.com/t/how-to-unset-an-argument-of-a-card-request/1503 "2023-07-17T14:34:38Z")

</div>

Solved: It turns out that setting these integers described below to -1 in fact “unsets” them. However, unsetting card.location.track hours: -1 it does not honor card.location.mode seconds, but instead writes and sync con…

---

## [Notecard tracking configuration](https://discuss.blues.com/t/notecard-tracking-configuration/1489)

<div class="topic-metadata">

**Author:** [@paulohm](https://discuss.blues.com/u/paulohm)\
**Replies:** 2\
**Last updated:** [July 6, 2023, 1:44pm UTC](https://discuss.blues.com/t/notecard-tracking-configuration/1489 "2023-07-06T13:44:16Z")

</div>

Not sure if I get what is the right configuration commands in order to achieve the following: I want to track my device being battery-conscious, but I need to receive the device location every minute IF the device was m…

---

## [No GPS location](https://discuss.blues.com/t/no-gps-location/1478)

<div class="topic-metadata">

**Author:** [@paulohm](https://discuss.blues.com/u/paulohm)\
**Replies:** 1\
**Last updated:** [July 1, 2023, 9:51pm UTC](https://discuss.blues.com/t/no-gps-location/1478 "2023-07-01T21:51:23Z")

</div>

Not sure what I am doing wrong. GPS location is never available on my notecard.

---

## [Encode and send a small image](https://discuss.blues.com/t/encode-and-send-a-small-image/475)

<div class="topic-metadata">

**Author:** [@chris](https://discuss.blues.com/u/chris)\
**Replies:** 3\
**Last updated:** [June 8, 2023, 1:22pm UTC](https://discuss.blues.com/t/encode-and-send-a-small-image/475 "2023-06-08T13:22:27Z")

</div>

Hi, I have a question about sending larger chunks of data. I have a small image file (~15kB) that I would like to occasionally send from the notecard connected system. What’s the best way to do that? base64 encode it…

---

## [How do I backup notes stuck in .qo file due notecard issue](https://discuss.blues.com/t/how-do-i-backup-notes-stuck-in-qo-file-due-notecard-issue/1420)

<div class="topic-metadata">

**Author:** [@Francois](https://discuss.blues.com/u/Francois)\
**Replies:** 1\
**Last updated:** [May 27, 2023, 11:16am UTC](https://discuss.blues.com/t/how-do-i-backup-notes-stuck-in-qo-file-due-notecard-issue/1420 "2023-05-27T11:16:36Z")

</div>

notecard is stuck in extended-network-failure (restart, power cycle not working) valuable notes exist in the .qo file: file.changes.pending {‘changes’: 7, ‘info’: {‘vitals.qo’: {‘changes’: 6, ‘total’: 6}, ‘syscheck.qo’…

---

## [Template Field not showing in Notehub after note.add](https://discuss.blues.com/t/template-field-not-showing-in-notehub-after-note-add/1401)

<div class="topic-metadata">

**Author:** [@Karl\_iWell](https://discuss.blues.com/u/Karl_iWell)\
**Replies:** 2\
**Last updated:** [May 3, 2023, 9:39pm UTC](https://discuss.blues.com/t/template-field-not-showing-in-notehub-after-note-add/1401 "2023-05-03T21:39:30Z")

</div>

Background: Running notecard (version 4.1.1 firmware), with Notecarrier F, and Adafruit Huzzah 32 mcu. Application wakes very hour, running in minimum mode, application generates up hub sync. Call note.template each t…

---

## [How to send a small image](https://discuss.blues.com/t/how-to-send-a-small-image/1393)

<div class="topic-metadata">

**Author:** [@paulohm](https://discuss.blues.com/u/paulohm)\
**Replies:** 5\
**Last updated:** [April 25, 2023, 11:52am UTC](https://discuss.blues.com/t/how-to-send-a-small-image/1393 "2023-04-25T11:52:24Z")

</div>

Trying to find a way to send a small picture using the notecard API. Is there an easy way, or I will need to chop the binary into pieces and send it through several calls?

---

## [Notecard has communication problems after running for hours](https://discuss.blues.com/t/notecard-has-communication-problems-after-running-for-hours/1362)

<div class="topic-metadata">

**Author:** [@ktowers](https://discuss.blues.com/u/ktowers)\
**Replies:** 8\
**Last updated:** [April 14, 2023, 6:22pm UTC](https://discuss.blues.com/t/notecard-has-communication-problems-after-running-for-hours/1362 "2023-04-14T18:22:26Z")

</div>

I have the LTE notecard running with a I2C interface to a ESP32. My program posts hourly data to notehub which seems to work fine. Occasionally when some important input change, it posts an immediate data packet to not…

---

## [Does "allow" work with "hub.sync"](https://discuss.blues.com/t/does-allow-work-with-hub-sync/1368)

<div class="topic-metadata">

**Author:** [@ktowers](https://discuss.blues.com/u/ktowers)\
**Replies:** 1\
**Last updated:** [April 13, 2023, 5:59pm UTC](https://discuss.blues.com/t/does-allow-work-with-hub-sync/1368 "2023-04-13T17:59:57Z")

</div>

I’m still trying to sort out communication problems and have run into another while testing solutions. If I add the “allow”: “true” to my “hub.sync” command in python, I get the error: {‘err’: “cannot interpret JSON: f…

---

## [Question about accessing fields in Notecard response](https://discuss.blues.com/t/question-about-accessing-fields-in-notecard-response/1305)

<div class="topic-metadata">

**Author:** [@GaryQ](https://discuss.blues.com/u/GaryQ)\
**Replies:** 2\
**Last updated:** [March 28, 2023, 4:27am UTC](https://discuss.blues.com/t/question-about-accessing-fields-in-notecard-response/1305 "2023-03-28T04:27:12Z")

</div>

Hello I have questions about the C code used to access Notecard response: The example code below is given (in the Arduino library documentation) for retrieving data from the “card.status” request: char status\[20\]; if …

---

## [I2c: received NACK](https://discuss.blues.com/t/i2c-received-nack/1328)

<div class="topic-metadata">

**Author:** [@nicbkw](https://discuss.blues.com/u/nicbkw)\
**Replies:** 3\
**Last updated:** [March 22, 2023, 12:18am UTC](https://discuss.blues.com/t/i2c-received-nack/1328 "2023-03-22T00:18:22Z")

</div>

Hi, having problems with an Arduino app since I updated the notecard firmware: The code: J \*motionReq = nc.requestAndResponse(nc.newRequest("card.motion")); sometimes gives this error: 15:41:14.277 -\> {"req":"card.mo…

---

## [Newbie questions on NOTE-NBNA-500 communication UART](https://discuss.blues.com/t/newbie-questions-on-note-nbna-500-communication-uart/1203)

<div class="topic-metadata">

**Author:** [@ridgerunnersjw](https://discuss.blues.com/u/ridgerunnersjw)\
**Replies:** 3\
**Last updated:** [February 9, 2023, 2:22pm UTC](https://discuss.blues.com/t/newbie-questions-on-note-nbna-500-communication-uart/1203 "2023-02-09T14:22:09Z")

</div>

Hello all… I have created a carrier board for NOTE-NBNA-500. This carrier has STM32L476RG processor. I would like to know: If I download the C Library from Github (link) and include is this all I will need? Forgive …

---

## [Best Method for Receiving Periodic Counter Values](https://discuss.blues.com/t/best-method-for-receiving-periodic-counter-values/1216)

<div class="topic-metadata">

**Author:** [@amitchell60](https://discuss.blues.com/u/amitchell60)\
**Replies:** 4\
**Last updated:** [February 7, 2023, 8:18pm UTC](https://discuss.blues.com/t/best-method-for-receiving-periodic-counter-values/1216 "2023-02-07T20:18:36Z")

</div>

I would like to use an Aux input on the Notecard to count pulses and receive periodic (e.g. once per hour) updates of the cumulative counter value. I want to do this in stand-alone mode, without an attached MCU. I have …

---

## [Extra \_env.dbs Events with Counter](https://discuss.blues.com/t/extra-env-dbs-events-with-counter/1214)

<div class="topic-metadata">

**Author:** [@amitchell60](https://discuss.blues.com/u/amitchell60)\
**Replies:** 0\
**Last updated:** [January 29, 2023, 5:52am UTC](https://discuss.blues.com/t/extra-env-dbs-events-with-counter/1214 "2023-01-29T05:52:45Z")

</div>

I am using the Notecard as a standalone Counter (no MCU). I want to report cumulative pulse count at fixed intervals of time. I am setting the \_aux\_gpio\_report\_enable environment variable to have the count be reported …

---

## [Setting custom AP name](https://discuss.blues.com/t/setting-custom-ap-name/1212)

<div class="topic-metadata">

**Author:** [@abari](https://discuss.blues.com/u/abari)\
**Replies:** 4\
**Last updated:** [January 28, 2023, 8:44pm UTC](https://discuss.blues.com/t/setting-custom-ap-name/1212 "2023-01-28T20:44:16Z")

</div>

I’m having trouble with customizing the AP name via the host MCU. All my other setup/config is working (ie hub set, sensors, syncing data, etc). This is my request: { J \*req = notecard.newRequest("card.wifi"); …

---

## [Templates vs generic note.add request](https://discuss.blues.com/t/templates-vs-generic-note-add-request/1207)

<div class="topic-metadata">

**Author:** [@abari](https://discuss.blues.com/u/abari)\
**Replies:** 2\
**Last updated:** [January 27, 2023, 9:47pm UTC](https://discuss.blues.com/t/templates-vs-generic-note-add-request/1207 "2023-01-27T21:47:39Z")

</div>

So i’m setting up my hardware prototypes and i have a few questions on best practices. My host MCU wakes up every 2 hours, measures a value, sends that value to notecard, and then goes back to sleep. Once a day i want t…

---

## [Disconnect from WiFi access point](https://discuss.blues.com/t/disconnect-from-wifi-access-point/1136)

<div class="topic-metadata">

**Author:** [@markwkiehl](https://discuss.blues.com/u/markwkiehl)\
**Replies:** 2\
**Last updated:** [January 26, 2023, 2:52pm UTC](https://discuss.blues.com/t/disconnect-from-wifi-access-point/1136 "2023-01-26T14:52:44Z")

</div>

The documentation for card.wifi states that a WiFi connection can be cleared by sending the following command to the Notecard: {“req”:“card.wifi”,“ssid”:“-”,“password”:“-”} My testing has revealed that if you have a su…

---

## [Dim or turn off LEDs](https://discuss.blues.com/t/dim-or-turn-off-leds/1169)

<div class="topic-metadata">

**Author:** [@KevinG](https://discuss.blues.com/u/KevinG)\
**Replies:** 1\
**Last updated:** [January 10, 2023, 9:02pm UTC](https://discuss.blues.com/t/dim-or-turn-off-leds/1169 "2023-01-10T21:02:58Z")

</div>

The Notecard comes with green and red LEDs. The green LED blinks slowly when idle and more rapidly as the card connects to the cellular network then transmits. The flash patterns are very helpful for troubleshooting and …

---

## [Where is documentation for the C++ J JSON object functions?](https://discuss.blues.com/t/where-is-documentation-for-the-c-j-json-object-functions/1138)

<div class="topic-metadata">

**Author:** [@markwkiehl](https://discuss.blues.com/u/markwkiehl)\
**Replies:** 4\
**Last updated:** [December 19, 2022, 8:44pm UTC](https://discuss.blues.com/t/where-is-documentation-for-the-c-j-json-object-functions/1138 "2022-12-19T20:44:45Z")

</div>

Where can I see the details on all of the J JSON object functions. Ex. JAddBoolToObject JAddNumberToObject JAddStringToObject JAddObjectToObject JAddArrayToObject JAddItemToArray etc.

[Previous page](https://discuss.blues.com/c/notecard-api/12.md?page=2)

[Next page](https://discuss.blues.com/c/notecard-api/12.md?page=4)
