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

6th
Jun 2018
fidoman
@efidoman
Jun 06 2018 00:19
@mhaeberli - I don't know how to really measure it but I use this case I modified and designed to work with rpi hat zero and a single 18650 battery and the qi pad
It drop charges without any issues embedded in this case and even with a rubberband around the case too.
I don't know about how long to charge ... haven't tested that yet.
Jon Cluck
@cluckj
Jun 06 2018 00:23
it should take just as long as a cable, both are 500mA
Martin Haeberli
@mhaeberli
Jun 06 2018 00:28
@efidoman @cluckj thx (although my Qi connector says 800 mA, but… I haven’t measured it.) @efidoman can you send pictures of how it looks assembled?
fidoman
@efidoman
Jun 06 2018 00:30
IMG_6267.JPG
IMG_6268.JPG
IMG_6269.JPG
IMG_6270.JPG
IMG_6274.JPG
Martin Haeberli
@mhaeberli
Jun 06 2018 00:32
cool thx - is there a way to cleanly ‘squinch’ the Qi connector INTO the case?
also, do you have a ‘wired’ 18650 battery or a small battery case to hold and connect it?
Scott Leibrand
@scottleibrand
Jun 06 2018 01:27
@garykidd @cluckj the power switch just disconnects the battery. if you have the Pi plugged into USB power it'll stay on (but stop charging the battery)
Jon Cluck
@cluckj
Jun 06 2018 01:28
:thumbsup:
john36m
@john36m
Jun 06 2018 02:14
Explorer Hat I cannot even get started. I am sure I set the wpa_supplicant.conf properly and have the empty ssh properly, but when I boot it up it is not on my local WiFi. I put the sd card into another Raspberry PI, and that only booted up wired and not wifi. (Even though I have a USB wifi connector on it.) So I suspect I am doing something obvious and dumb, but I cannot figure it out. Any hints as to what to look for.
Scott Leibrand
@scottleibrand
Jun 06 2018 02:20
what does syslog say (on the rig you can connect to) about the wifi?
check the wpa_supplicant.conf for curly quotes and other syntax errors. you could also paste your wpa_supplicant.conf here for inspection.
Samuchco
@Samuchco
Jun 06 2018 03:14
@scottleibrand I'm following the instructions on the page "Setting up a Raspberry Pi rig" (even the updated one) .
Encountering a few issues:
I downloaded Raspbian Lite 2018-04-18-raspbian-stretch-lite.zip (366.6MB) and burned it into a SD 32g card using Etcher 1.4.4.
The boot file on the SD card is only 22.7 MB on disk
1- How do you create a file on a MAC so I can then transfer it to boot. I'm sure it is not a New Folder but a New File. I tried with TextEdit. Both for the wpa_supplicant.conf and ssh files
2- Followed the instructions of Ejecting SD card from Computer, insert into Pi and plug power to turn on. Which of the 2 connectors? either? or both?
It didn't boot. neither when entering ssh pi@raspberrypi.local on Terminal. What am I doing wrong?
Scott Leibrand
@scottleibrand
Jun 06 2018 03:32
  1. see the new addition: https://github.com/openaps/docs/pull/1290/files for how to create an empty ssh file
if you have a working wpa_supplicant.conf from another rig, you can copy that. TextEdit should be fine for creating that file
what do you mean by "which of the two connectors"? the microUSB ports? the one closest to the corner is the power port.
Samuchco
@Samuchco
Jun 06 2018 03:48
@scottleibrand Thanks boot has the wpa_supplicant.conf and ssh files. Inserting SD card and powering with btoh battery and switch to ON as well as cable to corner microUSB (light on corner next to battery is on), but nothing. No booting.......??
How big is the boot drive?
Scott Leibrand
@scottleibrand
Jun 06 2018 03:51
the boot partition itself is tiny. the main partition doesn't show up on a mac, as mac can't mount ext4 without additional software
what do you mean by "no booting"?
Samuchco
@Samuchco
Jun 06 2018 03:51
OK. So 22.7 MB is ok. When I turn on the Pi nothing happens
Scott Leibrand
@scottleibrand
Jun 06 2018 03:53
what do you expect to happen?
for example, when you apply power to the pi, the green light comes on. that's not "nothing"
Samuchco
@Samuchco
Jun 06 2018 03:54
"Eject the microSD card from your computer, insert it into your Pi, and plug in power to the Pi to turn it on. Give it a couple minutes to boot up. Once the green LED stops blinking as much, you can try to log in."
LED not blinking. Is the small screen supposed become active?
Scott Leibrand
@scottleibrand
Jun 06 2018 03:54
no, the screen won't come on until you install the software for it
you have to get the wpa_supplicant.conf correct without being able to see if it's working (other than whether or not it shows up on your network).
if you're not sure how to do that, another option is to plug in a monitor to the pi
Samuchco
@Samuchco
Jun 06 2018 04:13
@scottleibrand Thanks again. I went and checked the wpa_supplicant.conf which I had copied and paste from the instructions page. I had to delete and replace the " marks. Now I'mm on Terminal. It might be worth noting on the instructions
Scott Leibrand
@scottleibrand
Jun 06 2018 04:17
PR please
Samuchco
@Samuchco
Jun 06 2018 04:34
@scottleibrand done
Samuchco
@Samuchco
Jun 06 2018 05:04
Got up to this
  Downloading https://files.pythonhosted.org/packages/dc/83/15f7833b70d3e067ca91467ca245bae0f6fe56ddc7451aa0dc5606b120f2/pytz-2018.4-py2.py3-none-any.whl (510kB)
    100% |████████████████████████████████| 512kB 156kB/s 
Collecting aniso8601>=0.82 (from flask-restful)
  Downloading https://files.pythonhosted.org/packages/ba/8c/4cd25b3facc5f443cb083f4582483e8c8e7901380c71c44aff6eeda4dc54/aniso8601-3.0.0-py2.py3-none-any.whl
Requirement already satisfied: click>=5.1 in /usr/local/lib/python2.7/dist-packages (from Flask>=0.8->flask-restful)
Requirement already satisfied: Werkzeug>=0.14 in /usr/local/lib/python2.7/dist-packages (from Flask>=0.8->flask-restful)
Requirement already satisfied: itsdangerous>=0.24 in /usr/local/lib/python2.7/dist-packages (from Flask>=0.8->flask-restful)
Requirement already satisfied: Jinja2>=2.10 in /usr/local/lib/python2.7/dist-packages (from Flask>=0.8->flask-restful)
Requirement already satisfied: MarkupSafe>=0.23 in /usr/local/lib/python2.7/dist-packages (from Jinja2>=2.10->Flask>=0.8->flask-restful)
Installing collected packages: pytz, aniso8601, flask-restful
Successfully installed aniso8601-3.0.0 flask-restful-0.3.6 pytz-2018.4
packet_write_wait: Connection to fe80::8dc8:5871:51ff:f0b2%en1 port 22: Broken pipe
re-install?
Scott Leibrand
@scottleibrand
Jun 06 2018 05:05
just reconnect and re-do the last command that you ran before the network connection dropped
Samuchco
@Samuchco
Jun 06 2018 05:06
reconnect with pi@raspberry.local or the new one
Scott Leibrand
@scottleibrand
Jun 06 2018 05:07
whichever works
Samuchco
@Samuchco
Jun 06 2018 05:12
The last command was installing oref0
do I start from the begining?
Scott Leibrand
@scottleibrand
Jun 06 2018 05:13
just reconnect and re-do the last command that you ran before the network connection dropped
Samuchco
@Samuchco
Jun 06 2018 05:23
@scottleibrand Sorry I don't understand how to re-do the last command. It was doing the install and was well into it.
Scott Leibrand
@scottleibrand
Jun 06 2018 05:24
you type/paste the last thing you typed/pasted on the command line of your rig. you're making this too complicated.
Martin Haeberli
@mhaeberli
Jun 06 2018 05:42
@Samuchco a variant of what Scott said is to type ‘history 10’ and it will remind you of the last 10 commands you typed. the most recent one of those is probably what will work
Samuchco
@Samuchco
Jun 06 2018 05:44
Thanks, since the last command was the install command
sudo bash curl -s https://raw.githubusercontent.com/openaps/oref0/dev/bin/openaps-install.sh > /tmp/openaps-install.sh && bash /tmp/openaps-install.sh
it's reinstalling
Scott Leibrand
@scottleibrand
Jun 06 2018 05:46
:+1: and thx @mhaeberli
Martin Haeberli
@mhaeberli
Jun 06 2018 05:55
:+1:
Samuchco
@Samuchco
Jun 06 2018 19:09
Font size on explorer Hat too small to read. Can they be enlarged? are there any instructions yet on how to use the up/down buttons
Have not been able to connect the Hat to pump. Getting this message.
Waiting up to 4 minutes for new BG: ls: cannot access '/tmp/pump_loop_completed': No such file or directory
ImportError: No module named mraa
Scott Leibrand
@scottleibrand
Jun 06 2018 19:21
did you reboot after oref0-setup?
and what oref0 version did you install?
NSewar
@nsewar01
Jun 06 2018 19:31
image.png
Hi I have been trying most of the day to bootstrap my new pihat rig. Unfortunately it seems to stop at various stages due to an iffy putty connection! I must have run the setup about 20 times now and the latest error message reads as follows:
see above
I was expecting to be prompted with a promt to run the oref0 install as per the instructions....please help
Scott Leibrand
@scottleibrand
Jun 06 2018 19:38
you could install screen and run the install inside a screen session, so the install can proceed even if you get disconnected, and you can just re-attach to the screen session
we don't have any docs for that, so you'll need to google it
NSewar
@nsewar01
Jun 06 2018 19:41
if I understood what you were talking about I would certainly google it! I wish I had studied computer science instead of civil engineering!
are you saying that I can use the pihat screen instead of my PC screen? That makes sense!
OK I have ordered a cable to connect the pi to a monitor as I dont have a mini hdmi at the moment.......I will try again when that arrives. Thanks
Scott Leibrand
@scottleibrand
Jun 06 2018 19:44
no, screen is a linux command
NSewar
@nsewar01
Jun 06 2018 19:45
thanks Scott you are a gem!
Scott Leibrand
@scottleibrand
Jun 06 2018 19:45
to install you'd do sudo apt-get install screen (if it didn't already get installed by openaps setup scripts)
(not the yum stuff in that tutorial)
Martin Haeberli
@mhaeberli
Jun 06 2018 20:10
@scottleibrand as a digression, I wonder whether some flaky putty or other connections might work better for some users with mosh; mosh now has a cross-platform chrome extension as a client as well as MobaXterm for windows - free for personal use...
Scott Leibrand
@scottleibrand
Jun 06 2018 20:10
yeah, I use mosh as well, and really like it
Martin Haeberli
@mhaeberli
Jun 06 2018 20:11
:+1:
garykidd
@garykidd
Jun 06 2018 20:24
@scottleibrand any idea how much the display factors into retail cost of pihats....seems like there's a pretty big increase vs. the abandoned explorer boards...
Scott Leibrand
@scottleibrand
Jun 06 2018 20:25
doesn't really matter: it would cost more to remove it
Martin Haeberli
@mhaeberli
Jun 06 2018 20:25
fyi the displays from amazon are $5-$10 each … so likely not a big factor
garykidd
@garykidd
Jun 06 2018 20:26
because of new development costs?
scottleibrand @scottleibrand is continually frustrated by people being critical of the outcome of small-batch manufacturing efforts
Martin Haeberli
@mhaeberli
Jun 06 2018 20:26
@scottleibrand :+1:
Scott Leibrand
@scottleibrand
Jun 06 2018 20:27
it costs several thousand dollars to change the design and get the new version made. that has to be spread out over the costs of however many units get produced
garykidd
@garykidd
Jun 06 2018 20:27
Nahhh---not being critical---I couldnt wait for my pihat to come and am happy to be involved in it and understand it costs some money to create something from mostly nothing
Martin Haeberli
@mhaeberli
Jun 06 2018 20:27
(that is in one-off quantities) … @garykidd :+1:
Scott Leibrand
@scottleibrand
Jun 06 2018 20:27
I think there were some unexpected costs around the screen that ended up raising the price, but I'm not sure how much
garykidd
@garykidd
Jun 06 2018 20:27
I actually love the idea of the screen...so cool to look at
Scott Leibrand
@scottleibrand
Jun 06 2018 20:28
and the total cost of Pi Zero + Explorer HAT is still about the same as Edison + EB
and the whole thing is still 1/40th the cost of a new pump
garykidd
@garykidd
Jun 06 2018 20:28
that was the othe point that I didnt mention...
then there's the non monetary costs of not having a closed loop that in my estimation....can be a lot bigger burden to bear
Martin Haeberli
@mhaeberli
Jun 06 2018 20:29
and then there’s the cost of @scottleibrand @danamlewis @all work - which is invaluable, priceless and unpaid … (free)
garykidd
@garykidd
Jun 06 2018 20:30
I like to think it isnt free...we're just not paying money for it.
Scott Leibrand
@scottleibrand
Jun 06 2018 20:32
and not just us: Jack and @pdtkelley and @mogar put a ton of unpaid time into making the HAT, and @bnielsen1965 @cluckj and many others did a ton of unpaid work to get it working.
garykidd
@garykidd
Jun 06 2018 20:34
hopefully i didnt offend anyone---I'm sorry if I did.
Scott Leibrand
@scottleibrand
Jun 06 2018 20:37
nah, not offended, just mildly annoyed (and not specifically by what you said, just by the general feeling that people seem to have that the hardware should be as tweakable as the software)
garykidd
@garykidd
Jun 06 2018 20:37
I love it!
just realized that the cc1110 has an 8051 core...my dad would've loved it. When I was like 10, he was teaching me how useful that platform was...dman
damn
Scott Leibrand
@scottleibrand
Jun 06 2018 20:39
honestly I wish the whole HAT thing were never necessary, but we got unlucky with the demise of the Edison
hah nice
garykidd
@garykidd
Jun 06 2018 20:41
I'm guessing that it must've not been that profitable for intel...if so, it's kinda a shame.....it had such great press around IOT ...specifically with OpenAPS......I imagine intel didnt share much about why they threw it in the garbage
Martin Haeberli
@mhaeberli
Jun 06 2018 20:47
@scottleibrand :+1: didn’t mean to exclude @pdtkelley , @mogar, @cluckj, @bnielsen1965 ; (meant to include all in at/all…)
Scott Leibrand
@scottleibrand
Jun 06 2018 20:50
:+1:
Chrisdifonso
@Chrisdifonso
Jun 06 2018 21:06
Hi Guys, I'm working on my html, and for some reason I can't manage to embed a Video URL in my code using the video tag.
Martin Haeberli
@mhaeberli
Jun 06 2018 21:07
@Chrisdifonso not clear that THIS is the right group for this question …
Chrisdifonso
@Chrisdifonso
Jun 06 2018 21:07
sorry I am new on the website
could you point me in any direction?
Thanks
Martin Haeberli
@mhaeberli
Jun 06 2018 21:08
suggest you make a google search
Chrisdifonso
@Chrisdifonso
Jun 06 2018 21:08
there is no groups on here regarding html?
Martin Haeberli
@mhaeberli
Jun 06 2018 21:09
This group is ‘Discussions around DIY closed looping with #OpenAPS’ - how does your question relate to this?
Chrisdifonso
@Chrisdifonso
Jun 06 2018 21:11
I can't find any group related to my question so I guessed someone could have directed me. im new to the interface of the website
no worries man thanks
Scott Leibrand
@scottleibrand
Jun 06 2018 21:11
we have no idea what you're talking about. "the website" seems to imply shared knowledge which is absent. I think you found the wrong group.
BDavis1960
@BDavis1960
Jun 06 2018 21:46
Hi all, am trying unsuccessfully to add a new wifi network to my rig while away from my home computer. Using my husband's mac laptop, i logged into edison over console and added new wifi network to supplicant file. How do i save and exit amended file?
Scott Leibrand
@scottleibrand
Jun 06 2018 21:47
hit the escape key, then type :wq to write and quit vi