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

26th
Mar 2016
Ben West
@bewest
Mar 26 2016 00:04
mmeowlink-send.py
Stephan
@MosiGitHub
Mar 26 2016 00:04
thanks bewest --- i was looking, but not found the command so far :+1:
Ben West
@bewest
Mar 26 2016 00:06
all the Medtronic Minimed tools start with mm
Stephan
@MosiGitHub
Mar 26 2016 00:13
thanks again ... this time I get unknown radio type and other error messages as well - anyhow the loop is running again (maybe the calibration was helping). I have to play a little bit with this command tomorrow - really tired and now with the loop running again, going to bed. Thanks for your help @bewest and @scottleibrand
garykidd
@garykidd
Mar 26 2016 00:56
how do you show full path of files placed on imac?
garykidd
@garykidd
Mar 26 2016 01:07
Overwhelmed
Jim Matheson
@jmatheson
Mar 26 2016 01:11
if you open a terminal window and type pwd then enter you should see what the full path of the current directory is
rafaelmatuk
@rafaelmatuk
Mar 26 2016 01:14
@morsen I found a few pumps in Phoenix through Craiglist. I bought mine there - beware of shipping charges but you should be able to obtain one at a reasonable price. Check different cities in Craiglist instead of "nearby" -
garykidd
@garykidd
Mar 26 2016 01:16
I was attempting to right latest version of raspbian jesse to sd card. downloaded latst jesse on imac desktop. but came seem to copy the file to the card---i know this is easy.
garykidd
@garykidd
Mar 26 2016 01:22
i just dont know on imac how to copy files into a specific directory---right now the jesse image is on the desktop...what's the path to the desktop...thatnks for helping me.
I want to say I'm not as stupid as I sound but time will tell I suppose.
Jim Matheson
@jmatheson
Mar 26 2016 01:39
probably something like /Users/james/Desktop
garykidd
@garykidd
Mar 26 2016 01:46
can you help...just trying to get latest jesse img to sd card on imac
for RP3
I've downloaded latest image. expanded. cant copy to card. file is on my desktop. 2016-03-18-raspbian-jesse.img
garykidd
@garykidd
Mar 26 2016 01:52
yup...was right there. I keep getting a No such filename or directory....so I figured I was entering the path incorrectly......I typed the command line verbatim...no such filename or directory.. ,img is on desktop. thoughts on what i may be doing wrong?
tazitoo
@tazitoo
Mar 26 2016 01:53
Seems like Disk Utility should be able to write the image to the SD card - all graphical/point and click no path needed
...those instructions read like a Linux user sat down at a mac for the first time.
Brian Bonner
@itsn0tm3
Mar 26 2016 01:55
heh I don't own a mac so that was the best I could do
tazitoo
@tazitoo
Mar 26 2016 01:58
that's what I would point someone too as well...it can work - but maybe not late at night (at least my time)
garykidd
@garykidd
Mar 26 2016 01:58
asking for password..is that imac password?
tazitoo
@tazitoo
Mar 26 2016 02:02
what's prompting for the password? dd?
garykidd
@garykidd
Mar 26 2016 02:02
iMac:~ g$ sudo dd bs=1m if=2016-03-18-raspbian-jesse.img of=/dev/rdisk2
\Password:
Sorry, try again.
Password:
Sorry, try again.
Password:
\Sorry, try again.
sudo: 3 incorrect password attempts
iMac:~ g$ g
-bash: g: command not found
iMac:~ g$ raspberry
-bash: raspberry: command not found
iMac:~ g$ pi
-bash: pi: command not found
iMac:~ g$ udo dd bs=1m if=2016-03-18-raspbian-jesse.img of=/dev/rdisk2
-bash: udo: command not found
iMac:~ g$ sg$ sudo dd bs=1m if=2016-03-18-raspbian-jesse.img of=/dev/rdisk
-bash: sg$: command not found
iMac:~ g$ sudo dd bs=1m if=2016-03-18-raspbian-jesse.img of=/dev/rdisk2
Password:
dd: 2016-03-18-raspbian-jesse.img: No such file or directory
iMac:~ g$
Scott Leibrand
@scottleibrand
Mar 26 2016 02:03
sudo needs your iMac password, ya.
Desktop is ~/Desktop
Try cd ~/Desktop and then ls
Ben West
@bewest
Mar 26 2016 02:05
@jmatheson nice... I like it
that's compelling enough to send them digging/start discussions
I'm not sure how many people at medtronic realize we're asking to restore something they removed
garykidd
@garykidd
Mar 26 2016 02:06
iMac:~ g$ cd ~/Desktop
iMac:Desktop g$ ls
≤çµ vc
2015 VA Book Order Form 3.4.15 GK.xlsx
2016-03-18-raspbian-jessie.img
.....there it is
Ben West
@bewest
Mar 26 2016 02:08
btw, you can mount that img and insert your wifi password ahead of time
garykidd
@garykidd
Mar 26 2016 02:08
iMac:Desktop g$ sudo dd bs=1m if=2016-03-18-raspbian-jesse.img of=/dev/rdisk2
Password:
dd: 2016-03-18-raspbian-jesse.img: No such file or directory
iMac:Desktop g$
????
but i cant get the image oin the darn sd card
@bewest but i cant get the image oin the darn sd card
Scott Leibrand
@scottleibrand
Mar 26 2016 02:09
Try the fully qualified path to the img
put ~/Desktop in front of it.
garykidd
@garykidd
Mar 26 2016 02:10
@scottleibrand ...that's what I was attempting to do...then I realized I never figured out the way to show full pathnames on mcs
macs
i know this is really simple but I cant figure it out and feel it will be a good learning experience. But its also discouraging because I'm trying to follow instructions to the letter.
@scottleibrand do I literlaly put the tilde?
Scott Leibrand
@scottleibrand
Mar 26 2016 02:14
Yes. ~/ is your homedir
try ls ~/Desktop/20<tab>
the tab key should make it autocomplete
garykidd
@garykidd
Mar 26 2016 02:18
iMac:Desktop g$ sudo dd bs=1m if=~/Desktop/2016-03-18-raspbian-jesse.img of=/dev/rdisk2
Password:
dd: /Users/g/Desktop/2016-03-18-raspbian-jesse.img: No such file or directory
iMac:Desktop g$ sudo dd bs=1m if=~/Desktop/2016-03-18-raspbian-jesse.img of=/dev/rdisk
dd: /Users/g/Desktop/2016-03-18-raspbian-jesse.img: No such file or directory
iMac:Desktop g$ sudo dd bs=1m if=/Desktop/2016-03-18-raspbian-jesse.img of=/dev/rdisk
dd: /Desktop/2016-03-18-raspbian-jesse.img: No such file or directory
iMac:Desktop g$ ls ~/Desktop/201
2015 VA Book Order Form 3.4.15 GK.xlsx
2016-03-18-raspbian-jessie.img
iMac:Desktop g$ ls ~/Desktop/201
and there it is...iMac:Desktop g$ ls ~/Desktop/201
ls: /Users/g/Desktop/201: No such file or directory
iMac:Desktop g$ ls
≤çµ vc
2015 VA Book Order Form 3.4.15 GK.xlsx
2016-03-18-raspbian-jessie.img
jesse/ie are you kidding me
Scott Leibrand
@scottleibrand
Mar 26 2016 02:20
That is why you use tab completion.
Or copy-paste. Never type stuff out.
garykidd
@garykidd
Mar 26 2016 02:22
iMac:Desktop g$ sudo dd bs=1m if=~/Desktop/2016-03-18-raspbian-jessie.img of=/dev/rdisk2
dd: /dev/rdisk2: Permission denied
iMac:Desktop g$
ahhhh
thx @scottleibrand
Ben West
@bewest
Mar 26 2016 02:23
long live tab tab
garykidd
@garykidd
Mar 26 2016 02:28
@bewest can you take mercy onme--i'll lea
ve you alone if i can just get a little momentum
Scott Leibrand
@scottleibrand
Mar 26 2016 02:30
You'll need to figure out which disk the SD card shows up as.
garykidd
@garykidd
Mar 26 2016 02:31
yup. disk2
Scott Leibrand
@scottleibrand
Mar 26 2016 02:31
diskutil list
garykidd
@garykidd
Mar 26 2016 02:32

iMac:~ g$ diskutil list
/dev/disk0 (internal, physical):

: TYPE NAME SIZE IDENTIFIER

0: GUID_partition_scheme *1.0 TB disk0
1: EFI EFI 209.7 MB disk0s1
2: Apple_HFS Macintosh HD 999.3 GB disk0s2
3: Apple_Boot Recovery HD 650.0 MB disk0s3
/dev/disk1 (disk image):

: TYPE NAME SIZE IDENTIFIER

0: Apple_partition_scheme +18.1 MB disk1
1: Apple_partition_map 32.3 KB disk1s1
2: Apple_HFS Flash Player 18.1 MB disk1s2
/dev/disk2 (external, physical):

: TYPE NAME SIZE IDENTIFIER

0: FDisk_partition_scheme *31.4 GB disk2
1: Windows_FAT_32 CANAKIT 31.4 GB disk2s1
iMac:~ g$

disk2s1
Scott Leibrand
@scottleibrand
Mar 26 2016 02:32
So just image /dev/disk2
the s things are partitions.
garykidd
@garykidd
Mar 26 2016 02:33
right...did that
garykidd
@garykidd
Mar 26 2016 02:42
i think its actually copying over now
thank you @scottleibrand @bewest @anyoneImessied
garykidd
@garykidd
Mar 26 2016 04:25
anyone consider a formal letter to medtronic that the entire group can sign could start a huge pwtition...other manufacturers too...
Jason Calabrese
@jasoncalabrese
Mar 26 2016 04:27
I'd rather place a huge order for unlocked pumps, or a stack of actual prescriptions for unlocked pumps
Eric Luhrs
@eluhrs
Mar 26 2016 04:27
I have considered a formal letter. I was on a plane with the Medtronic VP who lead their effort on the enlite sensor. He gave me his card. Pretty sure he was moved to another division though, but I think he'd forward it.
garykidd
@garykidd
Mar 26 2016 04:29
is it known what microprocessors mm uses?
Jason Calabrese
@jasoncalabrese
Mar 26 2016 04:30
Maybe there's even an internal model number for a 530 with open firmware, that we could collect prescriptions for
Scott Leibrand
@scottleibrand
Mar 26 2016 04:30
That is a good idea.
Eric Luhrs
@eluhrs
Mar 26 2016 04:30
Didn't know unlocked models existed...
Scott Leibrand
@scottleibrand
Mar 26 2016 04:31
Might need to get IDEs though.
Eric Luhrs
@eluhrs
Mar 26 2016 04:31
I'm sure I could get s script from my doc..
If they exist, I bet they are not cleared for patient use by fda.
Scott Leibrand
@scottleibrand
Mar 26 2016 04:36
Yeah. Would require an investigational device exemption, which requires a traditional investigator. @danamlewis and I went down that path with them about getting the translator device. Managed to get the MM Connect approved in 7 days though. ;-)
but, there is a slight chance they can sell us 522s. Those are still distributed in Brazil I believe.
garykidd
@garykidd
Mar 26 2016 04:37
i kmow it was a simple thing but not knowing the formal path to desktop on mac was causing me major issues in copying the latest jessie.im to RP3...might be worth documenting
garykidd
@garykidd
Mar 26 2016 04:39
ok will dp
do
Eric Luhrs
@eluhrs
Mar 26 2016 04:39
@scottleibrand wouldn't they be flashed with revised firmware?
Scott Leibrand
@scottleibrand
Mar 26 2016 04:39
Dunno
we should find someone there to try
Ben West
@bewest
Mar 26 2016 04:53
medtronic doesn't "open the case" once the pump is assembled
after that point, it goes through a number of QA processes that each flashes the pump
there was a change in 2011 so that the last step of this process modified the firmware in that last phase to not include several commands (eg set temp basal, bolus, press keys, etc...)
so framing it as "we want an unlocked pump" presumes that there is work for them to do to provide a new feature, which implicitly tilts argument their way visavis IDE, etc...
another way to frame it might be to restore equivalent and needed access to what has always naturally been there, and is confirmed to be there prior to actively removing/obscuring, etc..
Jim Matheson
@jmatheson
Mar 26 2016 05:31
:+1:
eyim
@eyim
Mar 26 2016 05:52

So strange. We stopped loop for a few days to live my son's skin time to heal from the dexcom insertion site. Reinserted last night and now get this error when uploading treatments to Nightscount on this command:
openaps use latest-treatments shell | json created_at

I get this error:

reporting monitor/pump-history-zoned.json
Traceback (most recent call last):
  File "/usr/local/bin/openaps-use", line 6, in <module>
    exec(compile(open(__file__).read(), __file__, 'exec'))
  File "/home/pi/src/openaps/bin/openaps-use", line 63, in <module>
    app( )
  File "/home/pi/src/openaps/openaps/cli/__init__.py", line 44, in __call__
    self.run(self.args)
  File "/home/pi/src/openaps/bin/openaps-use", line 58, in run
    reporter(output)
  File "/home/pi/src/openaps/openaps/reports/reporters/__init__.py", line 27, in __call__
    self.blob = self.serialize(data)
  File "/home/pi/src/openaps/openaps/reports/reporters/__init__.py", line 25, in serialize
    return self.method.serialize(render(data), self)
  File "/home/pi/src/openaps/openaps/vendors/process.py", line 56, in prerender_json
    return json.loads(data)
  File "/usr/lib/python2.7/json/__init__.py", line 338, in loads
    return _default_decoder.decode(s)
  File "/usr/lib/python2.7/json/decoder.py", line 366, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib/python2.7/json/decoder.py", line 384, in raw_decode
    raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded
json: error: input is not JSON: Unexpected 'N' at line 1, column 1:
        No JSON object could be decoded
        ^
Scott Leibrand
@scottleibrand
Mar 26 2016 05:54
Need to inspect the json file, see which one is complaining, run that report manually, and trace it back to root cause that way.
eyim
@eyim
Mar 26 2016 05:54

ya it is my

[report "monitor/latest-treatments.json"]
device = latest-treatments
use = shell
reporter = text

which i swear I have not touched

I almost have to laugh or scratch my head
[device "latest-treatments"]
vendor = openaps.vendors.process
fields = 
cmd = nightscout
args = latest-openaps-treatment https://website.herokuapp.com
Scott Leibrand
@scottleibrand
Mar 26 2016 05:58
It's complaining about one of its inputs.
The input might be from NS
eyim
@eyim
Mar 26 2016 06:40
LOL - okay I just gave up trying to understand why my old way failed. Just went with the new way everyone is using and it seems to work now. Still scratching my head at what I might have changed
Stephan
@MosiGitHub
Mar 26 2016 08:22
@jmatheson very nice :clap:
Stephan
@MosiGitHub
Mar 26 2016 09:43
@bewest : I was looking at the new docs you posted and found something I would change, but I was unable to make a PR on that because if I fork docs I just get the normal version. In chapter 2 you should change the order of the chapters: "using oref0 tools" should be before "building preflight ans other security checks".
dougtakeuti
@dougtakeuti
Mar 26 2016 14:46
Hi, I'm at a farm in which the wifi has a network name with spaces "Rancho da Uta" and no password. I tried to set it up in wpa_supplicant.conf just like the other networks, but no luck. I can ssh to the pi using my phone's hotspot, but there is no cell phone signal here. Therefore I cannot upload from the pi using the hotspot because there is only local access. Are the spaces or the open wifi network issues to linux?
Scott Leibrand
@scottleibrand
Mar 26 2016 14:54
You have to explicitly configure an option to make wpa_supplicant use a passwordless network. You can't just leave off the password.
You can put the
key_mgmt=NONE thing on a single network, or do like that example to auto-associate to any open network.
dougtakeuti
@dougtakeuti
Mar 26 2016 14:57
@scottleibrand thanks
Dana Lewis
@danamlewis
Mar 26 2016 15:06
@MosiGitHub if you fork the repo, you need to make sure to switch branches.
Jim Matheson
@jmatheson
Mar 26 2016 15:45
Posted my snaps from yesterday on youtube. I plan to keep doing this. Don't want to spam this group so if you're interested be sure to follow my twitter
Stephan
@MosiGitHub
Mar 26 2016 15:56
@danamlewis i forked (already deleted ;-) ) the openaps/docs and switched to dev and something like dana dev but still different to the doc I was looking for (http://bewest-openaps-docs.readthedocs.org/en/bewest-dev-w-dana/docs/walkthrough) .... also I think that visualization is very helpfull and neccessary but in chapter 1 it is way to early because you don't have all the reports at this time.....
Dana Lewis
@danamlewis
Mar 26 2016 15:58
(I recommend waiting for the PR to dev, those branches aren't ready for review quite yet. )
Stephan
@MosiGitHub
Mar 26 2016 16:03
no problem at all - to be lazy is easy for me. By the way. I finished the setup of my second rig a minute ago. Do you think it is okay to switch to meal-assist and the auto-sensitivity directly (without using it before) - the errors that show up without 24 hours of pump data shouldn't disturb the loop from running?
Scott Leibrand
@scottleibrand
Mar 26 2016 16:07
It will just fall back to normal operation if those reports are missing. The meal-assist branch does have a wtf-assist, which will high-temp more aggressively if you start rising, and zero-temp more aggressively when dropping unexpectedly.
Stephan
@MosiGitHub
Mar 26 2016 16:14
@scottleibrand thanks ... sounds perfect :+1:
I have seen your nice script a couple days ago ... could be helpful
Scott Leibrand
@scottleibrand
Mar 26 2016 17:44
Need to figure out how to integrate that piecemeal into the docs, so people still go through all the phases one by one and understand what they're doing as they go.
dougtakeuti
@dougtakeuti
Mar 26 2016 19:15
@scottleibrand how do we use oref0-pebble? Does it generate a .json file that we need to upload?
Scott Leibrand
@scottleibrand
Mar 26 2016 19:36
Yeah. Cards for Pebble pulls the json from your webserver.
dougtakeuti
@dougtakeuti
Mar 26 2016 19:39
So I then upload it NS to using ns-upload-entries?
Scott Leibrand
@scottleibrand
Mar 26 2016 19:40
Nope. NS isn't set up to serve it. It's a DIY thing right now.
dougtakeuti
@dougtakeuti
Mar 26 2016 19:41
ok
thanks
Jim Matheson
@jmatheson
Mar 26 2016 20:06
@dougtakeuti what are you looking to do?
dougtakeuti
@dougtakeuti
Mar 26 2016 20:26
@jmatheson For some reason whatever Pebble app I use behaves very sketchy. This began when I closed the loop and started to upload to NS using openaps instead of the uploader. I was wondering if there was some formating issue causing the problem that could be solved by oref0-pebble.
I use Medtronic Enlite and used to upload to NS using the mmcommander and J. Berian's uploader. However, it would pick up the comms between the carelink stick and the pump and just go crazy and crash. I had thought I would be able to upload glucose data to NS independently of openaps and use the two systems in parallel. I get the impression that many users of Dex upload to NS using xdrip and use openaps to upload treatments, is that right?
Jim Matheson
@jmatheson
Mar 26 2016 20:27
you are using a dexcom G4 without share?
garykidd
@garykidd
Mar 26 2016 20:49
@scottleibrand thanks for your help last night
@scottleibrand finally got jessie 8 on sd card and booted up rp3
@scottleibrand got just a tad further and need a nudge again...sorry---I am trying
Ben West
@bewest
Mar 26 2016 20:55
you'll probably want to get it it in on wifi,there's a few ways: one of the easiest is to plug use a network cable at first (wired) to get in the first time and configure wifi
another is to take the sd card out of pi, and put into you mac (you can put the wifi password directly on the file system)
garykidd
@garykidd
Mar 26 2016 20:57
@bewest was that at me?
Ben West
@bewest
Mar 26 2016 20:57
yeah :-)
garykidd
@garykidd
Mar 26 2016 20:58
Oh thanks....I actually did manage to get it on the card and it booted up...and following along in the steps ---thank you....do have another question if you got aminute?
Ben West
@bewest
Mar 26 2016 20:58
in communities like these its always a good idea to ask a question
when one person might not have a minute, someone else might
garykidd
@garykidd
Mar 26 2016 20:59
OK....SO I'll just keep saying thanks...and taking notes incase there's other knuckle heads like me that need a lot of hand holding.
Dana Lewis
@danamlewis
Mar 26 2016 21:00
:+1: :smile:
garykidd
@garykidd
Mar 26 2016 21:01
I'm up to 3.1.4.5.2. Mac and Linux....I created a new key identity ....id_rsa on my local computer and that seemed to work fine.
I created the .ssh directory fine on the pi
when I sttempt to add new identity...it doesnt work...I get...
No such file or directory
Ben West
@bewest
Mar 26 2016 21:02
on your mac, what happens if you type ssh-copy-id
garykidd
@garykidd
Mar 26 2016 21:02
More fully I entered....and rec'd this....
pi@raspberrypi:~/.ssh $ cat ~/.ssh/id_rsa.pub | ssh pi@raspberrypi.local 'cat >> .ssh/authorized_keys'
cat: /home/pi/.ssh/id_rsa.pub: No such file or directory
very obvious mistake?
Ben West
@bewest
Mar 26 2016 21:03
ah, that's running on pi
run that your mac
eg, the terminal you type that into sends everything to the pi, not your mac
open another terminal and do it in there, or exit from the ssh session
garykidd
@garykidd
Mar 26 2016 21:07
ok so when it says....Next create a .ssh directory on the Pi: ssh pi@raspberrypi.local, enter the password for the pi user on the Pi, and run mkdir .ssh.
Im dong that on mac...not pi?
ok so on my mac...i entered and got this.iMac:~ g$ ssh pi@raspberrypi.local
ssh: Could not resolve hostname raspberrypi.local: nodename nor servname provided, or not known
iMac:~ g$
garykidd
@garykidd
Mar 26 2016 21:12
ssh keygen
strike that
Ben West
@bewest
Mar 26 2016 21:13
which doc are you looking at so I can follow along with you?
it's on your wifi network already?
wifi fully up.
Ben West
@bewest
Mar 26 2016 21:16
nice
on your mac, ssh-add -l should print a few lines?
garykidd
@garykidd
Mar 26 2016 21:17
iMac:~ g$ ssh-add -l
2048 SHA256:wxouY9Phk+KRXuAVVpfkvLFPiiD2yxr1mGYSnAATJGg /Users/g/.ssh/id_rsa (RSA)
iMac:~ g$
Ben West
@bewest
Mar 26 2016 21:17
nice
you still have a terminal inside the pi?
garykidd
@garykidd
Mar 26 2016 21:18
yes---terminate the terminal session?
Ben West
@bewest
Mar 26 2016 21:18
no
install avahi: sudo apt-get install avahi-daemon
garykidd
@garykidd
Mar 26 2016 21:19
enter that on terminal in pi?
Ben West
@bewest
Mar 26 2016 21:19
yes
garykidd
@garykidd
Mar 26 2016 21:19
brb
Ben West
@bewest
Mar 26 2016 21:19
this should enable finding the raspberrypi.local when you ssh going forward
garykidd
@garykidd
Mar 26 2016 21:21
pi@raspberrypi:~/.ssh $ sudo apt-get install avahi-daemon
Reading package lists... Done
Building dependency tree
Reading state information... Done
avahi-daemon is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Ben West
@bewest
Mar 26 2016 21:21
oh
hmmm
if your mac and your pi are on the same wifi network
you should be able to ssh pi@raspberrypi.local on your mac to get into the pi
garykidd
@garykidd
Mar 26 2016 21:21
will try again now
on macc....got this again....
iMac:~ g$ ssh pi@raspberrypi.local
ssh: Could not resolve hostname raspberrypi.local: nodename nor servname provided, or not known
iMac:~ g$ ssh pi@raspberrypi.local
ssh: Could not resolve hostname raspberrypi.local: nodename nor servname provided, or not known
iMac:~ g$ ssh pi@raspberrypi.local
ssh: Could not resolve hostname raspberrypi.local: nodename nor servname provided, or not known
iMac:~ g$
gonna double check if somehow I hopped to different wifi network on pi
Ben West
@bewest
Mar 26 2016 21:24
are you using console currently to get into the pi?
KJSATSTORR
@KJSATSTORR
Mar 26 2016 21:25
Can any one tell me do I need too install security software on my raspberry pi ?
garykidd
@garykidd
Mar 26 2016 21:25
nope--running separately w/ kb and mouse in separate room
its on the same wifi network too
any thoughts
Ben West
@bewest
Mar 26 2016 21:32
@garykidd on the pi, what happens if you try to ssh localhost
@KJSATSTORR what do you mean? (there's already some software on the pi)
garykidd
@garykidd
Mar 26 2016 21:33
pi@raspberrypi:~/.ssh $ ssh localhost
The authenticity of host 'localhost (::1)' can't be established.
ECDSA key fingerprint is 84:dc:25:ab:38:f3:05:8b:d5:af:06:7e:c9:19:05:91.
Are you sure you want to continue connecting (yes/no)?
Ben West
@bewest
Mar 26 2016 21:33
yes
garykidd
@garykidd
Mar 26 2016 21:33
......[I assume I say yes] yes?
Ben West
@bewest
Mar 26 2016 21:33
when it asks you for password, ctrl-c to quit (was just a test)
garykidd
@garykidd
Mar 26 2016 21:34

Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'localhost' (ECDSA) to the list of known hosts.
pi@localhost's password:

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Sat Mar 26 20:42:02 2016 from 192.168.1.119
pi@raspberrypi:~ $

Ben West
@bewest
Mar 26 2016 21:34
ok, type exit to quit
you'll still be on pi
garykidd
@garykidd
Mar 26 2016 21:34
ooops...i entered password......hope that doesn matter
Ben West
@bewest
Mar 26 2016 21:34
nah
was just at test to see if we can ssh at all
simplest test is ssh to self from self
aka ssh localhost :-D
so ssh is up and running
let's try on the pi: ssh raspberrypi.local
this is just to test if it can find the name for itself (from itself)
garykidd
@garykidd
Mar 26 2016 21:36

pi@raspberrypi:~/.ssh $ ssh raspberrypi.local
pi@raspberrypi.local's password:

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Sat Mar 26 21:33:43 2016 from localhost

Ben West
@bewest
Mar 26 2016 21:36
so doesn't matter if you actually login or not
interesting
exit that again
ifconfig
this will give us the ip address
we'll take the ip address and just use that on your mac
that last test tells us that the pi can answer raspberrypi.local name, for some reason your mac can't resolve that name
it's possible you have a network configuration that does not enable "bridging" which allows neighboring pcs on a network to talk directly to each other
garykidd
@garykidd
Mar 26 2016 21:37

pi@raspberrypi:~/.ssh $ ifconfig
eth0 Link encap:Ethernet HWaddr b8:27:eb:24:76:c6
inet6 addr: fe80::de07:548f:1435:b44d/64 Scope:Link
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:15305 errors:0 dropped:0 overruns:0 frame:0
TX packets:15305 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1191102 (1.1 MiB) TX bytes:1191102 (1.1 MiB)

wlan0 Link encap:Ethernet HWaddr b8:27:eb:71:23:93
inet addr:192.168.1.119 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::ba27:ebff:fe71:2393/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:215812 errors:0 dropped:1683 overruns:0 frame:0
TX packets:57984 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:296483692 (282.7 MiB) TX bytes:7547382 (7.1 MiB)

Ben West
@bewest
Mar 26 2016 21:37
ah great
so ip is: 192.168.1.119
so on the mac: ssh pi@192.168.1.119
that number changes constantly, which is why we like to depend on the friendly raspberrypi.local name instead, when we can
garykidd
@garykidd
Mar 26 2016 21:39

iMac:~ g$ ssh pi@192.168.1.119
The authenticity of host '192.168.1.119 (192.168.1.119)' can't be established.
ECDSA key fingerprint is SHA256:hZJQY81ekuTAmlkbgse3Mo9eo0XtG5bQig11n+yGm20.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '192.168.1.119' (ECDSA) to the list of known hosts.
pi@192.168.1.119's password:

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Sat Mar 26 21:35:47 2016 from 192.168.1.119
pi@raspberrypi:~ $

Ben West
@bewest
Mar 26 2016 21:40
ok
hmmm
well exit that one
and re-run that ssh key-copying command (the cat business) but use that ip number instead of raspberrypi.local
garykidd
@garykidd
Mar 26 2016 21:40
but it looks like I got into pi from mac...isnt that what we wanted?
Ben West
@bewest
Mar 26 2016 21:41
one problem at a time... right now the goal is to get your ssh key into the pi so you don't need the password everytime
garykidd
@garykidd
Mar 26 2016 21:41
ok right
so what next ?
Ben West
@bewest
Mar 26 2016 21:42
cat ~/.ssh/id_rsa.pub | ssh pi@192.168.1.119 'cat >> .ssh/authorized_keys'
on the mac
garykidd
@garykidd
Mar 26 2016 21:43
pi@raspberrypi:~ $ cat ~/.ssh/id_rsa.pub | ssh pi@192.168.1.119 'cat >> .ssh/authorized_keys'
cat: /home/pi/.ssh/id_rsa.pub: No such file or directory
pi@192.168.1.119's password:
pi@raspberrypi:~ $
Ben West
@bewest
Mar 26 2016 21:43
you ran it on the pi
run it on the mac
garykidd
@garykidd
Mar 26 2016 21:44
nope---well I guess i did but remotely from the imac. I'll start a new terminal session and re-enter?
Ben West
@bewest
Mar 26 2016 21:44
see what it says before the $?
pi@raspberrypi:~ $
that means this terminal is running commands on the pi, not on the mac
when you type into something that looks like that, it sends all commands to the pi
garykidd
@garykidd
Mar 26 2016 21:45
right...was just commenting that that was diplayed on the terminal sessionon the mac
Ben West
@bewest
Mar 26 2016 21:45
right, that means it's not the mac
it's the pi
garykidd
@garykidd
Mar 26 2016 21:46
OK. No difference if running form mac or pi...its going into the pi...when you see pi@raspberrypi:- $ is that the right way to think about it?
Ben West
@bewest
Mar 26 2016 21:46
it's not the mac at all, correct
it's only the pi and not the mac
that's called the "prompt" when the prompt indicates a remote host, all commands go directly there and do not touch your computer at all
garykidd
@garykidd
Mar 26 2016 21:48
nope....it was on the mac actually that it displayed .......pi@raspberrypi:~ $
Ben West
@bewest
Mar 26 2016 21:48
that means it's not the mac
all commands go to pi
garykidd
@garykidd
Mar 26 2016 21:48
Roger that
Last login: Sat Mar 26 17:10:42 on ttys000
iMac:~ g$ 17:42
-bash: 17:42: command not found
iMac:~ g$ cat ~/.ssh/id_rsa.pub | ssh pi@192.168.1.119 'cat >> .ssh/authorized_keys'
pi@192.168.1.119's password:
iMac:~ g$
i entered the pw there and then it just showed the prompt
Ben West
@bewest
Mar 26 2016 21:50
great, pop quiz/review time :-D
what did that do/accomplish?
I'll help you along here, just want to review/checkpoint where we are now
garykidd
@garykidd
Mar 26 2016 21:51
I think we were trying to establish a way to not have to enter the raspberry pi password continually
Jim Matheson
@jmatheson
Mar 26 2016 21:51
:+1: for @bewest
Ben West
@bewest
Mar 26 2016 21:51
exactly, how can we test whether it worked?
garykidd
@garykidd
Mar 26 2016 21:51
ssh?
Ben West
@bewest
Mar 26 2016 21:51
bingo
so we should be able to ssh to the pi
we know we can't use the nice name yet
but the ip number seems to work
garykidd
@garykidd
Mar 26 2016 21:53
Ben West
@bewest
Mar 26 2016 21:53
yeah, that looks quite good
let's try it
what we're looking for here is instant access
garykidd
@garykidd
Mar 26 2016 21:53

iMac:~ g$ ssh pi@192.168.1.119

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Sat Mar 26 21:39:24 2016 from imac
pi@raspberrypi:~ $

Ben West
@bewest
Mar 26 2016 21:53
bingo
it worked
garykidd
@garykidd
Mar 26 2016 21:53
no pw entry
Ben West
@bewest
Mar 26 2016 21:53
you can ssh now without password
garykidd
@garykidd
Mar 26 2016 21:53
check
Ben West
@bewest
Mar 26 2016 21:53
seems minor, but it does speed things up quite a bit
garykidd
@garykidd
Mar 26 2016 21:54
I'm supremely confident you're right
Ben West
@bewest
Mar 26 2016 21:54
ok
so now I'd like to test someting :-)
now that we're inside the pi
looks like the name of your mac is iMac? curious what happens if you ssh iMac.local from the pi
(this is the reverse test)
garykidd
@garykidd
Mar 26 2016 21:55
will try
Ben West
@bewest
Mar 26 2016 21:55
it's testing if we can find the imac name from the pi
you can do it in those pi terminals
those pi terminals are now exactly the same as the keyboard/mouse
garykidd
@garykidd
Mar 26 2016 21:57
so i'm realizing that I didnt need to get up and walk upstairs and physically type in on kb on the pi
I've learned at least 2 things today....if I learn 2 more tomorrow I will have doubled my knowledge base
ssh: connect to host imac.local port 22: Connection refused
pi@raspberrypi:~ $
Ben West
@bewest
Mar 26 2016 21:58
wow
so the answer is yes! it can find it
there was no server running, but it found the name
garykidd
@garykidd
Mar 26 2016 22:02
so will pi remember these setting when I shut it down?
Ben West
@bewest
Mar 26 2016 22:03
yes
you never need the password ever again
an anytime you ssh to it, it's exactly same as using mouse/keyboard
you are queued up to discover some amazing things :-D
welcome to under the hood of software :-D
ssh in particular is an incredibly cool program, all of our work will be managed via ssh
garykidd
@garykidd
Mar 26 2016 22:04
when I was like 8 my dad taught me how to program an 8051 microcontroller and a little work on a z80......I wish I stuck with it.
Ben West
@bewest
Mar 26 2016 22:05
you can look up a lot of commands pretty easily...
pro tip is adding -h or --help to lots of commands
eg ls -h
also try prefixing with man
eg man ssh
or man cat
most commands have voluminous help output to explain various things
garykidd
@garykidd
Mar 26 2016 22:06
is thislike runningthrough an interpreter
Ben West
@bewest
Mar 26 2016 22:07
yes, the intepreer is called bash
you can type help to see info on bash
or man bash
you won't need most of it, it's just all there
playing around with echo and export can be fun
eg help echo, echo -e "\a" is fun
we use cat, ls, echo, `&&, || and tee a lot
Ben West
@bewest
Mar 26 2016 22:14
there's something odd about your network... I don't quite understand why you can find iMac.local and rasperrypi.local from pi but not from imac
garykidd
@garykidd
Mar 26 2016 22:17
I hate that imac
its horrendously slow
not likely a firewall issue...you think?
Jim Matheson
@jmatheson
Mar 26 2016 22:22
what type of wifi network are you using? I had a similar problem when I was on a different type of network
Ben West
@bewest
Mar 26 2016 22:22
think it's likely a property of the network
often the router has an app or a feature called "bridging" or "bridged network"
but if it was off, it wouldn't work from the pi either
http://imgur.com/a/4A9da compiled some pictures of openaps rigs into an album here
garykidd
@garykidd
Mar 26 2016 22:26
very cool
Alin Artiom Kenibasov
@ktomy
Mar 26 2016 22:26
Hi everyone, just a notice. after 2 months of looping my SD card was completely full of git "logs" so the loop stopped working. Now I am just manually deleting .git to frr up space, but maybe it would be a good idea to monitor space. Kind of nice-to-have
Ben West
@bewest
Mar 26 2016 22:27
git gc @ktomy
garykidd
@garykidd
Mar 26 2016 22:28
@jmatheson WRT1900 acs router is the main rig in wireless network...also have an apple router on other end of ohouse as a differnt n/w
Ben West
@bewest
Mar 26 2016 22:28
@ktomy a feature was added in dev branch to run git gc --auto after every commit to cleanup extra artifacts
Alin Artiom Kenibasov
@ktomy
Mar 26 2016 22:28
too late :) and I think it is not because og garbage, but because of too many commits.
now as I started this manual maintenance, I'll also update to last dev
Ben West
@bewest
Mar 26 2016 22:29
you probably don't want to delete .gitwe actually tested it with @jasoncalabrese who had same problem
it turns out the api I'm using does create lots of spurious files that runs the system out of inodes if left unchecked
this is actually expected/normal apparently
Alin Artiom Kenibasov
@ktomy
Mar 26 2016 22:31
hm, but it only freed up 1gb, i'll check more, maybe there is something else.
Ben West
@bewest
Mar 26 2016 22:31
solution is to run git gc --auto, which dramatically reduces the strain on the fs, its hard to believe how dramatic the savings are
on his system, it went from eg 96% of used capacity to 6%
garykidd
@garykidd
Mar 26 2016 22:32
is it worthwhile to disable power management feature on RP3 to improve wifi reliability?
Ben West
@bewest
Mar 26 2016 22:32
dunno, I'd skip prematurely optimizing anything
Jim Matheson
@jmatheson
Mar 26 2016 22:32
is the WRT1900 acs set as a WPA2 or WPA Personal or ?
Ben West
@bewest
Mar 26 2016 22:32
go with the defaults/skip the optional stuff until it breaks and you see a clear need for it
Jim Matheson
@jmatheson
Mar 26 2016 22:33
i’d be curious to what happens if you connected bot the pi and mac to your other wifi (the Apple based one).
i have a WPA2 in another location and i was running into the same issues you were. I had to fiddle a bunch with the wpa supplicant to get it to work (which I think i lost that work since that rig died).
well similar issues, going off memory.
Alin Artiom Kenibasov
@ktomy
Mar 26 2016 22:34
ok, it seems that it is notmal to have 4gb used by system
Ben West
@bewest
Mar 26 2016 22:34
I prefer the 16G sd cards
4 is too small, really, 8 is really minimum
16 is nice and comfy
Alin Artiom Kenibasov
@ktomy
Mar 26 2016 22:35
I have 8, but for a readson (now I'll check why) on 5gb system said it is 92% used space
Ben West
@bewest
Mar 26 2016 22:36
there's a command to "expand" the filesystem to make sure it's using the full space
think it's available in raspi-config
Alin Artiom Kenibasov
@ktomy
Mar 26 2016 22:37
this is an option in raspi-config, but is says that I have an unsupported filesystem or something, and my package was installed directly from NOOBS. I'll check anyway
garykidd
@garykidd
Mar 26 2016 22:52
just ran the script....
wow...took a really long time----lot of work.
thank you guys....amazing
Alin Artiom Kenibasov
@ktomy
Mar 26 2016 23:03
updated openaps and oref0 to last dev
couldn't find maxsafebasal (I was usually increasing it)
have seen that enaction result is handled correctly now (I had "not enacted" before)
garykidd
@garykidd
Mar 26 2016 23:05
is tab completion worthwhile?
Jim Matheson
@jmatheson
Mar 26 2016 23:05
yes x10
Ben West
@bewest
Mar 26 2016 23:05
@garykidd fantastic, at this point you can type openaps init myopenaps and cd myopenaps and start playing around with how openaps works: https://github.com/bewest/openaps-example, https://github.com/openaps/openaps#usage
yes
in fact, you can install openaps on your mac
Jim Matheson
@jmatheson
Mar 26 2016 23:06
almost as essential as learning about the up arrow :)
Ben West
@bewest
Mar 26 2016 23:06
and the tab completion will run fast
@jmatheson have you discovered ctrl-a and ctrl-e yet?
a is append to beginning of line
e is go to end of the line
also, ctrl-p is same as up arrow
Jim Matheson
@jmatheson
Mar 26 2016 23:07
yea
Ben West
@bewest
Mar 26 2016 23:07
so ctrl-p, ctrl-a, sudo is quite common for me
Jim Matheson
@jmatheson
Mar 26 2016 23:07
a long long long time ago (like pre 2000) i think I knew how to use ^ to run last command and replace chars
Ben West
@bewest
Mar 26 2016 23:08
hehehe
kameamea
@kameamea
Mar 26 2016 23:08
instead I use sudo !!
Ben West
@bewest
Mar 26 2016 23:08
btw, great video
Jim Matheson
@jmatheson
Mar 26 2016 23:08
thx. trying to get better at getting words out so i can make them shorter :)
testing landscape today, had to redo a few because i forgot to landscape hold
Ben West
@bewest
Mar 26 2016 23:09
yeah, it's clear design of the app could go a long way to help this kind of thing
10 second hard limit seems rough, UX wise, it should try to amortize the average length somehow
like allow you to take longer, but warn you somehow
dunno what the editing workflow is like, loved the music hahaha
Jim Matheson
@jmatheson
Mar 26 2016 23:11
yes. i used a vine style record in an (unrelated) app i built. So much better because you can flip camera mid clip
Ben West
@bewest
Mar 26 2016 23:11
guess it's lot of manual work
then in stitching them together, maybe have sliding windows that allow snapping to positions such that the average clip is around 10 seconds or whatever
so short clips could allow longer clips to borrow time
Jim Matheson
@jmatheson
Mar 26 2016 23:12
so far manual work has been minimal. i just record each clip and post it to my story (which people can follow as they come on snapchat). then at the end just export them all as one long clip. Does take a minute to drop the bumpers in the start/end and then direct upload to youtube.
you dont have to stitch them togther. that part is automatic.
Ben West
@bewest
Mar 26 2016 23:14
yeah, it puts much more burden on you while creating the content
it's be nifty if it noticed eg that previous 4 clips were 2 seconds, and so let you take 20 seconds this next time...
Jim Matheson
@jmatheson
Mar 26 2016 23:15
yea
well, the concept was short individual clips that disappear and then this “24 hour story” thing is an add on.
Ben West
@bewest
Mar 26 2016 23:17
yeah, I'm thinking less about snapchat's business and more about concept of an app like this that helps ethnographic research
I'd love to give aisling more data, I love the output format. it's as if snapchat added some features, it'd be a really powerful story/anthropologist tool
but it's different use case from their central business, definitely
Jim Matheson
@jmatheson
Mar 26 2016 23:23
yea, totally
i think your idea was right. Geo and time tag.
wonder how much work it’d be for me to rip that part of the code for my other app out and reuse it for this concept.
what features would you want to see?
garykidd
@garykidd
Mar 26 2016 23:37
cd.. doesnt work...whats the equiv?
worthwhile to setup watchdog on RP3
?