Für den Inhalt dieser Seite ist eine neuere Version von Adobe Flash Player erforderlich.

Adobe Flash Player herunterladen


AppleScript


3
Jan 10

Apple ‘Magic Wand’ Remote System – homebuilt

I just saw the following patent of apple: Apple ‘Magic Wand’ Remote System Patent for Apple TV Resurfaces

Took me 2 minutes to code.
A accelerometer recognizes gestures and sends IR signals. These signals trigger applescripts to emulate a keytroke.

Yeah i know. Who the hell owns a magic wand..

Heghlu’meH QaQ jajvam!

This is the applescript I use to trigger my actions.

on kymera(gesture)

	--say gesture

	if gesture is "swing" then
		tvpower()
	end if

	if gesture is "up" then
		tell application "System Events"
			key code 53
		end tell
	end if

	if gesture is "down" then
		tell application "System Events"
			key code 36
		end tell
	end if

	if gesture is "rotate left" then
		tell application "System Events"
			key code 126
		end tell
	end if

	if gesture is "rotate right" then
		tell application "System Events"
			key code 125
		end tell
	end if

	if gesture is "tap" then
	end if
	if gesture is "sidetap" then

	end if
	if gesture is "swing right" then
		tell application "System Events"
			key code 124
		end tell
	end if
	if gesture is "swing left" then
		tell application "System Events"
			key code 123
		end tell
	end if
end kymera

I use iRed by Robert Fischer to assign a applescript to a IR Signal.

set HAL to load script "Macintosh HD4:HAL:Preferences:31Prototypes.scpt" as alias
	tell HAL
		kymera("down")
	end tell

2
Dec 09

colorWheel – Dashboard Widget

This is my colorWheel Dashboard Widget. You can change the color of LEDs with it.
See this post for more info and a video.

colorWheel Dashboard Widget


1
Dec 09

colorWheel: change the color of RGB LEDs

This is a demo of my colorWheel prototype.

Since I bought the Philips Ambilight I was frustrated because I was not able to change the color with my Mac or the iPhone. I now bought some IR controllable LEDs and integrated them into my HAL9031 API.

The iPhone App simply uses the build in accelerometer to rotate the colorWheel selection.
Tap the screen and the LEDs change their color!

The Flash Multitouch App changes the color of the LEDs and of the animation that loops in the background.

// The sound you can hear is programmed. It was generated by Flash & Midi.


25
Nov 09

HAL9031: Demovideo


11
Nov 09

HAL9031: Presenting an artificial intelligence

Welcome to the future.

Science has always been influenced by science fiction. Developments are often inspired by the inconceivably future technology found in literature and movies.

Inspired by Kubricks Movie 2001 – A Space Odyssey and a lot of Star-Trek I am proud to announce HAL9031.
In the past 3 years I have been working on HAL.


HAL was planned as an artificial intelligence that could learn from human behavior to support humans in their daily life.

The catchment area of HAL is unlimited:

  • HAL has access to motion sensors. The system knows where you are
  • HAL can control different Macintoshs in a network
  • HAL can control Infra-Red based devices
  • HAL can control light and electric circuits
  • HAL can send audio via wireless-lan
  • HAL can trigger shell commands
  • HAL can notice RFID events
  • HAL is able to speak. (By using the native Mac OS X speech synthesizers and wireless-lan)
  • HAL can run on several touchscreen panels for local input.
  • HAL is also available on iPhone, providing a input interface for communication.
  • HAL is the next generation of home automation.
  • HAL is a boardcomputer for modern living.
  • HAL is different.
  • HAL is intelligent.

HAL is constantly learning from human behavior.

To know how long a person is inside one room the AI differentiates between a space change or activity in a room.
The AI is able to recognize if a room inside a house is “still needed“.

To know if a room is still needed the AI has to learn what a person is doing. HAL has access to a lot of informations like e.g. the position of the sun, how long you usually sleep or when was the last time you ate something.

Intelligence means to reduce, relate and evaluate the given facts.

The AI uses motion profiles to recognize patterns in daily tasks to so communicate what HAL “thinks” a person is doing.

At the Moment HAL can differentiate between the following situations:

  • you fall asleep
  • you wake up
  • you are not at home
  • you come back home
  • you are under the shower
  • you are on the toilet
  • you are working
  • you are reading
  • you are running around in your house
  • you stay at one position
  • you have visitors

If a situation is recognized the AI adjusts itself to provide useful support.

Example:

When you wake up HAL recognizes the moment you enter the bathroom. Music fades in. If you just woke up it is very probably that you use your shower. If you are still at the bathroom after a couple of minutes the shower mode is confirmed. The AI now evaluate it’s decision as correct.

The music you are listening to gets louder (it’s loud under the shower, adjust the volume so that the user can hear to sound).
Every 5 minutes the HAL announces the current time so that you don’t get lost under the shower.

When you are listening to music HAL recognizes your movement and decides automatically to send your music to (multiple) rooms you entered. Exactly like the light, the AI decides when it makes sense to turn it off.

HAL can also wake you up. There is no need for a bell that shocks you in the morning. With the native HAL app on the iPhone a wake up time can easily be submitted to HAL.
HAL loves Macintosh. (“Only Macintosh was designed to function perfectly” (Quote HAL9000, Apple AD))
HAL can communicate with nearly every program on a mac, your wake up time e.g. is also saved inside iCal!

Videos are coming soon, stay tuned! Don’t you Dave?


7
Oct 09

Control different lights with the iPhone based on your position

This is the HAL iPhone App.

It is based on the HAL9031 API

http://code.google.com/p/hal9031/

It basically triggers AppleScripts to control lights via X10.

Multi-Touch Features and the User-tracking Class of HAL9031 make it smarter as the interface may look.

Based on the position of the User the app only controls the device that is near the user. If there are more lights in one room you can trigger them by pressing the light button with more than one finger.

Another example of user-location-based programming is the HAL IR (infra red) module. You can send IR signals to different rooms. If you are near the TV the Power button toggels the state of the device that is in the same room as you are.


24
Jun 09

lighTube – RFID Light Dimming Controller

lighTube is a voume knobs inspired remote control interface study

lighTube is a haptic device
replacing static light switches
which are placed at walls

lighTube contains 5 RFID chips that are used for tracking rotation.

1 RED, BOTTOM: turn off the light.
1 GREEN, TOP: turn on the light.
3 are for the rotation tracking left / right.

If you rotate the tube by 90° it can be handled like a volume knob.
Rotation to the left dims the light;
rotate it right and it brightens the light!