These are chat archives for nightscout/intend-to-bolus

8th
May 2019
pmgauthier
@pmgauthier
May 08 03:41

Hi all,

I am successfully running xdrip-js-logger as my collector for my openAPS Edison rig and loving it so far! Setup is Edison running logger, mm722 pump, and Dexcom g5 transmitter.

However, I am having trouble with setting up my xdrip+ watch app on my LG G Android Wear Watch to receive my BGs directly from the rig. Does anyone have any recommendations for how to configure the collector setup in the xdrip+ android app. It is installed on my tablet and its paired watch, but I can't seam to figure out the next steps..

Any ideas or does anyone have experience with this?

renegadeandy
@renegadeandy
May 08 07:12
@scottleibrand oh man.....this one isnt even that old :( and it takes months for shipping :/
renegadeandy
@renegadeandy
May 08 07:47
I guess ill be out the looping game for some time again
I just can't keep my rig stable, and now the hardware is borked :/
jonny772
@jonny772
May 08 09:19
@renegadeandy You can use a Pi0 and a RFM69HCW if your in a bind. Should be able to get both next day delivery
jonny772
@jonny772
May 08 10:21
Couldnt find this one in the doc's.
What does rf_enable do in the settings json? (DEV 0.7)
Also is there a changelog anywhere?
renegadeandy
@renegadeandy
May 08 10:37
Out of interest, can a pi, or edison also become a reader for the miao miao...perhaps running a slimlined xDrip so as you walk around your house, and leave your phone behind, other devices will pickup your miaomiao and sync its update to nightscout...
@renegadeandy and I've never seen a library for communicating with a miao miao from linux, however, as ble etc in built it in should be possible.
@renegadeandy altough a quick google i found this https://github.com/tzachi-dar/LibreAllHouse
renegadeandy
@renegadeandy
May 08 11:07

@jonny772 aha, that project looks ace -- except it doesnt seem to actually upload the bg to nightscout?

And yes - thanks for pointing out I need a pi0W

jonny772
@jonny772
May 08 11:09
@renegadeandy No i think it just mirrors the bluetooth, but its a start
renegadeandy
@renegadeandy
May 08 11:12

How do you mean mirror the bluetooth?

It wouldnt be hard for me to write the integration to sync up to nightscout! I wonder what nightscout does if it gets 2 readings which are the same?

jonny772
@jonny772
May 08 11:18

@renegadeandy Also in terms of extra bits you will need an antenna which is either a bit of wire, a coil (https://www.amazon.co.uk/Eightwood-Helical-Control-Homematic-Wireless-Antenna/dp/B07L5SNC9T/ref=sr_1_fkmrnull_1?keywords=868+antenna+solder&qid=1557314052&s=gateway&sr=8-1-fkmrnull) or add a connector for one ( https://thepihut.com/products/adafruit-ufl-smt-antenna-connector )

you will also need some form of battery. A USB battery phone charger would work or something like this (https://thepihut.com/products/lipo-shim ) - i'm sure better options are available as the lipo shim doesn't have an included charging circuit

@renegadeandy I haven't looked through the code properly but i got the impression that the interpretation was still being done by Xdrip on a phone.
renegadeandy
@renegadeandy
May 08 12:24
oh odd, so the pi reads, then bluetooths data to xDrip?
how does that connector connect to the coil?
jonny772
@jonny772
May 08 12:25
Coil is instead of the connector. Connector if you want to buy an off the shelf antenna
could also fit an SMA which are more common but super large
renegadeandy
@renegadeandy
May 08 12:28
Thats the kinda you get on desktop wifi cards?
i wonder if that would improve the radios range, more than the current explorer rig I use?
jonny772
@jonny772
May 08 12:38
it will improve the range a lot as long as you use a targeted antenna
I've got one on order for my Edison explorer so ill let you know the imporvement
renegadeandy
@renegadeandy
May 08 15:17
can you link to the one you went for? @jonny772
jonny772
@jonny772
May 08 15:20
@renegadeandy I bought a bunch to test but they are all far too big to carry around as its for my second rig which will be a home base-station! size doesn't really matter, especially as I've put a 20,000 mAh battery in it. I have ordered one of these to test on my portable rig. https://www.amazon.co.uk/gp/product/B00N4YMMTG/ref=ppx_yo_dt_b_asin_title_o00_s00?ie=UTF8&psc=1
renegadeandy
@renegadeandy
May 08 15:21

@jonny772 I like the idea of the home base stattion. I may well purchase the Pi0W and use that as my home base.

What does your base station rig look like?

jonny772
@jonny772
May 08 15:24
@renegadeandy I've used the Edison again with the explorer and added some battery management for a multi cell layout. Fairly basic, will post a picture when ive finished
renegadeandy
@renegadeandy
May 08 15:27
I prefer the idea of using the pi0W with a big aerial and a plug, that way i dont need to think about power management
Jon Cluck
@cluckj
May 08 15:41
if you don't want to bother with power management, try a pi3 :) super fast loops
and these are back in stock: https://www.adafruit.com/product/4072
renegadeandy
@renegadeandy
May 08 16:03
@cluckj is that a Pi, with Radio built in? Do I need the "LORA" module or the other one? What is LORA?
Jon Cluck
@cluckj
May 08 16:08
that's a bonnet (kind of a HAT) with a radio, buttons & screen on it
you want the 915/868 RFM69HCW version
it makes for a great solder-free stationary rig
so you are saying use a pi3 instead of a pi0W?
whats the difference between the pi3 and the Pi0?
Jon Cluck
@cluckj
May 08 16:16
yes you could, yes, and yes
the pi3 is much much faster than the pi0
renegadeandy
@renegadeandy
May 08 16:18
ok
pity - not in stock for UK suppliers
renegadeandy
@renegadeandy
May 08 16:24

so I am new to the Pis, I have an old one but havent really worked on them before.

If I went ahead and got this for the quick short term : https://thepihut.com/products/adafruit-rfm69hcw-transceiver-radio-breakout-868-or-915-mhz?variant=27740302289&gclid=CjwKCAjw_MnmBRAoEiwAPRRWW7YDqc6efRyIChnG7ib_59-vcSI_9qv6Li3a30cdyPDP5CCUlG68qhoCE4sQAvD_BwE

How do I know which pins to hook it up to the board (I would probably just use a bit of solder

and from the loops perspective, if i ever revive my edison rig (pending new replacement explorer hat) -- will they both just work together in harmony, as they are driven from the same code base?
Jon Cluck
@cluckj
May 08 16:27
there are some instructions in the openaps docs, and support for it in dev
and they should both listen for silence first and bow out to the one with he greater signal.
renegadeandy
@renegadeandy
May 08 17:54
@cluckj And about the pins??
jonny772
@jonny772
May 08 17:55
image.png
renegadeandy
@renegadeandy
May 08 17:59
so is there specific pins on the rpi for SPI then?
or is that configurable?
Raymond Richmond
@PedanticAvenger
May 08 19:33
Hmmm, local pumpers group asked for a presentation on APS tech. Anyone got publicly available slides I could crib from to support my "I don't want to make them." needs. :)
Dana Lewis
@danamlewis
May 08 19:35
ya. email me and I can send you some slides you're welcome to pull from?
Raymond Richmond
@PedanticAvenger
May 08 19:35
Will do.
zasteph
@zasteph
May 08 19:57
Edison rig with oref0 kept crashing overnight. I looked through some logs under /var/log, without much luck.
One log suggested to upgrade, I was 2 releases back, so I upgraded and it now works again. While this fixed the issue, I don't think it was the real problem. In the future, what logs should I check in order to better understand what/why it’s failing? Thank you.
renegadeandy
@renegadeandy
May 08 20:21

@jonny772 @cluckj is this the right connector I need for an antennae for my board

https://thepihut.com/products/adafruit-edge-launch-sma-connector-for-1-6mm-0-062-thick-pcbs
or there is a 0.8mm version? Will this solder onto the rfm69hcw i list below? I don't know if the sizes would fit?
for this:

https://thepihut.com/products/adafruit-rfm69hcw-transceiver-radio-breakout-868-or-915-mhz?variant=27740302289

Also - which screw in antennae would I buy for the smb connector? Would one of my spare wifi router antennae work?

jonny772
@jonny772
May 08 20:49
1.6mm SMA edge connector..
Any gsm (like the one above) will work
renegadeandy
@renegadeandy
May 08 21:10
@jonny772 many thanks. Just to confirm then, that hooking up a router wifi antennae will not be as effective as this gsm band antennae? What is the reason behind that?
Scott Leibrand
@scottleibrand
May 08 21:10
physics
antennas are designed so that they transmit and receive at a given wavelength/frequency
the simplest antenna is a wire that's exactly the length of its target wavelength, or slightly less effectively, but way more compact, 1/2 or 1/4 of the wavelength
so if you want something that works at 900MHz, it's going to be a different length than something optimized for 2.4GHz
renegadeandy
@renegadeandy
May 08 21:13
Okay that makes sense :)
Scott Leibrand
@scottleibrand
May 08 21:13
the mouser antennas we recommend for EB and EH are basically just a 1/4 wavelength wire whip antenna, so there are slightly different lengths for 916MHz vs. 868MHz
other antenna designs do things like coil up the wire, but they still depend crucially on its exact length
renegadeandy
@renegadeandy
May 08 21:14
so this : https://thepihut.com/products/adafruit-mini-gsm-cellular-quad-band-antenna-2dbi-sma-plug -- how does it know its going to be emitting a 868Mhz signal, is it optimised for just that wavelength?
is quad band always 868?
Scott Leibrand
@scottleibrand
May 08 21:18
no, the description for that antenna says it's for "just about any 850/900/1800/1900/2100 wireless receiver/transmitter such as any Cellular or GSM/GPRS device."
renegadeandy
@renegadeandy
May 08 21:18
so its not optimised particularly?
Scott Leibrand
@scottleibrand
May 08 21:18
so it's probably optimized for 900 / 1800
which works ok for 868 or 915 or 1900 or 2100
renegadeandy
@renegadeandy
May 08 21:19
but it would be better than a standard wire?
Scott Leibrand
@scottleibrand
May 08 21:19
who knows
renegadeandy
@renegadeandy
May 08 21:19
lol
physics huh?
Scott Leibrand
@scottleibrand
May 08 21:19
it's better than one optimized for 2.4GHz
renegadeandy
@renegadeandy
May 08 21:19
yeah
Scott Leibrand
@scottleibrand
May 08 21:19
yeah, RF is physics, but it's also sorta magic
renegadeandy
@renegadeandy
May 08 21:19
;)
Scott Leibrand
@scottleibrand
May 08 21:21
there are also "wideband" vs. "narrowband" antennas: you can make them super-effective at one particular frequency, or reasonably-effective at a much broader range of frequencies
but I don't know much about how that is accomplished
renegadeandy
@renegadeandy
May 08 21:33
Ok excellent, I have ordered a pi3, the RFM69HCW, a SMA connector, and quad band antennae. This will act as a rig based in the upstairs of our house , or my office. It won't move. I want to see what kind of coverage it will give and see how it operates against my very broken edison rig (which isn't running pending yet another Edison explorer board with crazy long postage times :(
Thank you @jonny772 @cluckj and @scottleibrand
Alfredo kachy
@kachytronico
May 08 21:39
Good evening, I have edison with the 0.6.3 master branch and I have noticed a couple of times that the rig gets very hot. Since I have updated and installed logger the battery does not last more than 10 hours. Normally when I get home, I'm still connected to the BT and at the same time to wifi. I do not know how to get rid of BT automatically, I do it manually when I remember. can this be causing me to spend more battery but warm-ups?
Alfredo kachy
@kachytronico
May 08 21:53
The battery is 2500mah.