Monthly Archives: February 2017

Apple Watch App moving along.

I did get over 300 downloads, so I am working on the Apple Watch App.

Thought I would do my first Swift App since WatchKit is so new, so learning that on the fly.

That’s why it’s taking a little longer.

Update:

YAY! This makes things ENTIRELY more difficult!

NOTE: With watch OS2 you can no longer use shared group containers.

Trying to find a way to pull down an updated device list from the phone when launching the Watch App, looks like I will have to add some kind of button to manually check for an updated list like my Android app does.

It would have been sooooo sweeeeet if I could have just pulled automatically from the same file when loading the device list on the watch. I would guess things probably happened too quickly and functionality was very flaky.

back to happier days, before reality kicked in . . .

Pretty cool language, similar to java. Dropped the semicolon like a rock.

So long NSNotFound!

//RANGE 5
NSRange range5 = [myStr rangeOfCharacterFromSet:mixme];
if (range5.location != NSNotFound){ // = mx WAS found
[self mixIt];
NSLog(@”Music has been mixed”);
//what is isPlaying set to at this point
}
//RANGE 4
NSRange range4 = [myStr rangeOfCharacterFromSet:topit];
if (range4.location == NSNotFound){ // = t was NOT found
NSLog(@”topit was not pressed”);
// 2 Checks above are for when music is currently playing
//<-----------------------Initializing Audio Player------------------------------------------>
self.audioPlayer = [[AVPlayer alloc] init];

//17 17 17 17 17 17 17 17 17 17 17 17 17 17
//RANGE 3
NSRange range3 = [myStr rangeOfCharacterFromSet:seven];
if (range3.location == NSNotFound){ //uuu was NOT found

//18 18 18 18 18 18 18 18 18 18 18 18 18 18 18
//RANGE
NSRange range = [myStr rangeOfCharacterFromSet:eight];
if (range.location == NSNotFound){ //zz was NOT found

//19 19 19 19 19 19 19 19 19 19 19 19 19 19
//RANGE 2
NSRange range2 = [myStr rangeOfCharacterFromSet:cset];
if (range2.location == NSNotFound){ //p was NOT found
//No p (cset) which means it’s not 19 so check for 18
}else{
//p WAS found — Trim 1
myStr = [myStr substringFromIndex:1];
} // END OF RANGE 2
//19 19 19 19 19 19 19 19 19 19 19 19 19 19

}else{
//zz WAS found — trim 2
myStr = [myStr substringFromIndex:2];
} // END OF RANGE
//18 18 18 18 18 18 18 18 18 18 18 18 18 18

}else{
//uuu WAS found — trim 3
myStr = [myStr substringFromIndex:3];
} // END OF RANGE 3
//17 17 17 17 17 17 17 17 17 17 17 17 17 17

// song was selected and input stream (myStr) was modified accordingly
_stringURL = [NSString stringWithFormat:@”%@%@”,first,myStr];
NSURL *url = [NSURL URLWithString:_stringURL];
AVPlayerItem * currentItem = [AVPlayerItem playerItemWithURL:url];
[self.audioPlayer replaceCurrentItemWithPlayerItem:currentItem];
isPlaying = false;

}else{
//This means pause was pressed

NSLog(@”topit was pressed”);
if (!isPlaying){
NSLog(@”Play music”);
NSLog(@”isPlaying now false”);
//[self.audioPlayer play];
isPlaying = false;
} else {
NSLog(@”Pause music”);
NSLog(@”isPlaying now true”);
//[self.audioPlayer pause];
isPlaying = true;
}
// } // END OF RANGE 4

}

Welcome Costa Rica, Fiji, and Thailand

Ok Costa Rica, just because I let my wife open the garage door from Costa Rica, I can’t let you do it (You have to have to cloud app anyway). Hope you have fun with it anyway.

Also welcome back Thailand, I think this is your second or third download.

And welcome Fiji ! I think this is your first.

And just a reminder for people in the U.S. . . .

So I have 3 activated phones, An Android S5 for Android testing, An Apple 6 plus for iOS testing and I have a Samsung S3 that I use for my Smart Hub and my IoT OTG hub that I always leave at home, this allows me to Open my garage automatically when I enter my Geofence zone, open the garage from anywhere in the world, turn on and off lights from anywhere in the world, control my outlets from anywhere in the world. Also by using a wireless phone this gives me the ability to be “off the grid”, off the internet at least to reduce the ability of hackers to try and hack my home automation.

Well today T-Mobile just added a FREE, YES FREE, third phone line to their unlimited plan.
So if you sign up for their unlimited plan you can have what I have but only have to pay for 2 of the phone lines!

Engadget: T-Mobile upgrades its unlimited plan again to one-up AT&T

It’s Official! 300 Downloads!

Can’t tell who (It’s actually 301), I’m going to give it to Germany, they have been on a tear. But it could have been Spain or Sweden too, so I won’t forget you either.

Bonus!

So I have 3 activated phones, An Android S5 for Android testing, An Apple 6 plus for iOS testing and I have a Samsung S3 that I use for my Smart Hub and my IoT OTG hub that I always leave at home, this allows me to Open my garage automatically when I enter my Geofence zone, open the garage from anywhere in the world, turn on and off lights from anywhere in the world, control my outlets from anywhere in the world. Also by using a wireless phone this gives me the ability to be “off the grid”, off the internet at least to reduce the ability of hackers to try and hack my home automation.

Well today T-Mobile just added a FREE, YES FREE, third phone line to their unlimited plan.
So if you sign up for their unlimited plan you can have what I have but only have to pay for 2 of the phone lines!

Engadget: T-Mobile upgrades its unlimited plan again to one-up AT&T

Lenovo to integrate Amazon Alexa

No offense to Lenovo, but they are kind of at the bottom of the pile and Android people don’t pay for a lot of things. Love the idea of add-ons but you need a lot of people to “spread the word”

Lenovo

You don’t need all that extra junk anyway if you want to make your house a smart home all you need is Pi Voice Command or IoT OTG,Raspberry Pi’s and ANY Android phone without any extras.

They shouldn’t feel too bad, all the car companies adding Alexa to their cars is going to end up being a waste of time (Think 8-Track), when all you need is IoT OTG, or Home Automation Remote, or any of the Smart Watch Cloud versions I will be releasing in the very near future and you can control your home from ANYWHERE not just when you are in YOUR car, but when you are in a Uber, Rental Car, Lyft, Taxi, Train, Subway. And because Alexa only supports one linked account, only YOU can use the one in your car.

Life in Pieces – Smart Home – was HILARIOUS!

The mole man was awesome! “oops, I woke her up” best line of the whole show.

Thanks for not giving him a blog! (You can kick yourself now, or I could hire the guy from Criminal Minds to do it, Now I see why he did it)

“at least we got it speaking english again” my second favorite.

I REALLY wanted one of those door locks but the reviews I read were not good, so luckily I found the garage door option.

Loved the thermostat part, don’t have one of those either, seems like remote controlling how fast your grass grows. (You want it to grow in 3 days or 4?) Although a co-worker of mine had one and he would wake up to a 50 degree house because they pushed updates in the middle of winter.

The music mix was good, I when speaking about my device we call her valdermort (she who’s name must not be spoken) to avoid accidents.

And finally the sprinklers, it does add dramatic effect, but I’m guessing they were referring to the smoke alarm. I have/had one of those, I was sitting in the basement and all of a sudden “Heads up! there’s smoke in the basement.” . . . Uhhhh no, there is not smoke in the basement I am right here! “Heads up! there’s smoke in the basement alarm will sound in 5 . 4 . 3 . 2 . 1 WWWAAAAAAAAAAAAAAAAAAAHHHHHHHHHHHH!!!!!!!” OK push the button!!!! “This alarm can not be disabled!” and then it hits you . . . This thing has a UNREMOVABLE TOXIC 60 year battery in it, NOW what am I going to do? I can’t smash it, nuclear waste will come out, it won’t disable, I can’t put it outside or the neighbors will call the fire department, I can’t throw it away, it’s got nuclear waste in it. Well it belongs in the trash so lets burry it there. There that worked! Whew! Then trash day comes . . . taking the trash barrel out to the curb, “what is that sound?” “who is talking?” “where is it coming from?” “Sounds like the trash?” “oh, crap! if I would have forgot about it and thrown it away, no harm, no foul.” Now I have to take it out and keep it under our deck for 30 years until the half life is up and hopefully it will be a more defective than normal one and won’t work.

300 Downloads!

. . . Almost 293 actually, but it looks promising!

To celebrate I went out an bought a Apple Watch, I like it, a VERY close second to the ASUS Zen Watch. Of course the Asus wins because of Android’s ability to integrate with voice recognition.

Alexa Who?

Don’t worry! I’m getting you something too! Ok, it’s not so much as a gift as an option to buy! Doesn’t that sound wonderful?

So anyway, I am going to work on a watch app like my Android Pi Wear Control App

Probably be done by this weekend, but let’s say next weekend to be safe.

300 Downloads, time for a look back, First I would like to thank AMC Theaters, without your lack of confidence I don’t know if I would have released aN iOS app, I probably would, it just would have been later.

Next Finland, Welcome! Hope to see more of ya!

How about some numbers! Germany, you are KICKING IT! and France you aren’t too far behind!

The US still leads for a country, but compared to the rest of the world it isn’t even close. Very surprising for me, I guess that $80 I spent on car magnets was probably a waste, unless you can see them in Germany and France, then BEST INVESTMENT EVER!

Total: 293

United States: 79
Germany: 39
France: 32
UK: 17 (I thought you would be second)
Canada: 15 (Aw Jeeze, a pleasant surprise!)

and a bunch of other countries someone from Kansas would never expect, thank you too!

My GOD! Look what you guys have done to me! Turned me into an Apple Fan Boy!

Thought I would show you a real power machine!

In case you missed it Pi Wear Control is a GO!

But I thought I would show you what kind of power it takes to make my Smart Hub app work.

Here is what I use to test the app:

I can’t believe people pay $150 for a STARTER kit with the Hue Light Bulbs.

The speaker is trashed, so I would like to replace it with the $20 Kyocera phone I bought, but then I don’t know what I could use this phone for so it stays in production.

Pi Wear Control is a GO!

Pi Wear Control

Google Play Store

Control everything you can on all my apps from your watch . . . FOR FREE!

Install the app on your phone and the watch app will install automatically. Configure your options from the phone and a list will be created on your watch. You can launch the app from your watch and it will launch it on the phone when you click the start button this will download the list of commands you created on the phone to your watch allowing you to turn on or off devices, run a linked list of devices, or start a timed function for a device. This really works well from bed or when you are on the couch.

To delete commands, rename commands, or create link lists go to the settings menu on the phone and click Command List, from there long press items to get a list of functions you can perform.

Here is a video of how it works. The version in the video is actually a cloud version which I will release soon, but for Pi Wear Control your phone takes the place of the Smart Hub and you can only use the app when you are at home.

If this is your first time to my site, if you are on a phone you can click on the menu button and go to Home Automation, this will give you all the information you need to configure the Raspberry Pi or make your own Smart Devices (Outlets, Power Strips, Light Switches, Wall Warts).

Or go here

Pi Wear Control coming soon!

Finishing up Pi Wear Control app for Android.

Update: Finished with app, but WOW! is Google’s Wear .apk release process a cluster!
Supposedly you build the phone app and it imbeds the wear app in it, nope, it just gives you the wear app on the phone??????? So now I see you are supposed to give the phone app and the wear app the same .apk name, but different version numbers and ?????? So hopefully get this figured out and the app posted over the weekend. Was thinking about making it free until Google stepped in, so we will see.

Rant redacted . . .

Wasn’t that bad had to edit Gradle in Phone app to point to Wear play services and update a couple resource files to get the gradle to compile. Apk now has both files and even uninstalls the app off the watch! That didn’t happen when I was debugging.

So probably still going to be a free app.

On your phone you will create a device like all my apps and this will create 2 list items on your watch, one for turning on your device and one for turning off the device.

You will be able to launch the app on your phone from your watch, this version will only work when you are on your Wi-Fi network, will make a cloud version in the not too distant future.

Should support Remote(wall wart) devices, Smart Outlets, Smart Power Strips, Smart Light Switches, timers and Normally on and Normally off configurations, deleting and renaming. Link lists eventually.

Tested on a ASUS Zen Watch.