Preferably I would like to do it without involving an android phone and go directly from the watch to the computer? Is this possible either way? Will the companion sdk work for this or is that only for android/ios?
Preferably I would like to do it without involving an android phone and go directly from the watch to the computer? Is this possible either way? Will the companion sdk work for this or is that only for android/ios?
Look at using makeWebRequest, but you'll need to use HTTPS, or BluetoothLowEnergy but there you may have a range issue.,
There's also a BluetoothLowEnergy module on CIQ that allows scanning for and using BLE sensors. Here's a blog post I did a few years back for accessing a Raspberry pi with a garmin device, and there…
Thankyou. I am ok with the range issue since this will just be for juggling near my computer. Everything I have found for BLE is for phone though. Is there an SDK or sample code for going straight to Linux?
You cannot. The companion SDK is based on BLE connection and you need to have your mobile GCM installed.
One solution:
1. Buy a vps
2. Buy a domain
3. Apply a ssl certificate from CA
4. Write some code for your server to receive your uploaded data
5. On ur watch, send your accelerometer data with makeWebRequest api (as jim said)
6. Process your data at you will.
There's also a BluetoothLowEnergy module on CIQ that allows scanning for and using BLE sensors. Here's a blog post I did a few years back for accessing a Raspberry pi with a garmin device, and there are also samples in the SDK for accessing a Nordic Thingy52.
In the blog post there is a very simple example of controlling a garage door with a CIQ app
Awesome! Great post, thanks for the info. Is there any reason why it would have to be a pi? Should I be able to adapt the pi code to run on an Ubuntu pc? My ultimate goal here is to use the accelerometer to control the cursor on my computer like an air mouse. Does this seem attainable to you?
You see I use node.js and I don't know if you can use it for BT on Ubunto. I do have a CIQ app that can be used to see what's advertising and can be accessed by a CIQ app:
https://apps.garmin.com/en-US/apps/9bcc8b66-8385-4afb-b93e-f69e01422284
There's also nRfConnect from Nordic for phones which is really handy. I suggest you get the Nordic nRf52840 dongle (~$10US) so you can do testing in the CIQ sim. There's a wiki here about setting it up for CIQ.