SSH and a Monitor

I had been having problems setting up SSH on the Raspberrypi but then one day it started working. Sort of. I can ssh into the pi as long as I am at home on the same network. Trying from work or anywhere else and it times out. Oh well at least being able to get into the pi from my computer at home will allow me to update the app and reboot if needed. I also found a handy app that will let me ssh from my phone:

IMG_1665I also found a relatively cheap ($65) monitor from a local used computer part store called Free Geek.

IMG_1666Finally I also ordered the mirror online from Tap Plastics. I wasn’t able to find anywhere local that sold two-way mirrors. With the shipping and exchange rate the mirror turned out to be about $120. Once the mirror arrives I just need to build a frame.


Setting up the Pi

Over the last little while I have managed to get the Raspberry Pi setup and got Meteor installed and running. I moved the app over to the Pi and initially it ran but wasn’t updating the weather. I eventually realized that it was the Epiphany (Gnome) web browser that was the culprit. After a few failed attempts I was eventually able to get Chromium installed and viola the app worked perfectly. Using Chromium also solved another problem where I was unable to access the database from the console. Running meteor mongo just keeps giving me an error. At least with Chromium I can use the javascript console to edit the database.

I’ve also got the browser to autostart in kiosk mode with the localhost page but still need to get the meteor app to run automatically as well.

Mirror Website

I’ve managed to make a Meteor application that displays the current day, time, weather and a random compliment:

Screen Shot 2016-01-07 at 3.37.12 PMGetting the random compliment took the most time. I spent a lot of time trying to find out how to return a random document from the compliments collection I created. I found quite a few posts online but none seemed to work. I could return an object but it was not displaying the text of that object. In the end it was as simple as changing from find() to findOne().

Next I want to have it check the date and display custom messages such as “Happy Birthday”, “Happy Anniversary”, “Merry Christmas”, etc.

I also set up the Raspberry Pi this week. I want to see if I can get Meteor running on it. If so I can just have the application running locally on the Pi and point its browser to the localhost. I did find this walk-through online.  If not I can deploy it to Digital Ocean which may be the better choice in the end as I can update the database easily that way.

Raspberry Pi, Littlebits and Meteor

So I haven’t been teaching for the past few years due to lack of enrolment in continuing education (SD38 continuing ed has stopped offering all math and science based night school courses!) hence the lack of any new posts on this blog. Since I haven’t been teaching I started learning new skills, did some online Python tutorials and then got interested in Meteor. When I first started teaching full time in Powell River one of the classes I was given was Information Technology 11/12. Part of this was teaching basic HTML which I was comfortable with but the other part was Javascript which I wasn’t. It was a quick and steep learning curve. Since meteor is based on JS I thought it would be a good way to revive that forgotten skill set. So far it has been going well and I’ve even made a few apps.

Then for Christmas I was given a Rasperry Pi and some Littlebits. After looking through some possible projects I’ve decided to try and build a Magic Mirror. I can build the site using Meteor and it can run on the Pi and perhaps make use of some of the Littlebits to act as motion sensor to activate it.

This project should be a lot of fun and documenting it here will be a good excuse to revive this blog.