This command sets the Notecard's ProductUID and serial number. Make sure to replace "com.your-company:your-product-name" with your ProductUID from Notehub Setup. Also, replace "a-serial-number" with a relevant identifier for the object that the Notecard will be attached to (e.g. "cow 257", if this were a real world scenario). Setting the mode to periodic and outbound to 30 makes it so the Notecard will periodically sync notes to Notehub every 30 minutes.
This command tells the Notecard to sample its GPS location every 180 seconds, so long as motion has been detected (i.e. it won't be sampled if the Notecard hasn't moved). It also sets up a circular geofence centered at latitude (lat) 34.0782 and longitude (lon) -118.2606 (Los Angeles, CA -- adjust this according to your location!). The max parameter controls the radius of the geofence. In this case, it's 500 meters. Whenever the Notecard's location transitions from inside this region to outside it, or vice-versa, the Notecard will immediately sync a note to Notehub. Note that this sync is immediate, meaning the outbound wait time set with hub.set is ignored.
Aside from transitions out of and into the geofence you just configured, you'll also want generate periodic notes to track the Notecard's location. This command makes it so the location sampled every 180 seconds gets added to the Notefile locations.qo.
With those commands entered, unplug the Notecarrier's USB connection so that the Notecard's running on LiPo power. In lieu of affixing the hardware to an actual piece of cargo (e.g. a shipping container), simply move it to a different area in your home/office. If you're able to go outside, that's even better, as the GPS signal should be stronger outdoors. Back on your Notehub project's Events page, you should see a note come in to locations.qo. Double click that note to open up a detailed view and then click the JSON tab. The body of the note will look something like this:
Here, the inside_fence field is set to true. This means the Notecard is inside the geofence. If the Notecard is outside the geofence, instead of having inside_fence as false, it won't show up at all. This is an optimization of the Notecard firmware where fields that are 0 (or false) aren't transmitted and can be assumed to be 0. You can read more about that here. If you're interested in the precise latitude and longitude of the Notecard, you can examine the best_lat and best_lon fields (these are in the higher-level JSON object, not the body).
Note that you won't see additional locations.qo notes until the Notecard moves again.