Reply
Thread Tools
Posts: 1,313 | Thanked: 2,977 times | Joined on Jun 2011 @ Finland
#1091
Originally Posted by ajalkane View Post
Thank you.

Definitely a bug. I will look into fixing it tonight.
Schturman,

please look into the beta version available here:

http://talk.maemo.org/showpost.php?p...postcount=1022

Let me know if using that version solves your problem - I hope so.
__________________
My N9/N950 projects:
 

The Following User Says Thank You to ajalkane For This Useful Post:
Posts: 1,313 | Thanked: 2,977 times | Joined on Jun 2011 @ Finland
#1092
Originally Posted by lorenzo View Post
am i asking too much if you can add tactile feedback to clock?
Your wish has been granted. The next version will have haptic feedback. I couldn't make it as "smooth" as in the stock app, the QML interface seemed not able for it (or at least I couldn't), but it's pretty close - a bit stronger though.

In retrospect I wished I hadn't started doing it, for a non-paying job I used too long iterating and testing what values would work well. But now that it's done I hope people will find it useful :-).
__________________
My N9/N950 projects:
 

The Following 6 Users Say Thank You to ajalkane For This Useful Post:
Schturman's Avatar
Posts: 5,339 | Thanked: 4,133 times | Joined on Jan 2010 @ Israel
#1093
Originally Posted by ajalkane View Post
Schturman,

please look into the beta version available here:

http://talk.maemo.org/showpost.php?p...postcount=1022

Let me know if using that version solves your problem - I hope so.
It looks like it work now, thank you very much
 

The Following 3 Users Say Thank You to Schturman For This Useful Post:
Posts: 1,313 | Thanked: 2,977 times | Joined on Jun 2011 @ Finland
#1094
Originally Posted by Schturman View Post
It looks like it work now, thank you very much
In that case, let me be as bold to push the next minor update to Nokia Store.

ProfileMatic 2.0.1 changelog:
- Idle condition fix
- Haptics feedback on time selector

While I am in writing mood, I can share my preliminary plans for version 2.1.0:
- Action to set device volume (already implemented and I'm testing it)
- Action to set alarms (this is still a big question mark, but I would like to have it)

I'm still in writing mood so here are my initial plans for versions for 2.2.0 and beyond:
- Localisation support (ie. diffferent language translations for ProfileMatic)
- Conditions for caller (in particular, I'd like to override profile for certain known callers)

The former is more likely to happen first than the latter... just because of the amount of work I suspect is needed.
__________________
My N9/N950 projects:
 

The Following 15 Users Say Thank You to ajalkane For This Useful Post:
Posts: 1,313 | Thanked: 2,977 times | Joined on Jun 2011 @ Finland
#1095
I have tried getting Alarm action to work. It mostly works, but I haven't gotten the Snooze functionality to work as intended. I would like both users and developers input on this, if you want to help you can try the version available here: http://talk.maemo.org/showpost.php?p...postcount=1022

I need two kinds of opinions/suggestinos:
- Developers: Any ideas how to fix it?
- Users: Is it too broken to be included, or would you rather live with this version than not having it at all?

The alarm works well otherwise, except for the Snooze functionality. When you press Snooze, the alarm is displayed again in few seconds. I am trying to get it displayed after 10 minutes like the default - but I haven't been able to get it to work.

I'd be okay with disabling the Snooze button altogether, but unfortunately that doesn't seem to work either.

Developers: here is the code that I've tried, any ideas?

Code:
void
HarmattanPlatformUtil::scheduleAlarm(const QString &title, int alarmInSeconds) {
    // Mostly copied from example given by Cristi Boian here: http://www.cristiboian.com/2012/05/setting-alarms-in-harmattan-nokia-n9.html
    IFDEBUG(qDebug() << "HarmattanPlatformUtil::scheduleAlarm title"
            << title << "alarmInSeconds" << alarmInSeconds);

    Maemo::Timed::Event event;
    event.setAttribute("APPLICATION", "ProfileMatic");
    event.setAttribute("TITLE", title);
    event.setAttribute("PLUGIN", "libclockalarm");
    event.setBootFlag();
    event.setAlarmFlag();
    event.setReminderFlag();
    // Try to hide the snooze button - does not work
    event.hideSnoozeButton1();
    // Hard code snooze for 10 minutes - does not work
    event.setTimeoutSnooze(10 * 60);
    // set the alarm in given amount of seconds from now - at least this seems to work
    event.setTicker(QDateTime::currentDateTime().toTime_t() + alarmInSeconds);

    // timed interface setup
    Maemo::Timed::Interface timedIface;
    if(!timedIface.isValid()) {
       IFDEBUG(qDebug() << "HarmattanPlatformUtil::scheduleAlarm Invalid timed interface:" << timedIface.lastError());
       return;
    }
    // add the event
    QDBusReply<uint> reply = timedIface.add_event_sync(event);
    if(!reply.isValid()) {
       IFDEBUG(qDebug() << "HarmattanPlatformUtil::scheduleAlarm Adding event failed:" << reply.error().message());
       return;
    }
    IFDEBUG(qDebug() << "HarmattanPlatformUtil::scheduleAlarm Added event with cookie" << reply.value());
}
__________________
My N9/N950 projects:
 

The Following 2 Users Say Thank You to ajalkane For This Useful Post:
Posts: 277 | Thanked: 319 times | Joined on Jan 2010
#1096
For some reason there isn't an alarm action as an option in the linked version. Did you upload a wrong version or is there something more serious going on?

It says version 2.0.1 in the about section. I even tried a reboot.
 

The Following User Says Thank You to slarti For This Useful Post:
Posts: 1,313 | Thanked: 2,977 times | Joined on Jun 2011 @ Finland
#1097
Originally Posted by slarti View Post
For some reason there isn't an alarm action as an option in the linked version. Did you upload a wrong version or is there something more serious going on?

It says version 2.0.1 in the about section. I even tried a reboot.
I'm sorry. I must have been too stoked writing everything that I forgot the main thing, updating the attachment. Please try again, it should now be there:

http://talk.maemo.org/showpost.php?p...postcount=1022
__________________
My N9/N950 projects:
 

The Following User Says Thank You to ajalkane For This Useful Post:
Moderator | Posts: 6,215 | Thanked: 6,400 times | Joined on Nov 2011
#1098
ajalkane,

For the bme restart I've been using a dbus call to display the bme stop/start output so that I do know for sure when bme has been restarted; not sure if its of any use:

Code:
#!/bin/sh

stop=$(/sbin/stop bme)
dbus-send --print-reply --dest=com.meego.core.MNotificationManager/notificationmanager com.meego.core.MNotificationManager.addNotification uint32:0 uint32:0 string:'device' string:'' string:"$stop" string:'' string:'' uint32:0
sleep 10
start=$(/sbin/start bme)
dbus-send --print-reply --dest=com.meego.core.MNotificationManager/notificationmanager com.meego.core.MNotificationManager.addNotification uint32:0 uint32:0 string:'device' string:'' string:"$start" string:'' string:'' uint32:0
I've tested more and the first sleep 10 seems not too necessary for me at least...
 

The Following 3 Users Say Thank You to thedead1440 For This Useful Post:
Morpog's Avatar
Posts: 956 | Thanked: 2,628 times | Joined on Nov 2011
#1099
As you hit version 2.0, I donated a 2nd time.

Thanks for this great app and ongoing support!
 
Posts: 1,313 | Thanked: 2,977 times | Joined on Jun 2011 @ Finland
#1100
Originally Posted by thedead1440 View Post
ajalkane,

For the bme restart I've been using a dbus call to display the bme stop/start output so that I do know for sure when bme has been restarted; not sure if its of any use:

Code:
#!/bin/sh

stop=$(/sbin/stop bme)
dbus-send --print-reply --dest=com.meego.core.MNotificationManager/notificationmanager com.meego.core.MNotificationManager.addNotification uint32:0 uint32:0 string:'device' string:'' string:"$stop" string:'' string:'' uint32:0
sleep 10
start=$(/sbin/start bme)
dbus-send --print-reply --dest=com.meego.core.MNotificationManager/notificationmanager com.meego.core.MNotificationManager.addNotification uint32:0 uint32:0 string:'device' string:'' string:"$start" string:'' string:'' uint32:0
I've tested more and the first sleep 10 seems not too necessary for me at least...
Seems good. I'll amend the instructions with that improvement!

Back then when I tested it, both sleeps seemed to be necessary - and even then it sometimes failed to restore battery.
__________________
My N9/N950 projects:
 

The Following User Says Thank You to ajalkane For This Useful Post:
Reply


 
Forum Jump


All times are GMT. The time now is 12:57.