maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   MeeGo / Harmattan (https://talk.maemo.org/forumdisplay.php?f=45)
-   -   [Announce] ProfileMatic for Harmattan (https://talk.maemo.org/showthread.php?t=79642)

ajalkane 2012-06-01 13:24

Re: [Announce/WIP] ProfileMatic for Harmattan
 
Quote:

Originally Posted by Hariainm (Post 1215917)
Hello guys! first of all, thanks for creating this useful aplication, and second, yes, a request for help :D
Accuweather has some problem not udating in events feed, so in the related thread about this problem, they suggest to execute this code
Code:

/sbin/initctl restart xsession/msyncd
but sadly this doesn't work for me, i have a rule when all days from 1:00 - 11:00 enter flight mode, silent and power saving on (restore all this to previous profile) and the above code when this rule deactivate. All the previous actions work fine, but i can't get accuweather to work, unless i open the app, but i don't know how to run it from terminal, ps or top doesn't help me much.
Can anyone of you have a clue about how to get accuweather to update by himself?

You can't use initctl as it requires devel-su credentials.

Luckily for you, msyncd process is running as user. So you can just kill it and it will be restarted.

So put this to custom action:

Code:

pkill msyncd

Hariainm 2012-06-04 19:27

Re: [Announce/WIP] ProfileMatic for Harmattan
 
Ok, new one, everytime i reboot my phone, it shows a warning about fligh mode missing credentials or something like that, and telling me to reinstall the app. i have done it a few times, but problem persists if i switch my phone off.

jalyst 2012-06-05 05:38

Re: [Announce/WIP] ProfileMatic for Harmattan
 
Quote:

Originally Posted by Hariainm (Post 1217426)
Ok, new one, everytime i reboot my phone, it shows a warning about fligh mode missing credentials or something like that, and telling me to reinstall the app. i have done it a few times, but problem persists if i switch my phone off.

http://talk.maemo.org/showthread.php...41#post1210341

godofwar424 2012-06-05 10:40

Re: [Announce/WIP] ProfileMatic for Harmattan
 
@ajalkane

Any updates on the bugs I was talking about before?

ajalkane 2012-06-05 10:45

Re: [Announce/WIP] ProfileMatic for Harmattan
 
Quote:

Originally Posted by godofwar424 (Post 1217783)
@ajalkane

Any updates on the bugs I was talking about before?

I haven't had time to work on it yet. I should have in two weeks some free time to work on ProfileMatic, I hope I can check about detecting the on-going call then.

godofwar424 2012-06-05 13:56

Re: [Announce/WIP] ProfileMatic for Harmattan
 
Quote:

Originally Posted by ajalkane (Post 1217789)
I haven't had time to work on it yet. I should have in two weeks some free time to work on ProfileMatic, I hope I can check about detecting the on-going call then.

No rush, when you got time :)

masen 2012-06-07 20:37

Re: [Announce/WIP] ProfileMatic for Harmattan
 
Thanks for an excellent program. I've used it with cell-id on work, but now I use my NFC-enabled work-id for changing profile when getting to work. Thanks for the NFC feature. I have tags in my car for starting the drive app and musicplayer (don't know how to close the apps when touching the tag again but swipe is always there, anyone who knows I'd appreciate an advice). Since it's a beta I thought I'd give You some feedback. The program is quite stable but NFC feature is unstable in the sense that after rebooting I often (almost every time) need to switch the button for toggle conditions since it has changed to inactive after reboot. Hope You can fix this when You have spare time to work on this project.

ajalkane 2012-06-07 21:12

Re: [Announce/WIP] ProfileMatic for Harmattan
 
Quote:

Originally Posted by masen (Post 1219148)
I have tags in my car for starting the drive app and musicplayer (don't know how to close the apps when touching the tag again but swipe is always there, anyone who knows I'd appreciate an advice).

Find out the process name, then you can use Custom action and put "pkill processname" there.

Quote:

Since it's a beta I thought I'd give You some feedback. The program is quite stable but NFC feature is unstable in the sense that after rebooting I often (almost every time) need to switch the button for toggle conditions since it has changed to inactive after reboot. Hope You can fix this when You have spare time to work on this project.
Yes, thanks for the feedback. This one I noticed already myself and I've already fixed it in my own sources... but nevertheless, this kind of feedback is appreciated since I can't catch everything. So please report every malfunction however trivial it might seem - that's why I release the betas. Thanks!

ajalkane 2012-06-07 22:23

Re: [Announce/WIP] ProfileMatic for Harmattan
 
Okay, bad news about the NFC tags and if it's possible to get rid of the message if ProfileMatic matches the tag.... Seems like it's not possible.

There will always be some sort of dialog. At the minimum the system would show a dialog such as "ProfileMatic is registered to handle this type of NFC tag. Select Open to start the application". And the choices would be either "Open" or "Discard".

So as some annoying dialog would anyway be presented, I don't think it's worth to do anything beyond what the current beta does regarding NFC tags.

ajalkane 2012-06-08 19:34

Re: [Announce/WIP] ProfileMatic for Harmattan
 
I've found I'm using the NFC function a lot for different timers. For example, I have a NFC tag for alerting me when coffee has been brewing for 4 minutes, NFC tag for alerting me when eggs have been boiling for 10 minutes, etc...

So here's a little "hackish" thing how I've done it with ProfileMatic:

1) Install Egg Timer from Nokia Store (I used to use this manually before the NFC tags, but I'm fond of it's alert sound)
2) Create following script as /home/user/scripts/timer_alert.sh or in the place of your choosing:
Code:

#!/bin/sh

sleep "$1"
xdg-open /opt/offscr-eggtimer/eggtimer.mp3

2) Create a new rule for the timer in ProfileMatic
3) Add NFC condition to the NFC tag of your choosing to the new rule
4) Add a Custom action to that rule with the timeout in seconds until alert is sounded (in this example 4 minutes, aka 240 seconds):
Code:

sh /home/user/scripts/timer_alert.sh 240
After these settings you can tap on the tag and an alert is sounded after the specified seconds.

Now... This is fine for short timers. But if the needed timer would be a lot longer, say 90 minutes, I'd like to launch a program that showed the remaining time. Anyone know of an application that you can give command-line parameters to specify the countdown time before alert? Or an open source timer that I could contribute to?


All times are GMT. The time now is 22:02.

vBulletin® Version 3.8.8