MisterHouse control for a Samsung Smart TV

UntitledAnother piece of my home, now automated. With assistance from a thread on the Samygo forum, I created a module for the MisterHouse Home Automation System which allows it to control a network-connected Samsung Smart TV. For instance, when you leave the house for more than 10 minutes, it could turn the TV off for you. It could also switch the TV automatically to match your favorite show schedule, or switch to an HDMI input to monitor a surveillance camera if motion is detected on your property. It’s available right here for free:  https://gist.github.com/hollie/ed1fa39871e93e36e24e. It’s written in Perl so it’s cross-platform or can be adapted for other uses.

I’ve tested this with my Samsung UN40EH5300 and it works well. It should work on pretty much any Samsung TV that has an open port 55000. The code is based off of another Perl/HTML program from http://forum.samygo.tv/viewtopic.php?f=12&t=1792 created from some Wireshark traces.

To use this code, you’ll have to modify a few things:

– Change the IP 192.168.2.155 below to your own TV’s IP Address.
– Change $myip to your MisterHouse server’s IP Address.
– Change $mymac to your MisterHouse server’s MAC Address.

The 9-year-old Programmer

In response to the ZDNet article that Chad Elstad posted (you can read “The Mac’s 30th: What’s Your Story?” here: http://www.zdnet.com/the-macs-30th-whats-your-story…/ ). When I was 5 years old, I remember printing out computer programs on our Apple ][+ (Remember PR#1, LIST ?), and then trying to type them in to my Commodore PET computer. My first lesson in incompatibility! When I was 9 years old, I created a Baseball game in BASIC using lo-res Apple graphics (pictured below). I’m still a huge fan of the Apple ][ platform and I still have a working Apple ][gs that gets use from time to time…

Changes in Technology Over Time

Back in January, I was asked some questions by Amber Hallet from the Faribault High School Journalism class in regards to technology.  Here’s the insight I had.

What are some things that have changed over time with technology?

Technology rapidly changed from the 1960s forward.  The Apollo Space Program in the 60s showed the average citizen just what was possible with electronics and a lot of brainstorming (and money!).

132740_10150115232446458_7724284_o

THIS IS PROBABLY IN 1981. MY COMMODORE PET COMPUTER AND A TELETYPE MACHINE

We use many of the same kinds of equipment as we did years ago.  That is, equipment to record and playback sound, and equipment to organize files and folders.  Improving technology has allowed this media to go digital, be better fidelity, and be a lot smaller in physical size.  Instead of record players and cassette tapes, we now have compact discs and MP3 data files.  File cabinets are getting replaced by file folders on hard drives.

In the last 10 years especially, technology has become “cool”, and nearly everyone uses it.  Back in the 90s, you were labeled a “geek” for tinkering with portable electronic devices or computers, but now you’re not with the times if you don’t use them.

With improving technology comes an ever-increasing need for everyone to have a more thorough understanding of everything.  The learning curve keeps getting steeper.

What was the technology used when you were a child?

I was a lucky kid and was fortunate enough to have a father that loved tinkering with technology.  When I was 4 years old (in 1982), we had both an Apple ][+ and a Commodore Pet computer.  In those days, having a computer for personal use was not mainstream, and they were usually purchased by experimenters.  There were no easy-to-use graphical interfaces or mice.  Everything was input into a computer by keyboard, diskette, or cassette tape, and you needed to remember a different set of commands to make each individual program function the way you wanted it to.  Many people created their own programs because there might not have been software to do what they wanted (or it could have been very expensive).

Did people use a lot of technology when you were growing up?

People just started to buy VCRs and Video Cameras were I was young.  Our family took a video camera along on several of our family vacations in the early-to-mid 1980s.

189313_5014751457_1191_n

MY MDF AT THE HIGH SCHOOL

It was amazing how many people came up and talked to us, thinking we were recording a story for the evening television news.  You don’t get that reaction now.  In fact, many of the equipment you can get now is nearly the same fidelity as what the “big guys” are using.

This may not be a popular opinion, but I feel piracy has always advanced technology and encouraged people to accept and embrace it.  For example, when people found out they could make copies of rental movies on their VCRs at home, people purchased the equipment to do so.  When people discovered they could download free MP3s from the Internet through services like Napster, they embraced MP3 as a viable format and purchased the equipment to take advantage of it.  In both cases, the piracy was cracked down on, but it left those formats with a huge market share, and opened up the possibilities for future (legal) development of the technologies.

How was going to the doctors different with not having equipment they have now?

Computers are everywhere.  For a typical person going to a clinic, computers are used to register you at the front desk, computers are used by the nurse to record your vital statistics, and computers are used by the doctors to transcribe entries in your medical records.

What was the coolest device when you were a child?

I had this Casio Data Bank watch when I was in Junior High School in the early 1990s.  It stored phone numbers, appointments, memos, and had a world clock, timer, stopwatch, and alarm.  You had everything right on your wrist like Dick Tracy.  It was every geek’s (well, at least my) dream.

How did people react to the new technology?

Everyone forms into one of about three groups when you show them a new piece of technology.

ME HARD AT WORK

ME HARD AT WORK

You have those that are frightened to death of it, those that want to grab it and play with it right away, and those that don’t care one way or another.  Getting people to accept new technology has always been one of our greatest challenges at Faribault Public Schools, as it is at most places.  Usually when you can prove that something new will save somebody time or let someone do their job better, they slowly accept it (sometimes with a little extra needed encouragement).  For example, we installed our first District wide e-mail system in 1997.  It took a good two years before people really embraced it and found out how it could benefit them.

What kind of things didn’t you have back when you were growing up?

They certainly didn’t have many video games, at least what we would call video games today.  I think most people have seen and laughed at the original television “Pong” game, where you hit a white dot back and forth across the screen with a couple lines that you would control with game paddles.

Everyone had landline telephones.  In the early 80s you could even call people with just the last 5 digits of their phone number.  Cellular telephones weren’t even considered an option unless you were a businessman, lawyer, or CEO, because cell phones were way too expensive for the average person.  At that time, cell phones came with their own bag, a big antenna, and needed to transmit a lot of power in able to keep a phone call active.  People could expect to pay a couple dollars a minute, and that wasn’t including the price of the phone.

How has our school changed with getting undated on technology?

The bottom-line goal of pretty much every school district is to prepare their students for life-long learning.  In society today, you need to have at least a basic level understanding of how to use computers and logic to do basic things.

...ONE WITH 1.8TB OF SPACE, AND ONE WITH 1.5TB OF SPACE. EACH SUBSYSTEM HAS AN EXTRA HARD DRIVE (BOTTOM) THAT WILL TURN ON IF ONE DRIVE IN THE ARRAY FAILS. EACH INDIVIDUAL DRIVE SHOWN HERE IS A 300GB SAS HARD DRIVE.

…ONE WITH 1.8TB OF SPACE, AND ONE WITH 1.5TB OF SPACE. EACH SUBSYSTEM HAS AN EXTRA HARD DRIVE (BOTTOM) THAT WILL TURN ON IF ONE DRIVE IN THE ARRAY FAILS. EACH INDIVIDUAL DRIVE SHOWN HERE IS A 300GB SAS HARD DRIVE.

Our school district tries to purchase the software that students will need some knowledge of for college and beyond, and then give them a good understanding of how to use it.  Teachers continually need an advanced understanding of technology concepts in able to effectively instruct students at all grade levels.  And of course, none of this is possible without newer computers, servers, switches, routers, staff to fix and support them, and the financial resources to buy that equipment and personnel.

When you first started working here what was here for technology?

I graduated from Faribault High School in 1996 and started working at Faribault Public Schools full-time in 1997.  At that time, we had Internet connectivity just in the media center at the High School.  None of the schools had a network connecting them together.  In the offices at each school, there were 2 or 3 IBM PS/2 computers connected together with coax cable that formed a makeshift network.  The schools used Macintosh computers at a time when Apple went through several engineering problems, and it was always a struggle to keep them up and running.  If you wanted to transfer files from one computer to another, you had to copy them to a 3 1/2″ floppy disk first.  Several labs at the High School still used the bigger 5 1/4″ diskettes.  Teachers still routinely used movie and filmstrip projectors in their classrooms.

How has it changed since you have been working here?

The Faribault Community passed a levy referendum which gave our District about 4 million dollars to upgrade its technology.  In 1997, we installed a wide-area network which connected all of our schools together, and we purchased Internet access which was then routed to each building.  Each building got a complete video system which sent television programming to each classroom.  Teachers could finally make phone calls from their own classroom telephone instead of walking down to the office.  It was exciting for me to get in on the ground floor of such a large project.  Since then, we have upgraded all of the network equipment District-wide once.  We have expanded the bandwidth of our Internet connection 4 times.  We are now on the 3rd generation of computers in the classrooms and around the 4th generation of computers in the labs since the original referendum.  Almost every classroom district-wide now has a high-definition video projector hung from the ceiling instead of televisions.  Smartboards and document cameras have begun replacing whiteboards and overhead projectors.  Lastly, I have seen our staff in the last 15 years learn and better adapt to technology.  It has not been an easy road, but I think teachers have done a wonderful job including technology in their curriculum.

How much memory is too much?

Computers are commonly coming with at least a gigabyte of memory in them now, and sometimes people will add memory to computers so they have two, even four gigabytes of memory.  More memory is better, right?  Not always.  If you are thinking about upgrading to the much-maligned Windows Vista, everyone will tell you to make sure you have sufficient memory.  Two gigabytes is a great starting point, and four gigabytes will allow you to run several large applications at the same time.  However, if you have four gigabytes of memory in your computer, it’s impossible to use all of it.  This article will hopefully inform you of some pitfalls and caveats to keep in mind before you cram all those slots in your computer with more memory.

The operating system you have at home, which might be Windows XP, Windows Vista, Mac OS X, or Linux, are all 32-bit operating systems.  The original switch to 32-bit operating systems happened with the release of Windows 95.  All 32-bit operating systems, by design, can only address, at the maximum, 4 gigabytes of memory (232 for you math whizzes out there).  That’s it.  Even if you can add more memory than this to your computer, it will still only report that you have 4 gigabytes.  That’s all the computer can use.

What’s even worse?  If you currently have four gigabytes of memory in your computer, you won’t even be able to use all of that.  That’s because the hardware in your computer, like your video card, network card, and other expansions cards, have memory too, and they need the ability to have it “addressed” by your computer.  For example, if you have a video card with 512 megabytes of memory on it, surprise!  Now you only have 3 ½ gigabytes of memory to use for what you want to use it for.  There are few technical ways to improve the situation, and those that exist only work for high-end server applications.

What’s the solution?  64-bit computing.  All major operating system manufacturers (and very quietly in the consumer sector) have now released 64-bit versions of their operating systems to the market, but they will only work with the very latest computers (such as the Intel Core 2 and AMD’s Athlon 64).  Some 64-bit operating systems still limit memory expansion to a degree (such as 8 gigabytes in Windows Vista Home Basic).  Theoretically, though, the 64-bit architecture can address 264 bytes, or 17,179,869,184 gigabytes (16 exabytes) of memory!  Besides the ability to upgrade your memory greater than 4 gigabytes, there are few performance benefits and more incompatibility worries at this time to make such a drastic switch.

So what’s the bottom line?  Without an upgrade to a computer with a 64-bit processor and a 64-bit operating system, you will never be able to have more than four gigabytes of memory.  As this is an obvious limitation, watch for 64-bit computing to become popular throughout the next few years.

Tech Tip: Use your Right Mouse Button

If you’re like most people, you treat your right mouse button the way non-smokers treat the cigarette lighter in their cars. You ignore it. But like the non-smoking driver who gets a CD-player or a cellular phone and suddenly finds the lighter indispensable, once you learn how to use the right mouse button, you’ll find you can’t do without right-click either.

That right button on your mouse is not there for mere decoration.  When you use it (an action called right-clicking), a menu of items will pop up telling you what actions you can perform, and shows you shortcuts you can use to breeze through everyday tasks.

While the left button is limited to selecting an item or launching an program, the right mouse button is smart enough to tell you what you need to know when. The right-click menu is context sensitive.  This means that the menu of items changes depending on what you right-click and where you are when you right-click it. If you right-click the My Computer icon, for example, you’ll get different options on the right-click menu than you will if you right-click a Web page or a blank part of your desktop.

Right-click is especially handy when you come across something unfamiliar or confusing because the right-click menu will usually tell you what you can do with whatever obstacle you come across.  This is why learning to right-click is a good habit to develop. Don’t worry — nothing will break. At the very worst, nothing will happen. At the best, however, you’ll find the clue you need to get beyond feeling stumped, or a shortcut that makes it easier to get the things you want to do done.

Here are some quick right-click scenarios to get you started:

You can use right-clicking in your My Documents folder to quickly copy, paste, or delete files.  Most people use the menus to do this work, but with a right-click you can do the same things faster.  Simply right-click a folder in your My Documents.  You could delete it simply by selecting “Delete”.  You could also select “Copy”, and then open a drive for your portable USB drive, and Right-click “Paste” to easily copy the files without having to drag and drop.

You can also right-click on an empty white space in your My Documents folder to arrange your files by modification date, or by size.  This can help you find that file that you’ve been looking for.

On a Web page, you can use right-click to do a number of things–move forward and backward between pages you’ve browsed, print a page, or add it to your list of favorites.

Once you get into the right-click habit, you’ll settle into your favorite right-click scenarios, and you’ll find you discover new ones along the way.