Category Archives: Tools

Well designed and useful educational tools

Dumping Diigo

At the beginning of the course I’m taking, “Create w/Code,” I was encouraged to curate my resources – to save and note all of the places that I’ve been online that are interesting to me and may prove useful in the future. Beyond typical bookmarking, it should be a place that should and can be shared with others. All good ideas. I chose to use Diigo and it was fine except that I didn’t always remember to use it, don’t have it installed on Safari, and realized that I had bookmarks in three different places. Enough.

I’m now just bookmarking as I used to always do in the past, on both browsers, and taking the time to export the ones of most value and posting them to my website. It takes a little time, but I can organize them the way I want, and retrieve them wherever I am:

http://www.jdedtech.com/links.html

 

Creation v. Consumption

I’m working with a class of middle school children locally. They’re the type of kids who for many reasons aren’t typically motivated to create. They are highly motivated to consume media and will do so whenever they have the chance, but their teacher is trying to change that dynamic. I’ve offered him the use of a MaKey MaKey, and he’s going to try to raise the funds to buy a few more. I’ll follow up on this post, but I’m already really encouraged with the reception that it received today:

All I did for them was plug it in and get the MIT Scratch Drum Machine up for them and let them do the rest. A little later, after they got the idea of a a small circuit I gave them a Serial Bus I made for another project the night before and that let more kids in on the human drum kit. I’ve encouraged the teacher to let them discover and create on their own. I’ll go back next week and see where they go. I’m also helping them to work with Zoombinis – we’re going to look at ways to move the concepts off the game and into other creative projects and transferring the skills to other areas.

SSH into RPI

I was able to Secure Shell (SSH) into my Pi by getting some hints from Raspberry Pi.Org Documentation. I was able to get in but because my command line skills are so limited I wasn’t able to do anything more than look inside a directory. Ultimately I’d just like to learn how to copy and/or move a file from one machine to the other.

The first thing I did was to connect my Mac to the Pi by Ethernet. I will try to see if I can do it wirelessly, but I wanted to take that out of the equation – maybe I didn’t have to. Then I went to the Pi terminal and typed hostname -I. That gave me the ip number of the Pi. Then I went back to the terminal on the Mac and typed ssh pi@169.254.236.213. Then I listed the directory for Python Games and exited.
________
John-Donaldsons-MacBook-Pro:~ k2kid$ ssh pi@169.254.236.213
pi@169.254.236.213’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 Feb 13 12:54:09 2016 from 192.168.2.32
pi@raspberrypi:~ $ ls -l python_games
total 1800
-rw-rw-r– 1 pi pi 9731 Jan 27 2015 4row_arrow.png

pi@raspberrypi:~ $ exit
logout
Connection to 169.254.236.213 closed.
John-Donaldsons-MacBook-Pro:~ k2kid$
_________

I did try it without the ethernet connection and as I suspected it didn’t work – a problem best left ignored for the moment.

Next task – how do I move and or copy back and forth between machines?

Raspberry Pi

To update, I am currently running a RPi Model 2 with a new 32 GB sd micro card w/Debian Jesse. You can look here and here to see how I got this far. The problem of the moment is getting a good browser to work. I really don’t like Epiphany and would like to upgrade to Mozilla’s Iceweasel, I did a manual install which ran fine, but can’t get it to load as it throws an error saying that it can’t find all the resources it needs to run.

IMG_4461I’ve curated a list of resources and, as I’m learning to reach out to Communities more, I’ve done a search on the Raspberry Pi Forum at Raspberry Pi.Org for a fix. From looking on that I’ve decided to try my luck with Chromium 45 – another browser that seems promising. For those new to RPi, I strongly suggest putting some time aside to learn some terminal commands and to learn to copy and paste into the terminal. Much of the help out there gives the necessary code to get the things you need or make the changes you’d like. I attempt to install this from the forum:

wget http://ftp.us.debian.org/debian/pool/main/libg/libgcrypt11/libgcrypt11_1.5.0-5+deb7u3_armhf.deb
wget http://launchpadlibrarian.net/218525709/chromium-browser_45.0.2454.85-0ubuntu0.14.04.1.1097_armhf.deb
wget http://launchpadlibrarian.net/218525711/chromium-codecs-ffmpeg-extra_45.0.2454.85-0ubuntu0.14.04.1.1097_armhf.deb
sudo dpkg -i libgcrypt11_1.5.0-5+deb7u3_armhf.deb
sudo dpkg -i chromium-codecs-ffmpeg-extra_45.0.2454.85-0ubuntu0.14.04.1.1097_armhf.deb
sudo dpkg -i chromium-browser_45.0.2454.85-0ubuntu0.14.04.1.1097_armhf.deb

Reboot and it’s there and it’s working! Yay!

I want to show you a screenshot of the desktop but don’t know how – back to the community – there is a command line tool (unfortunately) called ‘Scrot.’ – and I get instructions on how to use it.

IMG_4463Well, I’m embarrassed to say that I ran the wrong code in sudo and totally borked my Pi and have decided to reinstall the OS and start again. Frustrating, but live and learn… At least it’ll give me practice on how to reconfigure the system and luckily I have my own breadcrumbs to follow from this weblog!

Update: I was able to put everything back together again and it really didn’t take too long because I had done it before, and yes, it was good practice. Desktop

Raspberry Pi Used Automatically to Complain to Comcast for Slow Speeds

A Comcast user has used a Raspberry Pi to create a device that will complain to Comcast when service goes well below the speed he’s promised.

Code Below:

#!/usr/bin/python
import os
import sys
import csv
import datetime
import time
import twitter

def test():

#run speedtest-cli
print ‘running test’
a = os.popen(“python /home/pi/speedtest/speedtest-cli –simple”).read()
print ‘ran’
#split the 3 line result (ping,down,up)
lines = a.split(‘\n’)
print a
ts = time.time()
date =datetime.datetime.fromtimestamp(ts).strftime(‘%Y-%m-%d %H:%M:%S’)
#if speedtest could not connect set the speeds to 0
if “Cannot” in a:
p = 100
d = 0
u = 0
#extract the values for ping down and up values
else:
p = lines[0][6:11]
d = lines[1][10:14]
u = lines[2][8:12]
print date,p, d, u
#save the data to file for local network plotting
out_file = open(‘/var/www/assets/data.csv’, ‘a’)
writer = csv.writer(out_file)
writer.writerow((ts*1000,p,d,u))
out_file.close()

#connect to twitter
TOKEN=””
TOKEN_KEY=””
CON_SEC=””
CON_SEC_KEY=””

my_auth = twitter.OAuth(TOKEN,TOKEN_KEY,CON_SEC,CON_SEC_KEY)
twit = twitter.Twitter(auth=my_auth)

#try to tweet if speedtest couldnt even connet. Probably wont work if the internet is down
if “Cannot” in a:
try:
tweet=”Hey @Comcast @ComcastCares why is my internet down? I pay for 150down\\10up in Washington DC? #comcastoutage #comcast”
twit.statuses.update(status=tweet)
except:
pass

# tweet if down speed is less than whatever I set
elif eval(d)<50:
print “trying to tweet”
try:
# i know there must be a better way than to do (str(int(eval())))
tweet=”Hey @Comcast why is my internet speed ” + str(int(eval(d))) + “down\\” + str(int(eval(u))) + “up when I pay for 150down\\10up in Washington DC? @ComcastCares @xfinity #comcast #speedtest”
twit.statuses.update(status=tweet)
except Exception,e:
print str(e)
pass
return

if __name__ == ‘__main__’:
test()
print ‘completed’

Goodbye Wheezy, Hello Jessie

I really wanted to get an email client onto my Pi, but it seemed like Wheezy wasn’t up to the task so I had to break-up with her. It was a clean break and I’m sure she’s ok about it. I quickly found Jessie and am hoping we can be together for a while.

jessie

First I had to get a larger sim card as Jessie weighs in at 3.5 Gb. Then I reformatted it using SDFormatter from SD Association.

Screen Shot 2016-01-30 at 10.07.32 AM

I downloaded the image onto my Mac and moved it over to the Pi and installed it with Noobs. Jessie really does seem better and worth the switch. Config is easier and it comes with a nice Office set-up. I couldn’t get the default email client, Claws, to work so I downloaded Icedove, a much better client, the open version of Thunderbird. The add/replace software app didn’t work for me, so I had to learn how to download through the terminal. This advice on doing that was so helpful – I’m glad I found it when I needed it.

2000px-Icedove-icon.svg

Now I’m using both Icedove and Iceweasel on the Pi, have an Office suite, have about 20 Gbs of extra space, and learned a good amount along the way.

Raspberry Pi Up and Running

My Raspberry Pi works!

All for about $60 plus shipping, and because I already had a keyboard/mouse and HDMI monitor, I have a newly functioning computer. The Raspbian OS includes everything I need, web browser, Scratch, text editor, and a few other things I’m looking forward to exploring.

Raspberry Pi 2 Model B w/wireless.

IMG_4396

I hadn’t used Linux for a long time – It was very easy to set up the default graphical OS.

IMG_4399

Yes! I was pretty happy to see that…

IMG_4400

With ethernet, before I set up WiFi.

IMG_4406

It’s a good idea to go through the config tool carefully. Be sure to change your keyboard layout from gb to us.

IMG_4408

I really didn’t have any problems – a little bit of trouble getting wifi to connect to my wireless router, but it caught another one just fine.

Peter Oakes’s start-up guide was really helpful: