Past week activities

What do we talk about.

It’s been an interesting week here and probably everywhere. There are a lot of things going on in the world. Like most people, we have been hanging out in our house and only going out unless we need to. Life is going to change around here and who knows if we or anyone is ready.

Let me just touch on a few things from last week.

Monday

We planned on attending the funeral for my neighbor that passed away. He was a super nice guy, but his health has been deteriorating the last few years. I haven’t seen him much, but when I did, it was usually him coming to tell me to keep my son from messing with things in his yard, or me going over to his house to apologize for my son taking something from his house. We talked a few times about VW’s and his yard. He has some cool trees in his yard that provide a TON of shade for us in the summer. They are awesome, until the winter when I have to rake up the mess. I don’t mind it though, the shade is well worth it!

Unfortunately, that day the school had an early day, so one of us had to go pick up the boy from school and miss the end of the funeral. We went to lunch. I went to work after lunch. Nothing too exciting.

Tuesday

The cold I picked up the Saturday before was getting worse, so I decided to work from home. I have a pretty flexible job, and I’m able to work from home if I need to. The social interaction with my coworkers is one of the highlights of my day and it is definitely different while working at home. I tend to get more stuff done, because there are fewer distractions.

Wednesday

I went to work and tried to stay in my room more. It’s much easier to work on my 3 monitors vs 1- 17″ laptop screen. I also had GDG to attend that night. They were discussing the Firestore, which was very interesting. The presentation had some problems, but it was good. Here is the Stream if you are interested. Check out the guy talking about ServerApp at this timestamp. It is a super cool idea about ordering food from your phone in a restaurant. Having access to the server via your phone. It is a great idea, unfortunately during this time it may not progress like he wants if the restaurants close for dining.

Anyhow, I was pretty fired up about NoSQL databases after leaving and very curious how I could use them more. I usually work in the relational world. I can see the benefits of a Document Database, but i’m not sure how reports and data duplication work.

Thursday

I went to work again, I have been feeling much better. Who knows what I have, maybe just a cold? I had to do a training today for my coworkers. I did a little presentation on creating a simple API using NodeJS. Public speaking is not my strong point, so i’m sure this wasn’t very good. There were only 6 of us in the room and I was still petrified. I’m going to work on it a little bit more improve my skills. Got any tips?

Friday

Nothing special happened today, but we found out the schools will be closed to students for 2 weeks and we’ll be homeschooling the boy at home. This could be entertaining, to say the least. I’m thankful that my wife can stay home and help him with school. We needed some tortillas, so the Mexican market is on the way home. It was super packed with people, so it took about 40 minutes to get through the line.

Saturday

Another day of sticking around at home. After giving the boy his medication he pretty much stayed upstairs playing with Lego’s. I went to Costco to pick up a few essentials and to see the craziness. Unfortunately, it wasn’t bad at all and I made it through the lines without much trouble. I’m going to go crazy if I have to stay inside too much. A nerds life is behind the keyboard, but you need to get out every once in awhile.

I saw the best thing in my neighborhood. There was a family with a table and a pyramid of toilet paper with a sign that read “Stranded on the bowl without a roll?? Here is one on me! Pay it forward! #metootp“. I thought it was awesome!

Sunday

Today has been pretty lazy and great! Our church is canceled, so we did stuff here as a family and it went good. A 7 year old that has a hard time sitting still normally at church has the same problem x3 at home.

Be Safe

I hope everyone can stay safe during these crazy times. Facebook had a pretty epic link floating around to this site: “HERE’S THE ENTIRE LIST OF EDUCATION COMPANIES OFFERING FREE SUBSCRIPTIONS DUE TO SCHOOL CLOSINGS” – Hopefully we can keep our kids happy and not halt the learning that the teachers have worked so hard to do every day. They are working hard to provide learning online and we have to help our kids continue to learn. It’s going to be tough.

Playing with technology.

Image by Mike Sweeney from Pixabay

The Problem

I wanted to talk about something I’ve been playing with at work (not for work..just at work). Before I start, I want to say that I’m not trying to do a full review or guide on how to set this up. It is just a little story about what was built.. 🙂

We have two entrances to our work. We have the main entrance and then a second door most of us use to go to the bathroom. No one is monitoring the main door, so if a package is delivered, it would sit there until someone happened to go to the bathroom or you go looking for it. If someone came to the office to meet with us, they never knew where to go. Most of the time the visitor would sit up there waiting for someone to greet them. A coworker mentioned that it would be nice to have a webcam to view people coming and going. This is how this little project was born.

The solution. Version 1

My nephew is always up on cool tech toys and had recently built a Raspberry PI garage monitor system. I took that idea and built one for the office. The following items were used:

  • A Raspberry Pi 3 – Raspberry Pi 3
  • Web Cam 1080p – I can’t remember what type this is
  • Raspbian – UI for Raspberry Pi
  • MotionEye – Software used to manage the camera and motion, etc.

Setup

I didn’t want to have a monitor plugged into the Pi all the time, even though I was using a GUI OS (Raspbian), so I setup all the stuff at home. MotionEye has a pretty good page that describes how to install the software, and that was pretty easy. The following script (very simple) was used to post a message to a Microsoft Teams server indicating what the IP Address of the Pi. This would allow me to make a change to the WiFi settings to connect to the WiFi when it booted up. Everything should have been taken care of after that, because I can use putty to connect to the machine.

import teams
import tools, os
import pymsteams

def teamMsg(ip):
    ips = ip.split(' ')

    myTeamsMessage = pymsteams.connectorcard("<secret>")
    myMessageSection = pymsteams.cardsection()
    # Section Title
    myMessageSection.title("Pi Boot")
    # Activity Elements
    myip = ips[0]
    myMessageSection.activityTitle("Here is my IP(s) - %s " % (ip))
    myMessageSection.text("Here is a link to come watch Watch. [Watch here](http://%s:8765) - username: 'user' -- blank password " % (myip))
    # Add your section to the connector card object before sending
    myTeamsMessage.addSection(myMessageSection)
    myTeamsMessage.summary("Camera booted.  Connected to network.")
    myTeamsMessage.send()

import teams
import tools, os

ipaddress = os.getenv("_IP")
print ipaddress
teams.teamMsg(ipaddress)

This code hasn’t been cleaned up.

Motion Detection

One feature of motionEye is to detect motion, so I created some scripts to post messages to Teams when motion was triggered. This was a great idea in theory, but it would never work. MotionEye wouldn’t fire these scripts for some reason, and I haven’t been able to fix it..yet

Plugging it in

I took the Pi to work and plugged it into the network and fired it up. It didn’t go so smooth, but I was able to work it out and get it going. We had fun with it. Unfortunately, it wasn’t doing what we wanted, since it wouldn’t run the scripts during a motion event. We had more fun watching the videos of coworkers going to the bathroom, coming to work, or going home.

Boredom

We eventually grew bored of this setup and thought it would be a better idea to monitor the parking lot. Specifically Nefarious Corner mentioned in The Parking Lot post. It was nice to view this area, because it was more interesting than watching the co-workers go to the bathroom. We found a few problems with this setup and the raspberry pi.

Problem 1

The Pi didn’t have enough processing power to handle the video processing. We were getting pretty low refresh rates, so the videos were very choppy and provided little value.

Problem 2

The machine would crash often, and the only thing we could figure out is that it may be overheating. I have the Pi in a Retro Nintendo case, which is super cool when you are building a gaming machine. The case comes with a fan, but it wasn’t installed…woops!

Problem 3

There wasn’t enough space on the memory card, so it would fill up fast and then freeze up. When this thing freezes up it was difficult to get in without having a monitor plugged in.

Version 2

After the incident mentioned in The Parking Lot and the camera crashing. I wanted to get MotionEye working on a new machine that can hopefully handle the image processing and have more space.

I located an old machine that we haven’t used since 2010 and repurposed it. The new machine was constructed using Ubuntu Server 19.10. It didn’t go as smooth as the Pi due to some mistakes on my part, but I got it running. Things are running and we haven’t seen much action on the camera though.

ParkingLot

I’ve had fun setting this up, but I’m pretty sure it can do a lot more. I have several ideas on how to extend this. One would be to integrate this with the software/service by Sigthound, which is a service that can recognize cars, license plates, people, etc. Go check it out if you haven’t seen it before. I would suggest looking at the Cloud API. I’m going to apologize now, because after you go to the site, your FB wall will be riddled with ads from Sighthound. 🙂

Conclusion

I love exploring and playing with technology and this system is perfect for watching people, especially those misbehaving in your parking lot. I say bring on the summer and the crazy meth-heads.

Happy New Year

The new year is here!  We had a busy week ringing in the new year and enjoying time off not thinking about the inevitable.   Going back to work and school!? I went back to work on Thursday.  The boy goes back to school Monday, 6th of January.  I’m hoping it goes well for him.  We have been bad about keeping up with reading and some other daily habits that he has been used to.  This week hasn’t been that exciting so there isn’t much to report.

We rang in the new year at the Provo Recreational Center.  They have a lot of family-friendly things to do from 7pm until Midnight.  This is the second year we’ve been, and it is super fun!   They have:

  • A Hypnotist
  • Bounce Houses
  • Dog Shows
  • Acrobatics
  • Karaoke
  • Face Painting
  • Comedy Show
  • Game Shows (Family Feud)
  • Dancing
  • Virtual Reality
  • Fireworks (One at 10pm and one at 12pm)

There is a lot to do.  I may have left some out.  It felt like the night flew by!  We didn’t get home until 1am and then to sleep at 2am.  Jacob and I both slept until 12pm!  It was awesome!

He didn’t quite understand how to do it. I may be failing as a father!

One thing I wanted to talk about but I’m a big people watcher.  I love the big city.  There are a lot of people in a small place.   I can sit on the corner and watch people shuffle by.  I’ve always found it very interesting.   In the past, I’ve been a pretty shy person, so it was always a good time to come out of my shell by talking to complete strangers.

I don’t live in the city or anywhere I can watch people.  Where we live, we don’t have a lot of street traffic we can look at, so sitting out on your porch at night watching the world go by is hard.  My office window at work faces a driveway into the back of the building.   Behind our building, there is a path down into the neighborhood behind us.  It is used by a few people during the summer.    We are pretty sure there are some shady people using the path.   They are fun to watch but not as exciting as the big city.

I have found a few cool live camera sites that are fun to watch while I’m at work.   There is a very nice camera in New York, Time Square Cams, that is fun to watch It’s a pretty famous camera, so you see people stopping and waving at the camera.  Their Grandparents or Parents are home watching on the camera.   It’s fun to watch the interactions.   

While watching on Friday, a mother and baby walking one way and another lading coming towards them.  The baby tripped and fell.  She picked herself up and the lady stopped and helped and showed concern for the baby.   It’s a typical interaction you’d expect.  Two complete strangers (as far as I know) interacting.  Internally, this interaction I’m witnessing is playing out in my head.  I find it very interesting. Another camera I watch a lot is in Hermosa Beach at a restaurant. You can see the beach, people waiting in line to go eat, or people exercising up and down the beach. Super fun.

MILLIONS of people live int this world, and we will never meet them all. There are some that you’ll never want to see again, but there are some you’ll want to keep in touch with.  Personally, I find it fun to meet new people. 

Here is a story about meeting random strangers.  We were at Legoland several years ago, and Jacob randomly got on a ride with this girl.  They HIT it off and wanted to ride the next ride together.  It was just her and her mom and dad.  We had to stand in line with Jacob, her, and her parents.   The kids were treating each other like they knew each other before talking, laughing, and having a great time!   We were trying to get to know her parents.  It was slow at first, but we ended up spending the WHOLE day with them.  We learned a ton about them, and they did the same with us.   We were from two different worlds.  We were the Mormons from Utah, and they were Catholics from California.   Fortunately, that didn’t matter to anyone.  We were all sharing a great experience riding rides and enjoying a theme park.  It was great.  We keep in touch with them on Facebook.   It was a great experience and we never would have met them if it weren’t for two kids making friends.

Life is busy, and it’s hard to stop and talk to everyone you see.  A smile, wave, or a quick “HI” are super easy!  I’m not much of a “Goal” person. I think I’ll try it out this year and make it a point to meet new people and/or make someone smile.   Everyone has a story or something to say.   Give them a chance.   You should stop and listen to that story sometime.