Laptop

class to allow you to access various internal sensors of your laptop.

Inherits from:: Object

Laptop allows you to access the various internal sensors of your laptop, such as your keyboard, touchpad, but also the status of the running processes and temperature sensors. You can subclass this class to add sensors specific to your laptop (see Thinkpad for an example).
This class uses the external program motiontrackosc to access the laptop's camera. This program is available from www.nescivi.nl.
It uses the program sensors to check the temperature and fan readings (only tested on Linux).
It uses ps to check the process statistics, which is probably POSIX specific too.

Creation / Class Methods

*new
Create a new instance of Laptop

Accessing Instance and Class Variables

init
Initialization of any laptop. Processes, temperature, camera.
myInit
Laptop specific initialization. Should be overloaded in subclasses.
internals
An instance of SWDataNetwork, containing all the data for the laptop.
at(key)
Shortcut to access a key in the internals datanetwork.
initTouchpad
Initializes the touchpad. It looks at touchpadID for the right GeneralHID.findBy array.
touchpadID
touchpadID_
An array specifying the location of the touchpad HID (see GeneralHID to find out how to find this Array).
touchpad
The touchpad GeneralHIDDevice.
initKeyboard
Initializes the touchpad. It looks at touchpadID for the right GeneralHID.findBy array.
keyboardID
keyboardID_
An array specifying the location of the touchpad HID (see GeneralHID to find out how to find this Array).
keyboard
The keyboard GeneralHIDDevice.
key
Shortcut to get keyboard
initProcesses
Initialize reading the process statistics.
processes
The processes that will be checked.
procStats
The process statistics
processWatcher
SkipJack that checks the process statistics.
initTemperature
Initialize the temperature readings. This calls the external program sensors.
tempWatcher
SkipJack that checks the temperature readings.
initCamera
Initializes the camera by starting MotionTrackOSC.
camera
The instance of the class MotionTrackOSC, interacting with the external program.

This helpfile was created with the class HelpFile2