Added Away/Home to unofficial-nest-api

I just finished adding a new simple feature to control the away status for a structure to my unofficial-nest-api published on GitHub and available as a node package (npm).

Usage is simple as calling setAway or setHome on the nest instance after authentication and a successful status has been returned (see commented calls below).

if (username && password) {
    username = trimQuotes(username);
    password = trimQuotes(password);
    nest.login(username, password, function (data) {
        if (!data) {
            console.log('Login failed.');
            process.exit(1);
            return;
        }
        console.log('Logged in.');
        nest.fetchStatus(function (data) {
            for (var deviceId in data.device) {
                if (data.device.hasOwnProperty(deviceId)) {
                    var device = data.shared[deviceId];
                    console.log(util.format("%s [%s], Current temperature = %d F target=%d",
                        device.name, deviceId,
                        nest.ctof(device.current_temperature),
                        nest.ctof(device.target_temperature)));
                }
            }
            subscribe();
            //nest.setAway();
            //nest.setHome();
        });
    });
}

[PSA] Discovery channel Velocity available on Dish Network

Public Service Announcement:

If you’re looking for Discovery’s Velocity on Dish Network – they do have it. It’s available only by subscribing to Blockbuster.

Blockbuster includes one DVD/Blu-ray at a time plus the following additional channels for $10 additional a month (and an extra $5 for 2 discs at a time).

image

(We looked around for quite a while to find this. There are many many pages that contain out of date information as they were written while it was transitioning from different programming, and also in a trial, so I hope others find this useful).

If you’re mildly into cars, it looks like a fun channel.

AV Club / Our home setup 2012

I’ve done a lot of reworking of our computers and network recently and thought I’d post some details about the various physical and digital parts that make our humble WiredPrairie home work.

Using Google Docs, I created a labeled diagram with most of the moving parts of our house (WOW, Google Docs Drawing is an amazingly decent vector drawing editor!). I’ve intentionally left off some of the noise including PCs and laptops, and a few unloved devices.

Home Setup

  • A) DSL modem. The connection to the Internet. We’ve had a flaky Internet connection over the years and have had to replace our DSL modem multiple times, but as our Internet service includes unlimited service and repairs, it’s not been a huge issue. We live in a rural area and our only choice is DSL (or expensive satellite service). It’s a 2 line modem to help improve reliability and upload bandwidth.
  • B) An Intel D2500CCE Atom N2500 Dual LAN Industrial Mini PC purchased from MitxPC. I added to it a Crucial m4 64GB SSD. This PC, with no moving parts, runs a copy of pfSense. pfSense is a tailored copy of FreeBSD for use as a firewall and router.

    I’m running an IPSec and OpenVPN server on the little box so that we can VPN from a PC or Mac and our iOS devices from anywhere. pfSense is reasonably well documented, so it’s pretty easy to get around. While it’s not as easy as some open source router replacement software (like TomatoUSB for example), it’s far more capable and extensible. The community seems great too (although I’ve not had to directly use it). My only disappointment is that the traffic graph is lame (compared to others I’ve used):
    image

  • C) Synaccess netBooter. Amazing little device for a reasonable amount of money. The single job of this device (for us), is to monitor the Internet connection. If the internet isn’t accessible over a period of 3 minutes (checked by pinging Google’s DNS servers every 30 seconds), the attached device is rebooted (I have it configured to turn the DSL modem off for 45 seconds and then restart it). Given our connection isn’t always reliable and a good kick in the [modem] seems to usually stabilize the connection, this has been a great addition to our house. The modem is buried away in the basement in an unfinished area, so this device makes it so I don’t need to worry about manually rebooting the modem anymore. It keeps a handy log to show reboot cycles.
    image
  • D) There are multiple wireless access points of various makes and models around the house. I recently bought the ASUS RT-N16 and updated it to one of the various flavors of the Tomato firmware (a very recent one designed specifically for this router). Our house is spread horizontally and over three floors, so we need multiple routers to get reasonably consistent WiFi coverage. I’ve got an access point on each floor currently.
  • E) UPS – CyberPower CP850PFCLCD – it keeps the primary systems of the house alive during a power outage/flicker event. The server below is connected via USB so that it will automatically shut down after an extended power failure. I haven’t had any troubles with the device other than turning off the constant beeping when the power actually goes out for more than a few seconds. (YES! I know the power is out, thanks for the [BEEEEEP]).
  • F) Two D-Link 24-port rack mountable Gigabit Switch DGS-1024D. Seriously, our house is way over-wired. We pulled four CAT-5e cables to each major room in our house. They all converge on one place in the unfinished area of our basement to these two switches.
  • G) HP ProLiant N40L Ultra MicroServer: Originally, this was running Windows Home Server 2011. But, just recently, I made the switch to running Windows 8 Pro. I’ve added a second network card and a USB 3.0 card (which required a 90 degree right angle molex connector for power!). I must say that I really like using Windows 8 on this box. It seems faster than WHS 2011, plus it has the new Storage Pool functionality, plus can act as a File History destination. File History really is a better file backup than the backups provided by WHS 2011 anyway.

    I had no problems with the install (as this micro server isn’t headless). It works really well and with the exception of the full image backups from WHS 2011, I’m not missing any functionality.

    I’m using no-ip.com as a replacement for the Windows Home Server dynamic IP functionality (as part of a WHS, you were allowed one dynamic IP host name such as wickedlycoolstuffatmyhouse.homeserver.com). I’d definitely recommend no-ip.com (they’re free for basic services and cheap for an improved service). The agent used by no-ip.com can be run as a Windows service and updates every 5 minutes (so that your IP address, if it changes will be reflected nearly instantly by no-ip.com. I used the WHS remote file access feature so few times I won’t miss that (it was so SLOW!). Now, with the VPN via pfSense, I can remotely wake a PC, and RDP to it directly (or access file shares). Much better.

    I’ve got a number of external HDs that I’ve got set up with scheduled tasks to back-up the server and other files (and I’m also running Storage Pools with mirroring).

  • H) From Cable Electronics (celabs), we have a video/audio distribution unit. I can’t find the model we have, as it’s 6 years old, but it’s served us so well! While we don’t have as many inputs as we had a few years ago, it now is sending the Joey video signal around the house very conveniently. We have this so we only need to buy a single extra satellite receiver rather than one for each TV.
  • I) This is a Dish Network Joey. It’s connected to the Russound and to the Audio/Video Distribution device. The remote control is RF so it works nearly anywhere in the house, and the video/audio is available on most of our TVs. We don’t really like it (as it’s not easy to use), but we like the channels …, and love having a DVR. Our setup allows the audio of the Joey (via the Russound below) to be sent to any room with built in speakers. In our kitchen, we can listen to TV with the built in room speakers rather than via the tiny built in speakers on the TV cranked.
  • J) Russound C-Series Multizone Controller – this sends audio (and remote IR signals) to 6 rooms in our house. We use this several times a day so we’re really glad we have it. We’ve got it connected to audio from the Sonos, to the DVR extender, to the XBox, etc. (It has a radio tuner as well). It’s a simple system and reasonably configurable if you’re handy with technology (changing labels on the remote keypads for example). We love having our Sonos hooked up to this device. (It’s also connected to our UPS as a power fluctuation with this plugged in and physically switched on causes a very loud audible POP on all of the speakers).
  • K) Sonos Connect. Ah. We love this little guy (in combination with the Russound mentioned above). Audio everywhere we want it. Our audio. Not old school radio. We’ve got the Sonos app installed on every iDevice and tablet around the house so we can control the music anywhere.
  • L) Axis 241q (discontinued apparently). Super stable. Takes up 4 analog video camera feeds and converts them into IP feeds. So, rather than buying really expensive outdoor security cameras (they die too frequently!), I can buy reasonably priced security cameras and replace them without heartache. I’ve got Blue Iris running on the Windows 8 box and it’s an AMAZING application.  I talked about an older version on my web site 4 years ago (images are gone though). I just upgraded to version 3 and the product is just getting better! It chugs through all of the security camera footage and automatically records (to one of the external USB drives) and sends alert e-mails as needed when a configurable amount of “movement” is detected at our house. It’s great getting an image of the UPS guy dropping an Amazon package off at our house. The Axis devices are expensive, but they’ve been well reviewed, and I’ve not had any problem with ours.
  • M) I wanted to better track our electrical usage, so I hooked up three of the CT clamps and one of the displays from CurrentCost.net, and then hooked that up to the Windows 8 micro server (via a touchy COM to USB cable), and it uploads the data in near real time. Our solar panels mess the data up though … I’ve not been happy with the setup yet and haven’t had the interest to fix it (or the electrician).
  • N) roku. We bought an extra power adapter so we can carry this from room to room as we didn’t want to buy multiples of these (as we’d only ever use one at a time as our Internet bandwidth can’t really handle anything better).

    While we have an AppleTV, we love our Roku more. (Partly as we just haven’t decided to spend money on iTunes if Amazon has the same products). It’s not perfect, but it’s not expensive and it plays Amazon content more consistently than our “Internet enabled” Samsung TV.

  • O) Nest. I’ve talked about Nest a few times. <giggle>
  • P) XBox. We’ve got 2 of these. One connected to the main family room TV (for game playing), and a second to a small TV in our kitchen (for Media Center functionality).
  • Q) A Puget Systems Echo. A very small efficient PC that we use as a Windows Media Center. It’s directly connected to a Samsung LCD TV via HDMI. As the PC is too small to have a decent dual TV tuner, I’ve got a SiliconDust HDHome Run Dual Digital TV tuner tucked away in the unfinished basement area. It’s a great combination. The Echo is also setup to serve the Media Center experience to a second XBox in our kitchen. We currently use the Media Center to record local HD over-the-air broadcasts. Dish Network (our current satellite TV provider) doesn’t offer all of our local TV stations via HD. I’ve got an Antennas Direct ClearStream4 on our roof – best antenna we’ve ever owned.  It’s connected to the HDHome Run tuner. The Media Center is set to go into Standby when not used, so it’s energy efficient (certainly better than the satellite/cable provider’s DVRs that are energy hogs). (And while Satellite reception can be affected by weather, this combination always seems to get a decent signal so we can get news in the case of severe weather).
  • R) Dish Network Hopper – our internet connection isn’t always reliable enough to maintain HD streamed video content. (SD is always fine). We experimented with “cut the cable”, but after doing the math of what we wanted to watch, and the way we watch TV (almost always recorded, rarely live), the math worked out to be within $5 of the cost of satellite TV service a month. So, given that we’d get a lot more options with satellite TV, we stayed with that. (We don’t have cable TV as an option at our house). The Hopper is “meh.” It’s got more usability issues than I’d like, but it’s generally OK.
  • S) We installed 24 solar panels in late 2011.  The solar panels use micro inverters from enphase energy (model M210-84-240). Each inverter sends its status via the power-line to a small device called the Envoy. We’ve not been real happy with the setup as it’s very touchy. Sending signals over the power-lines can be a sketchy and inconsistent affair. When originally installed, we struggled to find a reasonable location within the house that had a strong signal from the micro inverters. Eventually we found a location.

    We’ve had one micro inverter fail and was replaced.

    The Envoy also needs wired internet access so that it can update a public/private web page with the latest data from the solar panels. It’s actually quite slick. Thankfully, there is no subscription service. (For the geeks, there is reasonable local access to the data through the device as well if you wanted to get direct access to the data without going through enphase and their “Enlighten” portal) The Envoy is powered by apparently a CPU slightly more powerful than a toaster. The thing takes minutes to boot. It’s really only frustrating when you’re trying to find a final resting spot for the device.
    image

  • T) 24 solar panels – SunPower 230-watt
  • U) We’ve got several wireless security cameras scattered about internally. Using Blue Iris (mentioned above), they only record/watch during hours that we’re typically away. I talked more about the cameras here. They both were Asante most recently.
  • V) We’ve gone through so many wired security cameras over the years, I’ve lost track and am not really sure what we have actively installed anymore. Several of the cameras are color. I always buy color these days as the price difference isn’t substantial. What I have noticed is that you should always have a backup power supply ready. It’s the thing that typically goes on these camera setups first (and if you start seeing “wavy lines”, replace the power supply as it’s almost always been the culprit in my experience). Most of them all use the same type of power supply, so I now have a few backups. I buy all of the various supplies from Monoprice.

    We have two cameras that have night time IR capabilities. Ignore what they say on the packaging for “night vision” distances. They’re always wrong. Further, the “vision” is so weak at the far end of the distance to be absolutely useless. Practically speaking, I’d take the distance they suggest and at least cut it in half. Also, make sure you consider the distance from the mount to the ground in your calculations. While I like the idea of IR, it works so poorly on our cameras that I couldn’t recommend any specific reasonably priced model. If you’re expecting to be able identify someone using the IR, good luck. You might be able to tell the difference from a human or a sasquatch, on a good night.

And that represents the majority of things we’ve got setup in our house right now. I’ve tried to include links to the original product page or where I bought a given product if available (or to a newer model if the older one has been discontinued).

I’m so embarrassed by the state of the wiring and setup of the majority of the equipment mentioned above that I’m not going to include a photo. It looks like a child’s messy toy chest, filled with wires and various rectangular boxes with blinking lights.