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

1st
Jan 2017
jordan-berger
@jordan-berger
Jan 01 2017 00:00
20161231_164849.jpg
20161231_164849.jpg
Dana Lewis
@danamlewis
Jan 01 2017 00:00
thx @jordan-berger
jordan-berger
@jordan-berger
Jan 01 2017 00:00
20161231_164905.jpg
20161231_164840.jpg
Dana Lewis
@danamlewis
Jan 01 2017 00:01
@tmecklem i don’t believe they went through the certification process, but I can’t remember all the discussion/rationale on why/not
Tim Mecklem
@tmecklem
Jan 01 2017 00:03
As I understand it, it's unlicensed and you can do certain things in one off or prototyping that doesn't require certification. This is an interesting thread though. Seems less clear to me after reading it where the line is :) http://electronics.stackexchange.com/questions/153860/915-mhz-fcc-certification
jordan-berger
@jordan-berger
Jan 01 2017 00:03
the specifications indicate a 4db gain. they are only $2.50 so i bought a few more for every rig. The shipping was more than the parts.
Dana Lewis
@danamlewis
Jan 01 2017 00:05
wonder if you get the same benefits if it’s wrapped/tucked around the rig, or only if it’s laid out like that
Tim Mecklem
@tmecklem
Jan 01 2017 00:05
The adafruit and sparkfun breakout boards seem to usually ship without an antenna. There must be an exemption for tinkerers.
Scott Leibrand
@scottleibrand
Jan 01 2017 00:05
I think there is a limit on how many boards someone can technically have and still be license exempt. I doubt an antenna changes anything: FCC is mostly concerned there that total transmit power doesn't exceed limits, and this is a pretty low-power device
jordan-berger
@jordan-berger
Jan 01 2017 00:05
I have it looped in a case, and it did not seem to make a difference.
Matt Walker
@walker0
Jan 01 2017 00:07
@Aaybob not sure if the US is the same but in Australia for individuals as long as you stay under a certain transmit power you are fine. Not sure whether that also applies to those distributing the boards but I think it might.
Dana Lewis
@danamlewis
Jan 01 2017 00:07
@jordan-berger cool, please keep us posted on looping with the antenna :+1:
Aaron Michelson
@Aaybob
Jan 01 2017 00:07
Maybe its not difficult to get the FCC approval. The manufacturer would be the ones to do it.
jordan-berger
@jordan-berger
Jan 01 2017 00:08
If I buy a Samsung lithium battery and take it on a plane, and it catches on fire, will the FDA, FCC, or FAA have jurisdiction. Too many F letter agencies involved in this.
Chris Oattes
@cjo20
Jan 01 2017 00:08
My aps hasn't killed my yet with the leap second
Dana Lewis
@danamlewis
Jan 01 2017 00:08
@cjo20 yes, but did it kill itself? :p that would be the only predicted outcome
too many safety settings otherwise ;)
thanks for reporting in and sharing :+1:
and happy new year :)
Aaron Michelson
@Aaybob
Jan 01 2017 00:09
but over time will that second accumulate something? @cjo20
Scott Leibrand
@scottleibrand
Jan 01 2017 00:09
@Aaybob FCC certification is rather expensive (five figures IIRC). I don't think most Edison, Arduino, and similar devices are FCC certified: that's more for regular consumer electronics
Aaron Michelson
@Aaybob
Jan 01 2017 00:10
The explorer board is certified.
Tim Mecklem
@tmecklem
Jan 01 2017 00:10
Pretty interesting. I didn't even think about the FCC in all this stuff. To quote Eminem...
Scott Leibrand
@scottleibrand
Jan 01 2017 00:10
@Aaybob where do you see that? I don't believe it is.
Aaron Michelson
@Aaybob
Jan 01 2017 00:11
an answer may take a while
glenrob1940
@glenrob1940
Jan 01 2017 00:14
Whether or not it is certified is probably not that big a deal. What individuals do with it is their own choice. The FCC or other agencies are not going to come after individuals for how they use/modify a device.
Chris Oattes
@cjo20
Jan 01 2017 00:14
@Aaybob I don't think the extra second changes anything really
jordan-berger
@jordan-berger
Jan 01 2017 00:15
I also learned the VERY hard way that you cannot take an edison that was built on a sparkfun baseboard and connect it to an explorer board. It gives you all kinds of fits and errors. Chalk that one up to experience.
jaylagorio
@jaylagorio
Jan 01 2017 00:15
I'm surprised the 2.4 GHz antenna works well in the 900 MHz range but that's great to hear that it does
glenrob1940
@glenrob1940
Jan 01 2017 00:16
@jordan-berger I presume you mean OS installed with "built on".
jaylagorio
@jaylagorio
Jan 01 2017 00:17
Also agree that the FCC isn't going to come after individuals as long as you're not intentionally jamming something important.
jordan-berger
@jordan-berger
Jan 01 2017 00:17
Yes, I took a working rig with a sparkfun baseboard and TI stick and tried to move the edison to an explorer board.
Chris Oattes
@cjo20
Jan 01 2017 00:18

@danamlewis Happy new year! I'm excited to see the wonderful things this community will create in 2017.

My azure nightscout instance seems to be working correctly, with oref0 behaving sensibly

Geoff Aumaugher
@geoffro10
Jan 01 2017 00:18
@danamlewis Yeah, I got the thing to pair to bluetooth but the connection to the pump was very sporadic. I wiped it out and went back to the original to get up and running again. Stepping through the whole thing again on a secondary rig. Can only proceed so far though because I only have one explorer board.
glenrob1940
@glenrob1940
Jan 01 2017 00:18
The issues were caused by the OS installing drivers for chips that probably were no longer present. I presume reflashing fixed it.
Matthias
@ceben80
Jan 01 2017 00:18
Happy new year :tada:
Dana Lewis
@danamlewis
Jan 01 2017 00:19
@ceben80 no issues with the new year for you? :)
@cjo20 :+1: :clap:
Matthias
@ceben80
Jan 01 2017 00:19
:smile:
jordan-berger
@jordan-berger
Jan 01 2017 00:20
I figured all of the programming and code was on the edison, and the board was isolated. Not the case!
I reflashed the edison on the explorer board and now everything is working perfectly.
glenrob1940
@glenrob1940
Jan 01 2017 00:24
@jordan-berger most likely, differences were in where things were attached to the 'south bridge' between the two boards.
Aaron Michelson
@Aaybob
Jan 01 2017 00:29
@scottleibrand what I remember is it was in a pamphlet online in an early announcement of the new board
that stated something like it is a radio transmitter and as such is only approved for use with antenna's that have received approval and that antenna manufacturers would have to get that approval with the explorer board
Aaron Michelson
@Aaybob
Jan 01 2017 00:41
https://transition.fcc.gov/bureaus/oet/info/documents/bulletins/oet63/oet63rev.pdf this is not what I read previously but it supports the idea. There are four exceptions to license requirements in the FM radio range. Artical 15 Page one is the exception for some extreem low power transmitters. Page two section titled "antenna" spells out what the pamphlet said.
AdrianLxM
@AdrianLxM
Jan 01 2017 00:46
Is this the same FCC that is popular for censoring radio shows or is it a totally different bureau with the same letters?
jaylagorio
@jaylagorio
Jan 01 2017 00:47
Same one.
Just very different groups working for the same agency.
Aaron Michelson
@Aaybob
Jan 01 2017 00:49
Oops poor first read. There are two exceptions. There are four parts of the document that discuss them and the penalties.
Federal Communications Commission I believe. I think their concern is clear emergency communication.
Aaron Michelson
@Aaybob
Jan 01 2017 00:58
That previous document links to this one which is the one I referenced. https://drupal7admin.fcc.gov/general/oet-bulletins-line#63
Aaron Michelson
@Aaybob
Jan 01 2017 01:20
@scottleibrand These two documents make the FCC regulations clear. https://www.fcc.gov/media/radio/low-power-radio-general-information and https://transition.fcc.gov/bureaus/oet/info/documents/bulletins/oet63/oet63rev.pdf It is difficult to understand but it does support the document I am still looking for.
Aaron Michelson
@Aaybob
Jan 01 2017 01:25
@scottleibrand the document I can't find yet could be interpreted as a wink and a nod saying the connector for an antenna is in place. It hypothisized that other antennas could be used for seeking approval from the FCC.
@scottleibrand I do think that if we were to recommend an external antenna there would be consequences. Perhaps corporations could use it to propagandize against open medical communications.
Dana Lewis
@danamlewis
Jan 01 2017 01:30
that seems a bit extreme
Aaron Michelson
@Aaybob
Jan 01 2017 01:30
They have one motivation. More money.
Dana Lewis
@danamlewis
Jan 01 2017 01:31
if anything, the diy community is increasing market share for every pump, cgm, and closed loop company.
Aaron Michelson
@Aaybob
Jan 01 2017 01:32
What about that "cowboys" reference?
Dana Lewis
@danamlewis
Jan 01 2017 01:33
what about it? it doesn’t change what I stated above. someone’s got to make the pumps, cgms we are using.
Scott Leibrand
@scottleibrand
Jan 01 2017 01:33
You're getting all worked up over nothing. Antennas don't change the total radiated power of a device. They just direct it in a horizontal plane instead of wasting energy on vertical radiation. And you'd have to have a super narrow directional antenna to get anywhere near the limits ok radiation levels in the unlicensed 900MHz bands.
Aaron Michelson
@Aaybob
Jan 01 2017 01:33
I just have a sense that we should abandon external antenna research.
@scottleibrand you obviously didn't read the first page of each document
Dana Lewis
@danamlewis
Jan 01 2017 01:35
but, this is also one (of many) reason why we’re not producing devices…someone else can figure out all the legal requirements for device manufacturing, and that leaves us as individuals in a place where we can each build what we want/need to build.
Aaron Michelson
@Aaybob
Jan 01 2017 01:35
and its a very minor violation we think
jaylagorio
@jaylagorio
Jan 01 2017 01:35
@danamlewis Very true
Aaron Michelson
@Aaybob
Jan 01 2017 01:35
and if we sought FCC aproval it would be granted
Scott Leibrand
@scottleibrand
Jan 01 2017 01:36
Your first document is about the AM and FM licensed bands. We use 900MHz unlicensed.
Dana Lewis
@danamlewis
Jan 01 2017 01:36
@Aaybob if you want to pursue that, you may want to create an issue in the explorer board repo to ask about it, or contact the ERD folks directly, since they’re the ones distributing explorer boards
Scott Leibrand
@scottleibrand
Jan 01 2017 01:37
And don't forget we're talking to a pump that transmits quite weakly. So anything we do is going to remain very low power no matter how good our antenna is.
By contrast, there are 900MHz applications with directional antennas that transmit over multiple km ranges.
jaylagorio
@jaylagorio
Jan 01 2017 01:38
The FCC doesn't care what people do in the unlicensed ISM bands at short ranges when interference isn't caused intentionally. Source: A colleague at the FCC who works in enforcement.
Scott Leibrand
@scottleibrand
Jan 01 2017 01:38
:+1:
Aaron Michelson
@Aaybob
Jan 01 2017 01:44
Maybe I'll come across the document I read that spoke specifically of the explorer board. I was thinking 90MHz and looking for alternative documentation. But yes those documents don't apply here.
Cell phones use 894MHz and they are protected from interference.
jaylagorio
@jaylagorio
Jan 01 2017 01:48
894 MHz doesn't fall into ISM
ISM starts at 902 MHz for that part of the spectrum
^^ USA, your jurisdiction may vary
Aaron Michelson
@Aaybob
Jan 01 2017 01:49
I belive the FCC doesn't care and would only respond to a complaint of interference at a regulated frequency.
Why do you say 900MHz is unregulated?
jaylagorio
@jaylagorio
Jan 01 2017 01:50
902 MHz - 930 MHz is unlicensed, not unregulated
*902 MHz - 928 MHz, sorry
You don't need to hold a license to make a device that uses those frequencies as long as they don't use them in such a way to intentionally interfere with other devices in the same part of the spectrum or damage devices outside those ranges
Aaron Michelson
@Aaybob
Jan 01 2017 01:52
These regulations definitly don't cross internationl boundaries.
Although air trafic control frequencies would
jaylagorio
@jaylagorio
Jan 01 2017 01:53
Like I said, I'm talking US - your jurisdiction may vary
But here's a chart that'll tell you which bands you can use internationally: https://en.wikipedia.org/wiki/ISM_band#Frequency_allocation
Aaron Michelson
@Aaybob
Jan 01 2017 01:54
I think you're talking about restricted bands. No?
Scott Leibrand
@scottleibrand
Jan 01 2017 01:56
It's probably technically illegal to use 915MHz US pumps in countries where that is a licensed band, and vice versa with 868MHz pumps here. But again, they're so low power that the chance of causing interference (vs. receiving it) is quite low.
jaylagorio
@jaylagorio
Jan 01 2017 01:56
No, I'm talking about bands that a device manufacturer is allowed to use without holding a license. There are restrictions to everything, but these bands have far fewer of them.
Aaron Michelson
@Aaybob
Jan 01 2017 01:56
I think there's regulated and restricted, not any unregulated. But its all new to me.
jaylagorio
@jaylagorio
Jan 01 2017 01:56
@scottleibrand Agreed!
jaylagorio
@jaylagorio
Jan 01 2017 02:00
I think we're talking past each other and saying the same thing.
Aaron Michelson
@Aaybob
Jan 01 2017 02:02
I read a document put out by the manfacturer of the explorer board that said no external antenna allowed, which I can't find. I still know I read that.
chrisharris751
@chrisharris751
Jan 01 2017 02:06
Individuals will always do their own thing no matter what. Let sleeping dogs lie I say.
diabeticgonewild
@diabeticgonewild
Jan 01 2017 02:36
RF interference (WiFi, Bluetooth, AM/FM modulation, mobile data) with medical devices and other equipment is pretty irrelevant to what we are doing.
I actually never put my phone on "airplane mode" when getting on the plane, due to using a Dexcom G5. I hope you guys rip me because of that.
Aaron Michelson
@Aaybob
Jan 01 2017 02:43
I was happy thinking I was the only "right" one. But it was a delusion.
diabeticgonewild
@diabeticgonewild
Jan 01 2017 02:55
@Aaybob it's OK. It's good to be passionate about things. 😍😃
Matt Walker
@walker0
Jan 01 2017 03:02
@diabeticgonewild If you use an iPhone you an actually turn airplane mode on and then turn bluetooth back on and it will work with the G5.
diabeticgonewild
@diabeticgonewild
Jan 01 2017 03:03
Oh, cool! But frankly, I'm a jerk and I'm still not going into airplane mode. And plus, it's cool being out in the boonies in the middle of nowhere picking up mobile phone signals here and there! 🤣
Joe
@t1djoe
Jan 01 2017 03:30
Max transmit power in ISM bands in US is 1 watt. Max effective radiated power is 4 watts. The chances of hitting that with the explorer boar as-is is nearly zero. And if the explorer board is FCC certified, it would have to be marked on the board itself, along with any documentation. Most (all?) DIY radio boards are NOT FCC certified, because it is assumed they'll be one-off or prototype devices. If you were to buy explorer boards and package them up with an Edison as a device to sell (ie: remote control), you would be required to get the entire device FCC certified. The FCC is definitely strict, but they leave quite a bit of wiggle room in the ISM bands.
Matt Walker
@walker0
Jan 01 2017 03:31
The explorer board is 10mW so well below those limits
diabeticgonewild
@diabeticgonewild
Jan 01 2017 03:40
Yeah...
I should start working on my Explorer setup. I will ping you guys if I need help along the way when following the guides. FYI I plan on getting a Dexcom G4 instead of my (current) Dexcom G5. The way the Dexcom is rigged to the phone is pretty annoying on the G5. Additionally the connection (not necessarily the signal) sucks on the G5, let's just face it.
chrisharris751
@chrisharris751
Jan 01 2017 04:06
Yep, I'm using G5 at the moment with my rig. It's so inconsistent, it's a real hassle. It's just nice not to carrying an extra tic-tac box for the G4.
Aaron Michelson
@Aaybob
Jan 01 2017 04:31
@diabeticgonewild I got a used edison and explorer wraped in newspaper in the mail. I followed the first video now listed in the documentation. When I brought up a serial terminal the screen stayed blank after repeated "enter"s. Then I followed your video. When I checked "my computer" the drive was absent. It was there when doing the first video. What should I do?
Aaron Michelson
@Aaybob
Jan 01 2017 05:01
maybe I'll try another computer
Aaron Michelson
@Aaybob
Jan 01 2017 05:06
@diabeticgonewild when do you unplug the edison? with rpi we allways do "sudo shutdown -h now" but I've just been unplugging the edison because no terminal. although i had a terminal on edison after i burned the explorer....
diabeticgonewild
@diabeticgonewild
Jan 01 2017 05:32
Don't worry about not seeing it in My Computer it is no big deal usually.
@Aaybob just disconnect the 2 micro USB connections at the Edison to do the flashing process.
It will be OK, I pro
Jaw.
Promise.
Scott Leibrand
@scottleibrand
Jan 01 2017 06:27
@Aaybob once you have everything installed, a quick press of the little round button by the charging LED will trigger a shutdown -h
chrisharris751
@chrisharris751
Jan 01 2017 06:51
@scottleibrand Will it start it back up as well?
Scott Leibrand
@scottleibrand
Jan 01 2017 06:54
Yes: a slightly longer press until the power LED comes back on.
chrisharris751
@chrisharris751
Jan 01 2017 06:56
Thanks.
jmcrawford
@jmcrawford
Jan 01 2017 07:40
Pushing the button does a clean shutdown?
chrisharris751
@chrisharris751
Jan 01 2017 08:02
Hmm, unless I'm doing something wrong, mine isn't shutting down with the button. It still have to ssh in and sudo shutdown -h now
Hardwick2000
@Hardwick2000
Jan 01 2017 13:49
Picture3.png
I am still having issues communicating with my pump (522) - the pump works with both a Carlink Stick and the Medtronic remote. I've completed a 100% fresh install (including the OS but I am still getting errors...not sure what to do next!?
Matthias
@ceben80
Jan 01 2017 14:01

@Hardwick2000 what does get_rfspy_version.py say?

That's my output is here:

edison@eddie:~/src/subg_rfspy$ ./tools/get_rfspy_version.py /dev/ttyMFD1
RileyLink OK
Version: subg_rfspy 0.8
Response: subg_rfspy 0.8

You'll need to set your /dev/SOMETHINGwhen running this command :wink:

Do you have subg_rfspyinstalled on your rig?
MitchDex
@MitchDex
Jan 01 2017 14:33
homebrew
glenrob1940
@glenrob1940
Jan 01 2017 14:37
@chrisharris751 @scottleibrand Likewise my system does not shutdown with a momentary press. Holding it approx 10 seconds shuts it down which is probably a hardware shutdown and not an OS safe shutdown. I do it at times when I don't have access via ssh
My assumption is something has to be set up in the OS to enable that safe shutdown with momentary press.
Chris Oattes
@cjo20
Jan 01 2017 14:41
Try pressing it for 3-4 seconds
glenrob1940
@glenrob1940
Jan 01 2017 14:46
Does not do anything. I waited 2 minutes after in case that was calling shutdown w/o 'now' and there was a default wait of a minute or so.
My guess is we need to install/configure acpid
Hardwick2000
@Hardwick2000
Jan 01 2017 14:56
@ceben80 thanks for the suggestion - how do you go about installing subg_rfspy?
glenrob1940
@glenrob1940
Jan 01 2017 14:56
@cjo20 acpid is installed, my sh script knowledge is hazy at best, but the script "/etc/acpi/powerbtn-acpi-support.sh" is there
Matthias
@ceben80
Jan 01 2017 14:58
easy @Hardwick2000
cd ~/src && git clone https://github.com/ps2/subg_rfspy.git
after installation
~/src/subg_rfspy and see above :wink:
Hardwick2000
@Hardwick2000
Jan 01 2017 15:06
@ceben80 I am getting the same result as you when calling ./tools/get_rfspy_version.py /dev/spidev5.1 (ie RileyLink Ok...etc etc). What does this mean?
Matthias
@ceben80
Jan 01 2017 15:14
Don't know why "RileyLink" but looks goods regarding communcation on your board
I assume you do have a US pump not a WW?
Hardwick2000
@Hardwick2000
Jan 01 2017 15:15
@ceben80 A WW pump...is that an issue?
Matthias
@ceben80
Jan 01 2017 15:17
Okay then you'll have to look at and implement, I do have a WW pump too and I know your errors
https://github.com/oskarpearson/mmeowlink/wiki/Non-USA-pump-settings

after implementation of subg-ww-radio-parametersI have modified my mmtuneto

mmtune = ! bash -c "subg-ww-radio-parameters; echo -n \"mmtune: \" && openaps report invoke monitor/mmtune.json 2>/dev/null >/dev/null; grep -v setFreq monitor/mmtune.json | grep -A2 $(json -a setFreq -f monitor/mmtune.json) | while read line; do echo -n \"$line \"; done"

possibly you have to chmodto 750I did due to insufficient rights
sudo chmod 750 /usr/local/bin/subg-ww-radio-parameters
@Hardwick2000 I'll keep my fingers crossed :wink:
Hardwick2000
@Hardwick2000
Jan 01 2017 15:22
@ceben80 thanks - I am working through this now
Matthias
@ceben80
Jan 01 2017 15:25
@Hardwick2000 It's easy, but read carefully, must amend SERIAL_PORTand SUBG_RFSPY_DIR and I think comment out export RFSPY_RTSCTS=0
Since I did this procedure, my Eddie run fine since several weeks, before, tons of these errors you descripted
.....and @Hardwick2000 did you set --radio_locale='WW' in oref0-setup :question:
Matthias
@ceben80
Jan 01 2017 15:31
setsradio_type = subg_rfspyin pump.ini
[device "pump"]
serial = 123456
port = /dev/ttyMFD1
radio_type = subg_rfspy
Hardwick2000
@Hardwick2000
Jan 01 2017 15:40
@ceben80 Hi, I've rerun the setup to check, and I wasn't given the option to add a locale...
Matthias
@ceben80
Jan 01 2017 15:40
@Hardwick2000 1st to test invoke as follows
Be aware on other openaps process is running and before you -r(remove) your cron you must make a copy by doing crontab -l > crontab_bak
edison@eddie:~/myopenaps$ crontab -r
edison@eddie:~/myopenaps$ killall -g --older-than 1m openaps
edison@eddie:~/myopenaps$ openaps report invoke monitor/mmtune.json && cat monitor/mmtune.json | grep freq
pump://JSON/mmtune/monitor/mmtune.json
edison@eddie:~/myopenaps$ openaps report invoke monitor/mmtune.json && cat monitor/mmtune.json | grep setFreq
pump://JSON/mmtune/monitor/mmtune.json
reporting monitor/mmtune.json
  "setFreq": 868.432,
to enable cron, just crontab crontab_bakor use crontab -e

see here @Hardwick2000

you must change to you parameter :wink:

cd && oref0-setup --dir=/home/edison/myopenaps --serial=123456 --cgm=<SOMETHING> --ns-host=https://xxx.herokuapp.com --api-secret=xxxxxxxxxx --tty=/dev/<SOMETHING> --enable=' autosens meal ' --radio_locale='WW'

Matthias
@ceben80
Jan 01 2017 15:47
import is you got a WW freq after running openaps report invoke monitor/mmtune.json for example 868.432(not a 916.xxfreq)
sorry...must leave for today...HTH :wink:
Hardwick2000
@Hardwick2000
Jan 01 2017 15:49
@ceben80 I've run the oref0 setup as per your script above and it doesn't recognise the locale...appreciate you have to go, thanks for your help so far, I will keep battling on.
MelanieMitschke
@MelanieMitschke
Jan 01 2017 15:50
On the Nightscout page, for openaps is says my pump is "device undefined." What should I do? It's said this for 24 hours.
Matthias
@ceben80
Jan 01 2017 16:00
Maybe you'll have to update oref0 dev....how to, see in openaps doc @Hardwick2000
MelanieMitschke
@MelanieMitschke
Jan 01 2017 16:01
@ceben80 Was that answer for me?
Matthias
@ceben80
Jan 01 2017 16:03
No for Hardwick...tagged him :wink:
Hardwick2000
@Hardwick2000
Jan 01 2017 16:03
@scottleibrand is there a way of setting locale=WW in the setup script?
PieterGit
@PieterGit
Jan 01 2017 16:46
@Hardwick2000 Al fixes for ww should be in dev branch, not yet in master. If you 'git checkout dev' and 'git pull' you get that codebase. I tested the ww stuff with the cli options just like @ceben80 suggested
Please check that you have the latest dev branch and let us know what command line you use (change or remove pump number and other sensitive stuff like url's and mac addresses)
Matthias
@ceben80
Jan 01 2017 16:55
@PieterGit :+1:
PieterGit
@PieterGit
Jan 01 2017 17:01
@ceben80 also the subg-ww script is integrated now. I did this couple of days back. @Hardwick2000 please also check if your pump.ini has a radio_locale ini it after installing from latest dev. Please tell us how do you conclude ww pump is not working (e.g output of 'openaps mmtune')
Matthias
@ceben80
Jan 01 2017 17:02
Wow, it's now in - great :clap:
PieterGit
@PieterGit
Jan 01 2017 17:06
@ceben80 : having holidays 🎉. next on my list: get dexcom usb working stable on edison with explorer board with recent kernel. I think i need @ecc1 or other kernel hackers to get that working
jaylagorio
@jaylagorio
Jan 01 2017 17:14
@PieterGit I got that working pretty easily using the directions. I've heard people are running into issues with their USB OTG cables though.
For OTG I didn't do anything special. I haven't been able to get the G4 receiver to work with Bluetooth though.
C-Ville
@C-Ville
Jan 01 2017 17:15
Happy new year to everybody
PieterGit
@PieterGit
Jan 01 2017 17:15
@jaylagorio what kernel do you use? Dexcom g4 ?
jaylagorio
@jaylagorio
Jan 01 2017 17:16
@PieterGit I can get it to connect and pair and the receiver seems to be working normally otherwise, but even simple openaps commands like openaps use cgm ReadSystemTime don't work.
Yes, Dexcom G4. I use whatever kernel is in Jubilinux.
Matthias
@ceben80
Jan 01 2017 17:17
@PieterGit Great respect what you're doing for openaps :star2:
jaylagorio
@jaylagorio
Jan 01 2017 17:17
^^
Aaron Michelson
@Aaybob
Jan 01 2017 18:18
Is it okay to leave stationary RPi plugged in all the time? I used to worry about my log file length but now have a log file in /var/log/
jaylagorio
@jaylagorio
Jan 01 2017 18:34
@Aaybob I guess it depends on the size of your microSD card, how big is it?
PieterGit
@PieterGit
Jan 01 2017 18:40
@Aaybob : logs will be rotated with logrotate options. See https://github.com/openaps/oref0/blob/master/logrotate.openaps which is installed by oref0-setup.sh
Hardwick2000
@Hardwick2000
Jan 01 2017 19:19
Picture4.png
Hi @PieterGit - I've pulled the dev branch as you suggested and run the setup script which now asks for a locale (US/WW) as part of the Q&A process. However, towards the end of the setup, I get an error saying that WW is not a recognized argument...
Terri Lyman
@tatigger
Jan 01 2017 20:00
Hi guys, I did manage to get the wifi working on my Edison, by reflashing it and then setting up the files again, but I cannot seem to log into it from my mac using terminal. It asks for a password, but I can't tell which password. I have tried the password for root, the password for the edison that I gave it when I renamed it, and also the default: edison. There does not seem to be a way to specify if you are logging in as root or as the regular user. So which password does it want? SO CLOSE!
Matt Walker
@walker0
Jan 01 2017 20:12
@tatigger when you ssh in with a mac you can specify the user the syntax is ssh username@edisonname.local
PieterGit
@PieterGit
Jan 01 2017 20:12
@Hardwick2000 : you need to install OpenAps dev as well.

@Hardwick2000

cd ~/src
git clone https://github.com/openaps/openaps.git
cd openaps
git checkout dev
sudo python setup.py develop

Then re-setup oref0-setup.sh

Hardwick2000
@Hardwick2000
Jan 01 2017 20:52
Picture6.png
@PieterGit I've now installed OpenAps dev and re-setup oref0-setup.sh - the error has gone and the pump has been added. However, there is still no locale information in pump.ini and also during the oref0-setup.sh process it appears mmtune is trying to communicate with the pump on 916kHz.
PieterGit
@PieterGit
Jan 01 2017 21:04
@Hardwick2000 : try adding radio_locale=WW to pump.iniand run openaps mmtune and then openaps use pump model to see if that works
how did you install oref0?
Hardwick2000
@Hardwick2000
Jan 01 2017 21:30
@PieterGit thanks - that seems to have done it :smile:
PieterGit
@PieterGit
Jan 01 2017 21:34
@scottleibrand : can you release openaps 0.1.6 or 0.2.0, because ww pumps need it to work @Hardwick2000 : good luck with the rest of setting up openaps, i wonder why the radio_locale is not added to your pump.ini. @Hardwick2000 can you confirm your openaps oref0-setup.sh has the line https://github.com/openaps/oref0/blob/dev/bin/oref0-setup.sh#L455 (grep -q radio_locale pump.ini || echo "$(< pump.ini)" > pump.ini ; echo "radio_locale=$radio_locale" >> pump.ini in it?
Scott Leibrand
@scottleibrand
Jan 01 2017 21:37
@PieterGit no, I can't.
Dana Lewis
@danamlewis
Jan 01 2017 21:37
I think there are a few things in dev that just got merged that need testing first before we get to another release
PieterGit
@PieterGit
Jan 01 2017 21:37
ok
Scott Leibrand
@scottleibrand
Jan 01 2017 21:38
only @bewest can do releases right now foropenaps. I might be able to figure out how to release things under a new name, and once we've tested that works, he can probably give me permissions to update openaps
doing a release of oref0 dev would be further out, but sounds like you only want openapsfor now
Hardwick2000
@Hardwick2000
Jan 01 2017 22:11
@PieterGit Hi, yes, I have the following: grep -q radio_locale pump.ini || echo "$(< pump.ini)" > pump.ini ; echo "radio_locale=$radio_locale" >> pump.ini
PieterGit
@PieterGit
Jan 01 2017 22:36
@Hardwick2000 : i can't explain why the radio_locale was not added. will look into it later.
Scott Leibrand
@scottleibrand
Jan 01 2017 22:41
@Hardwick2000 is not the first person to report that. not sure if anyone opened an issue on it yet though...
jaylagorio
@jaylagorio
Jan 01 2017 22:46
@scottleibrand Should I file an issue with using G4 receiver via Bluetooth on an Edison/Explorer or do you know of someone who made that work and it's just a thing I'm running into?
Scott Leibrand
@scottleibrand
Jan 01 2017 22:53
are you trying to use openxshareble?
if so, I don't know of anyone who's gotten that to work completely reliably. so an issue would probably be good.
jaylagorio
@jaylagorio
Jan 01 2017 22:56
That's right. Using oref0-setup makes everything work when connected via USB OTG but attempting to do the same thing with the ShareBLE option chosen doesn't work. I've gotten Bluetooth tethering working so I don't think it's the Bluetooth stack itself. I'll file the issue.
Brian Rabinovitz
@bdr1177
Jan 01 2017 23:00
I've done all the steps through creating the PLGM loop, but I'm not understanding how to use the carelink in this process. The Medtronic device is recognized as a device in openaps, but when I send a command like "openaps use pump model" I get an error: "Attempting to use a port that is not open"
Do I have to configure the pi to recognize, receive information, and send commands through the carelink? I didn't see instructions for that, but it seems like I'd need to do that at some point.
Tim Street
@tim2000s
Jan 01 2017 23:05
Just discovered that my Pi has filled up and OpenAPS is no liger running. Suspect it's a hit issue. Thing is that the truncate line is in my crontab as I installed it after the fix came out...
Dana Lewis
@danamlewis
Jan 01 2017 23:05
@bdr1177 is your carelink plugged in?
Brian Rabinovitz
@bdr1177
Jan 01 2017 23:05
Yes, plugged in to the pi.
Tim Street
@tim2000s
Jan 01 2017 23:05
*git

pi@raspberrypi:~/taps $ oref0-truncate-git-history
-bash: oref0-truncate-git-history: command not found
pi@raspberrypi:~/taps $ openaps oref0-truncate-git-history
[Errno 2] No such file or directory
openaps: 'oref0-truncate-git-history' is not an openaps command. See 'openaps --help'.

pi@raspberrypi:~/taps $ oref0-truncate-git-history
-bash: oref0-truncate-git-history: command not found
pi@raspberrypi:~/taps $

(That's from within my OpenAPS directory)
Any ideas why it hasn't been working?
Dana Lewis
@danamlewis
Jan 01 2017 23:06
@bdr1177 if you followed all the phase 0 and phase 2 steps, that should have done what's needed to use the carelink. What happens when you tail the log?
PieterGit
@PieterGit
Jan 01 2017 23:06
@scottleibrand : i was misled by some comments in auto-tune test script, pull request at openaps/oref0#308
btw with these scripts my auto tune test seems to work fine (no errors like previous tries)
Brian Rabinovitz
@bdr1177
Jan 01 2017 23:08
@danamlewis I get the same error ""Attempting to use a port that is not open" and then it endlessly loops retrying the same thing
Aaron Michelson
@Aaybob
Jan 01 2017 23:09
About flashing question: is flash specific to each breakout? Can I flash on mini breakout and plug Edison onto explorer?
Dana Lewis
@danamlewis
Jan 01 2017 23:09
You might have put something weird into the setup script...did you tell it anything when it asked about mmeowlink? @bdr1177
@Aaybob yep, then run setup script once it's on explorer
Brian Rabinovitz
@bdr1177
Jan 01 2017 23:13
@danamlewis I bypassed mmeowlink. But I did have one glitch when I reran the oref0 setup using the automated oref0-setup (i.e. using the string it generated as "To run again with the same options use: . . ."). It seemed to install some stuff related to mmeowlink. I reran the oref0 setup after that and it seemed fine
assuming this caused a problem, is there a way to fix this without going all the way back to reimaging raspian?
Dana Lewis
@danamlewis
Jan 01 2017 23:14
Hm. That might be the issue. Can you paste what that line was? May be a bug
And ya worst case you rerun setup from scratch
*setup script
Brian Rabinovitz
@bdr1177
Jan 01 2017 23:15
Here's the line. I put in "" for all the customized info: oref0-setup --dir=/home/pi/ --serial= --cgm=G4 --ns-host= --api-secret=* --enable=' autosens meal '
Dana Lewis
@danamlewis
Jan 01 2017 23:16
What did you think was mmeowlink related?
PieterGit
@PieterGit
Jan 01 2017 23:17
@bdr1177 do you use spaces for extra enable options? is should be --enable='autosens meal'
(no spaces)
Scott Leibrand
@scottleibrand
Jan 01 2017 23:17
*autosens (no e)
although I think it just does a substring match there, so NBD
PieterGit
@PieterGit
Jan 01 2017 23:18
@scottleibrand : awake. do you still have any grep questions? :smile:
Scott Leibrand
@scottleibrand
Jan 01 2017 23:18
hehe
PieterGit
@PieterGit
Jan 01 2017 23:19
it's now bedtime here, so please forgive my typo's
how many autotune runs / days can a pi3 do in a night?
Brian Rabinovitz
@bdr1177
Jan 01 2017 23:19
@PieterGit @scottleibrand The spaces were generated in the output from running cd && ~/src/oref0/bin/oref0-setup.sh
Scott Leibrand
@scottleibrand
Jan 01 2017 23:20
yeah, I don't think that matters. can double-check the code if necessary.
Brian Rabinovitz
@bdr1177
Jan 01 2017 23:22
@danamlewis Sorry, it is taking a minute to retrace my steps to see what it said about mmeowlink
@danamlewis So now it just says: Checking mmeowlink installation
{
"max_iob": 0,
"type": "current",
"max_daily_safety_multiplier": 3,
"current_basal_safety_multiplier": 4,
"autosens_max": 1.2,
"autosens_min": 0.7,
"autosens_adjust_targets": true,
"override_high_target_with_low": false,
"skip_neutral_temps": false,
"bolussnooze_dia_divisor": 2,
"min_5m_carbimpact": 3,
"carbratio_adjustmentratio": 1
}
Dana Lewis
@danamlewis
Jan 01 2017 23:25
Checking should not be the issue..for kicks a) unplug and replug your carelink? And run and tail logs again and see if that helps?
Brian Rabinovitz
@bdr1177
Jan 01 2017 23:26
@danamlewis When in the process should the carelink actually be connected?
Same error is showing with the logs?
Brian Rabinovitz
@bdr1177
Jan 01 2017 23:35
@danamlewis unless I missed it, I don't remember a step saying to plug the carelink into the pi
Dana Lewis
@danamlewis
Jan 01 2017 23:36
Very early on. Doesn't matter as long as it's plugged in now/while loop is running on
Brian Rabinovitz
@bdr1177
Jan 01 2017 23:39
So it doesn't have to be plugged in when running the setup scripts?
Dana Lewis
@danamlewis
Jan 01 2017 23:40
Shouldn't matter but stick it in before you forget it
Brian Rabinovitz
@bdr1177
Jan 01 2017 23:42
Oh it's been in for a while now and I'm getting the same errors. I just didn't know if not having it in earlier was causing the problem.
Dana Lewis
@danamlewis
Jan 01 2017 23:46
Nah
Brian Rabinovitz
@bdr1177
Jan 01 2017 23:49
Ok. I'll start over and see if i can get it to work.
Dana Lewis
@danamlewis
Jan 01 2017 23:49
:+1: assuming you let it run for ~15 min first, sometimes it takes a while, although shouldn't be with a port error, so doesn't hurt to retry setup script from scratch
Scott Leibrand
@scottleibrand
Jan 01 2017 23:50
carelink setup is pretty simple: you should be able to confirm that the pump device is a medtronic one, and then stuff like openaps use pump model should work. if not, there are tools like mm-stick to help you diagnose why.
also good to make sure you see the stick with lsusb