View Single Post
Posts: 16 | Thanked: 111 times | Joined on Jul 2010
#1
Hi everybody.

We created small app for school project. App can create profiles/situations with conditions and actions. You can combine conditions and actions to create different profiles/situations. Actions and conditions are based on Qt plugin system. App is opensource (BSD) and you can create new actions/conditions with Qt plugin system.
Actions can run some scripts, call objects with D-BUS, change ring profiles etc.
Problem is we don't have time to working and maintain this app because we have lot of others projects.

Source code and packages you are here: https://gitorious.org/maemo-profiler
Some conditions packages depend on old libqtm-12 so don't install BlueToothState, Battery charging, Wifi status, batery status, GpsLocation, WiFiNetwork. If app don't start then start app from console ( /opt/Profiler/bin/Profiler ) and you will see debug info.

Screenshoots:
1) you can activate profiles, for rename profile click on name and hold, for edit click in middle of profile next to name of profile


2) Edit - you can add conditions and actions. When you click on condition/action you can edit some settings.


3) Actions/condition - choose plugin to add into profile


We created some examples plugins.

List of actions:
  1. ActivateScreen- it will turn on N900 screen
  2. DialogNotification - big maemo notification with message
  3. Notification - small maemo notification with message
  4. ProfilePluginQML-change silent general profiles
  5. ScreenOn- screen stays on
  6. Vibrations

List of conditions:
  1. BatteryCharging- you can choose-charging or not charging condition
  2. BatteryStatus- depend on selected battery level
  3. BlueToothState - you can choose bluetooth on off condition
  4. CurrentProfile - you can choose profile condition
  5. GpsLocation - you can set coordinates and radius ( no map soory)
  6. IncomingCall- true when incomming call
  7. LightPluginQML-true for selected and darker light levels
  8. TimePluginQML- true for period of time
  9. WiFiNetwork- true when connected to wifi with selected SSID

All conditions in profile need to be true to start actions.

Little example:
Profile "Quiet" - condition (TimePluginQML- 18.00-23.00)
- action ( ProfilePluginQML - silent)
-- it will set silent profile for 18.00-23.00.


--Instalation for N900

You will need to install qt-components, qt mobility 1.2
In console(with sudo): apt-get install qt4-dev-tools qt-components-10 qt-components-base-theme libqtm-12

You can click on deb packeges in file manager or in Console
You can install app with this command.
dpkg -i profiler_1_0_0_armel.deb

And plugins ...
dpk -i <plugin>

Enjoy
 

The Following 31 Users Say Thank You to Bzouk For This Useful Post: