# Notecard API

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

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

**Page:** 3

---

## [Low-power "mode":"minimum" example?](https://discuss.blues.com/t/low-power-mode-minimum-example/2135)

<div class="topic-metadata">

**Author:** [@micromet](https://discuss.blues.com/u/micromet)\
**Replies:** 5\
**Last updated:** [August 22, 2024, 10:31am UTC](https://discuss.blues.com/t/low-power-mode-minimum-example/2135 "2024-08-22T10:31:52Z")

</div>

Hi All, Blues newbie here. I’ve got my cellular notecard working nicely sending environmental data to ubidots while reading the sensors with an esp32 feather. Now I want to make it very low power for battery operation…

---

## [Detect whether Notefile has been created yet](https://discuss.blues.com/t/detect-whether-notefile-has-been-created-yet/2286)

<div class="topic-metadata">

**Author:** [@yunzheng](https://discuss.blues.com/u/yunzheng)\
**Replies:** 3\
**Last updated:** [August 15, 2024, 7:24pm UTC](https://discuss.blues.com/t/detect-whether-notefile-has-been-created-yet/2286 "2024-08-15T19:24:19Z")

</div>

Is there a way to check whether a Notefile with a certain name has been created yet? I’m trying to write my firmware so that if the file “settings.db” has not been created yet, I create the file

---

## [Best way to send small but not tiny amounts of binary data from Notecard?](https://discuss.blues.com/t/best-way-to-send-small-but-not-tiny-amounts-of-binary-data-from-notecard/2270)

<div class="topic-metadata">

**Author:** [@scase](https://discuss.blues.com/u/scase)\
**Replies:** 3\
**Last updated:** [August 9, 2024, 8:10pm UTC](https://discuss.blues.com/t/best-way-to-send-small-but-not-tiny-amounts-of-binary-data-from-notecard/2270 "2024-08-09T20:10:25Z")

</div>

Hi all, I’m trying to figure out what the best approach is for sending binary data in amounts that are not tiny, but still small. My device records readings from other sensors. These readings are each 23 bytes of binar…

---

## [Switching to continuous mode and GPS polling](https://discuss.blues.com/t/switching-to-continuous-mode-and-gps-polling/2239)

<div class="topic-metadata">

**Author:** [@alan01252](https://discuss.blues.com/u/alan01252)\
**Replies:** 3\
**Last updated:** [July 24, 2024, 3:18pm UTC](https://discuss.blues.com/t/switching-to-continuous-mode-and-gps-polling/2239 "2024-07-24T15:18:00Z")

</div>

Hi all, I was wondering if any one could tell me what happens in the following scenario: GPS Configured in polling mode say 1 hour Notecard mode is changed from “minimal” → “continuous” to make a web request and then…

---

## [Card.attn location mode off](https://discuss.blues.com/t/card-attn-location-mode-off/2230)

<div class="topic-metadata">

**Author:** [@yunzheng](https://discuss.blues.com/u/yunzheng)\
**Replies:** 1\
**Last updated:** [July 22, 2024, 2:32pm UTC](https://discuss.blues.com/t/card-attn-location-mode-off/2230 "2024-07-22T14:32:27Z")

</div>

I plan on arming the ATTN pin like so: { “req”: “card.attn”, “mode”: “arm,files,location”, “seconds”: 0, “files”: \[“data.qi”\] } How would the ATTN pin behave if card.location.mode is off? How about if card.locatio…

---

## [Notecard Lora file change](https://discuss.blues.com/t/notecard-lora-file-change/2188)

<div class="topic-metadata">

**Author:** [@ouaibeer](https://discuss.blues.com/u/ouaibeer)\
**Replies:** 1\
**Last updated:** [July 14, 2024, 4:52pm UTC](https://discuss.blues.com/t/notecard-lora-file-change/2188 "2024-07-14T16:52:32Z")

</div>

Hi, I try to use notehub to send new parameters to my Lora notecard but it doesn’t work. My code is working fine with a LTE Notecard. My Lora notecard can send some data so it syncronize correctly with notehub but doesn’…

---

## [Access session information outside \_session.qo](https://discuss.blues.com/t/access-session-information-outside-session-qo/2177)

<div class="topic-metadata">

**Author:** [@Meo](https://discuss.blues.com/u/Meo)\
**Replies:** 1\
**Last updated:** [June 17, 2024, 8:00pm UTC](https://discuss.blues.com/t/access-session-information-outside-session-qo/2177 "2024-06-17T20:00:50Z")

</div>

I have some code which adds a new note and syncs it to Notehub. This note includes some information about my device which I want to log. I am also interested in logging some information about the session. Namely, I want…

---

## [Starnote/Notecard Time while on NTN](https://discuss.blues.com/t/starnote-notecard-time-while-on-ntn/2171)

<div class="topic-metadata">

**Author:** [@rberkelm](https://discuss.blues.com/u/rberkelm)\
**Replies:** 3\
**Last updated:** [June 13, 2024, 2:43pm UTC](https://discuss.blues.com/t/starnote-notecard-time-while-on-ntn/2171 "2024-06-13T14:43:51Z")

</div>

I have a few questions relating to Time while on NTN. The Starnote best practices suggests that we include “\_time” in the template to indicate when the Note was created. Imminently sensible! But where do we get this tim…

---

## [Trigger a one-time event on a device using Env Variables?](https://discuss.blues.com/t/trigger-a-one-time-event-on-a-device-using-env-variables/2153)

<div class="topic-metadata">

**Author:** [@micromet](https://discuss.blues.com/u/micromet)\
**Replies:** 3\
**Last updated:** [June 6, 2024, 8:39pm UTC](https://discuss.blues.com/t/trigger-a-one-time-event-on-a-device-using-env-variables/2153 "2024-06-06T20:39:29Z")

</div>

Hi All, I would like a way to trigger a one-time event on a device by using a Env variable in notehub. For example, suppose I have env variable called user\_flag that is set to “0” in the notehub project. If I change …

---

## [Good low power strategy when operation is "closed" overnight](https://discuss.blues.com/t/good-low-power-strategy-when-operation-is-closed-overnight/2150)

<div class="topic-metadata">

**Author:** [@micromet](https://discuss.blues.com/u/micromet)\
**Replies:** 6\
**Last updated:** [June 6, 2024, 7:29pm UTC](https://discuss.blues.com/t/good-low-power-strategy-when-operation-is-closed-overnight/2150 "2024-06-06T19:29:39Z")

</div>

Hi All, I’ve got several use cases where the facility is closed in the evening. I’m solar powered so I want to reduce power consumption as much as possible during the closed nighttime interval. Should I put the system …

---

## [When do Routes fire?](https://discuss.blues.com/t/when-do-routes-fire/2145)

<div class="topic-metadata">

**Author:** [@drewcssv](https://discuss.blues.com/u/drewcssv)\
**Replies:** 1\
**Last updated:** [May 31, 2024, 12:18pm UTC](https://discuss.blues.com/t/when-do-routes-fire/2145 "2024-05-31T12:18:34Z")

</div>

Very basic question here: when does a Route fire? Is it on an Outbound Sync (as I assume) or some other trigger? Reason for asking is that I’d like to manage the Routes based on program logic and timers so that I’m not f…

---

## [Control sensor sampling interval with Epoch time](https://discuss.blues.com/t/control-sensor-sampling-interval-with-epoch-time/2132)

<div class="topic-metadata">

**Author:** [@micromet](https://discuss.blues.com/u/micromet)\
**Replies:** 3\
**Last updated:** [May 26, 2024, 8:19pm UTC](https://discuss.blues.com/t/control-sensor-sampling-interval-with-epoch-time/2132 "2024-05-26T20:19:35Z")

</div>

I’m a total newbie to blues wireless. I’ve got a basic blues weatherstation working well with the cellular notecard, but want to control sensor sampling to correspond/sync to Epoch time. For example, I want sample sens…

---

## [RS232 / Serial to Notehub using only the notecard?](https://discuss.blues.com/t/rs232-serial-to-notehub-using-only-the-notecard/2100)

<div class="topic-metadata">

**Author:** [@gauteh](https://discuss.blues.com/u/gauteh)\
**Replies:** 1\
**Last updated:** [May 1, 2024, 7:57pm UTC](https://discuss.blues.com/t/rs232-serial-to-notehub-using-only-the-notecard/2100 "2024-05-01T19:57:11Z")

</div>

Hi, I was wondering if there is a way to configure the notecard to work as a data-relay for instruments outputting rs232 / uart data. Many instruments output telegram style data (NMEA or similar), and just putting a not…

---

## [Possible to retrieve multiple card.\* states with one command?](https://discuss.blues.com/t/possible-to-retrieve-multiple-card-states-with-one-command/2091)

<div class="topic-metadata">

**Author:** [@jjax](https://discuss.blues.com/u/jjax)\
**Replies:** 1\
**Last updated:** [April 25, 2024, 1:57pm UTC](https://discuss.blues.com/t/possible-to-retrieve-multiple-card-states-with-one-command/2091 "2024-04-25T13:57:18Z")

</div>

Hi. Is there a command available to retrieve all card request states using a single command, or do individual requests always have to be made? e.g. something like {“req”: “card.\*”} instead of issuing {“req”: “card.sta…

---

## [Pulse to AUX1 example](https://discuss.blues.com/t/pulse-to-aux1-example/2069)

<div class="topic-metadata">

**Author:** [@hussat](https://discuss.blues.com/u/hussat)\
**Replies:** 3\
**Last updated:** [April 17, 2024, 2:19pm UTC](https://discuss.blues.com/t/pulse-to-aux1-example/2069 "2024-04-17T14:19:50Z")

</div>

Hi all, I’ve been experimenting with switching the AUX1 pin and it works fine by sending JSON via the USB e.g. the JSON below switches AUX1 high {“req”:“card.aux”,“mode”:“gpio”,“usage”:\[“high”,“”,“”,“”\]} It also works…

---

## [Unable to connect to a wifi that has no password](https://discuss.blues.com/t/unable-to-connect-to-a-wifi-that-has-no-password/2068)

<div class="topic-metadata">

**Author:** [@Jperks03](https://discuss.blues.com/u/Jperks03)\
**Replies:** 1\
**Last updated:** [April 16, 2024, 4:04pm UTC](https://discuss.blues.com/t/unable-to-connect-to-a-wifi-that-has-no-password/2068 "2024-04-16T16:04:32Z")

</div>

I am unable to connect to a wifi network that does not have a password. I have tried leaving the password form in the phone connection method and the cli connection method blank but its not working. This is with Notecarr…

---

## [Lora device does not return template body](https://discuss.blues.com/t/lora-device-does-not-return-template-body/2033)

<div class="topic-metadata">

**Author:** [@iseries1](https://discuss.blues.com/u/iseries1)\
**Replies:** 1\
**Last updated:** [March 20, 2024, 5:23pm UTC](https://discuss.blues.com/t/lora-device-does-not-return-template-body/2033 "2024-03-20T17:23:35Z")

</div>

Documentation show that using the verify with a template will return the template body. {“req”:“note.template”, “file”: “weather.qo”, “port”: 1, “verify”: true} returns {“template”:true} Added a new template {“req”:…

---

## [Note Card Lora Note.add with Payload](https://discuss.blues.com/t/note-card-lora-note-add-with-payload/2029)

<div class="topic-metadata">

**Author:** [@iseries1](https://discuss.blues.com/u/iseries1)\
**Replies:** 1\
**Last updated:** [March 18, 2024, 12:33am UTC](https://discuss.blues.com/t/note-card-lora-note-add-with-payload/2029 "2024-03-18T00:33:35Z")

</div>

When sending data to The Things Network I encode the data as binary hex values and send the small packet to the network. Now with Notecard Lora I have to encode that as Base64 data and add a payload option. When I do t…

---

## [Floats getting mangled by JAddNumberToObject](https://discuss.blues.com/t/floats-getting-mangled-by-jaddnumbertoobject/1975)

<div class="topic-metadata">

**Author:** [@tjw\_scion](https://discuss.blues.com/u/tjw_scion)\
**Replies:** 4\
**Last updated:** [February 23, 2024, 4:00pm UTC](https://discuss.blues.com/t/floats-getting-mangled-by-jaddnumbertoobject/1975 "2024-02-23T16:00:26Z")

</div>

Here is my note.add request: J \*req1 = notecard.newRequest(“note.add”); if (req1 != NULL) { JAddBoolToObject(req1, “sync”, true); J \*body = JAddObjectToObject(req1, “body”); if (body != NULL) { JAddNumberToObject…

---

## [Initial GPS fix](https://discuss.blues.com/t/initial-gps-fix/1972)

<div class="topic-metadata">

**Author:** [@spring](https://discuss.blues.com/u/spring)\
**Replies:** 6\
**Last updated:** [February 22, 2024, 10:17am UTC](https://discuss.blues.com/t/initial-gps-fix/1972 "2024-02-22T10:17:11Z")

</div>

I have set up the Notecard for periodic data and GPS. I would like force an initial GPS fix at boot, but it seems a little tricky. My hub set command is {“req”:“hub.set”,“product”:“xxx”,“sn”:“xxx”,“mode”:“periodic”,“inb…

---

## [Hub.sync.status](https://discuss.blues.com/t/hub-sync-status/1973)

<div class="topic-metadata">

**Author:** [@spring](https://discuss.blues.com/u/spring)\
**Replies:** 2\
**Last updated:** [February 21, 2024, 3:12pm UTC](https://discuss.blues.com/t/hub-sync-status/1973 "2024-02-21T15:12:00Z")

</div>

I am trying to improve my error handling, I am issuing a hub.sync.status request and I’m getting this back {“alert”:true,“status”:“idle {disconnected} {registration-failure} {network}{extended-network-failure} {transpor…

---

## [Hub.set "on" temporary continuous](https://discuss.blues.com/t/hub-set-on-temporary-continuous/1959)

<div class="topic-metadata">

**Author:** [@spring](https://discuss.blues.com/u/spring)\
**Replies:** 2\
**Last updated:** [February 18, 2024, 1:31am UTC](https://discuss.blues.com/t/hub-set-on-temporary-continuous/1959 "2024-02-18T01:31:07Z")

</div>

I am trying to use the hub.set on:true to temporarily turn on continuous mode. But it doesn’t seem to be working. My command is {“req”:“hub.set”,“on”:true,“seconds”:300} to which I get the reply {} which doesn’t indi…

---

## [Notecard deepsleep or mosfet cutoff](https://discuss.blues.com/t/notecard-deepsleep-or-mosfet-cutoff/1940)

<div class="topic-metadata">

**Author:** [@ouaibeer](https://discuss.blues.com/u/ouaibeer)\
**Replies:** 1\
**Last updated:** [February 8, 2024, 5:10pm UTC](https://discuss.blues.com/t/notecard-deepsleep-or-mosfet-cutoff/1940 "2024-02-08T17:10:27Z")

</div>

Hello, I use the notecard on my datalogger to send my data every X measurements, for example I measure every 15 minutes and I send the data every 6 or 12h. In order to save current, I have a mosfet that cuts the current…

---

## [Reading/Adding device tags](https://discuss.blues.com/t/reading-adding-device-tags/1916)

<div class="topic-metadata">

**Author:** [@gcutrell](https://discuss.blues.com/u/gcutrell)\
**Replies:** 3\
**Last updated:** [January 31, 2024, 6:04pm UTC](https://discuss.blues.com/t/reading-adding-device-tags/1916 "2024-01-31T18:04:34Z")

</div>

Maybe I’ve missed it in the API documentation and forums, but is there a way to add/remove device tags through the notecard?

---

## [Robust Notecard error handling](https://discuss.blues.com/t/robust-notecard-error-handling/1908)

<div class="topic-metadata">

**Author:** [@ktowers](https://discuss.blues.com/u/ktowers)\
**Replies:** 1\
**Last updated:** [January 24, 2024, 10:53pm UTC](https://discuss.blues.com/t/robust-notecard-error-handling/1908 "2024-01-24T22:53:03Z")

</div>

I have an application that uses a Cell Notecard and send updates once per hour. The host is an ESP32 running Micropython. This application will run for 1 to 2 months posting every hour. And then it dies. I cannot eas…

---

## [External sim: pin necessary?](https://discuss.blues.com/t/external-sim-pin-necessary/1895)

<div class="topic-metadata">

**Author:** [@gauteh](https://discuss.blues.com/u/gauteh)\
**Replies:** 2\
**Last updated:** [January 16, 2024, 2:43pm UTC](https://discuss.blues.com/t/external-sim-pin-necessary/1895 "2024-01-16T14:43:01Z")

</div>

Hi, I got some external SIMs. They seem to work, but should the PIN code for the SIM be specified? Regards, Gaute

---

## [Acceleration threshold for location.periodic movement detection?](https://discuss.blues.com/t/acceleration-threshold-for-location-periodic-movement-detection/1862)

<div class="topic-metadata">

**Author:** [@daterdots](https://discuss.blues.com/u/daterdots)\
**Replies:** 4\
**Last updated:** [January 4, 2024, 5:42pm UTC](https://discuss.blues.com/t/acceleration-threshold-for-location-periodic-movement-detection/1862 "2024-01-04T17:42:50Z")

</div>

The documentation says that To preserve battery, when the Notecard’s GPS module is in periodic mode, GPS is only enabled if the built-in accelerometer detects movement since the last GPS enable. How much does the not…

---

## [Wi-Fi triangulation](https://discuss.blues.com/t/wi-fi-triangulation/1164)

<div class="topic-metadata">

**Author:** [@Mariana](https://discuss.blues.com/u/Mariana)\
**Replies:** 4\
**Last updated:** [December 27, 2023, 1:16am UTC](https://discuss.blues.com/t/wi-fi-triangulation/1164 "2023-12-27T01:16:23Z")

</div>

Hi, I’m interested in Wi-Fi triangulation using the Wi-Fi notecard. I’m trying to grasp it, and a question a rise. For my understand the Wi-Fi notecard already has the triangulation enable. So I just need to send the Wi…

---

## [Neopixel monitor brightness](https://discuss.blues.com/t/neopixel-monitor-brightness/1852)

<div class="topic-metadata">

**Author:** [@bencochran](https://discuss.blues.com/u/bencochran)\
**Replies:** 2\
**Last updated:** [December 15, 2023, 3:58pm UTC](https://discuss.blues.com/t/neopixel-monitor-brightness/1852 "2023-12-15T15:58:13Z")

</div>

Since neopixels use PWM for brightness instead of current, there’s no good way to adjust the brightness if using them as a notecard monitor. It would be nice if brightness were an option, such as {"req":"card.aux","mode"…

---

## [No response from Notecard to host over UART](https://discuss.blues.com/t/no-response-from-notecard-to-host-over-uart/1813)

<div class="topic-metadata">

**Author:** [@imjohns3](https://discuss.blues.com/u/imjohns3)\
**Replies:** 1\
**Last updated:** [November 27, 2023, 10:00pm UTC](https://discuss.blues.com/t/no-response-from-notecard-to-host-over-uart/1813 "2023-11-27T22:00:20Z")

</div>

Hi all, I’m having an issue getting a response from the Notecard to the host. I’m using a Cellular Notecard 1.5 on a Notecarrier-A 2.0. I’m trying to talk to it over UART from a Maduino Uno (off-brand Arduino Uno). I ha…

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

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