Notices


Reply
Thread Tools
Posts: 53 | Thanked: 20 times | Joined on Feb 2010
#91
I updated to 0.1.8-2 it starts fine now but when i choose new event (switch profile) it doesn't give me the ability to choose the profile when i click on the icon !
 
Posts: 539 | Thanked: 165 times | Joined on Feb 2010 @ Berlin, Germany
#92
Can anyone help me in setting up an command line to go online? I'd like to open an internet connection (via gprs/umts, not WLAN) every hour using alarmed. Disconnection goes automatically with autodisconnect but I'm looking for a script to open the connection. All my widgets are configured to fetch data when already online and I don't want to reconfigure one of them but would like to have a single place where to control the connection.
 
Posts: 313 | Thanked: 247 times | Joined on Jan 2010 @ USA
#93
Originally Posted by x-lette View Post
Can anyone help me in setting up an command line to go online? I'd like to open an internet connection (via gprs/umts, not WLAN) every hour using alarmed. Disconnection goes automatically with autodisconnect but I'm looking for a script to open the connection. All my widgets are configured to fetch data when already online and I don't want to reconfigure one of them but would like to have a single place where to control the connection.

http://wiki.maemo.org/Phone_control#...ved_connection
 

The Following User Says Thank You to dsawhney For This Useful Post:
Posts: 539 | Thanked: 165 times | Joined on Feb 2010 @ Berlin, Germany
#94
Thnaks for this hint! I already looked at the very useful scripts of the DCE-Widget Wiki but there was no such command listed.
 
Posts: 6 | Thanked: 0 times | Joined on Mar 2010 @ wigan uk
#95
hi can someone please help me set up a command line to reset my gprs counter on the 4th of every month. as the app doesn't seem todo it for me. Im kinda new to all this so please keep it simple lol

thanks in advance
 
ndi's Avatar
Posts: 2,050 | Thanked: 1,425 times | Joined on Dec 2009 @ Bucharest
#96
Set an event

* Built-in function (bottom lets you select reset counter)
* Set "Once a month)
* Set 4th

Good to go, in theory.
__________________
N900 dead and Nokia no longer replaces them. Thanks for all the fish.

Keep the forums clean: use "Thanks" button instead of the thank you post.
 
Posts: 729 | Thanked: 155 times | Joined on Dec 2009
#97
Would it be possible to add native support for Erminig-NG? Would be easier then the new command line support...
 
jcompagner's Avatar
Posts: 290 | Thanked: 165 times | Joined on Sep 2009
#98
Originally Posted by DaSilva View Post
Would it be possible to add native support for Erminig-NG? Would be easier then the new command line support...


lookup a few messages in this forum post.
This is already discussed quite a bit.

I agree it would be nice to have some integration. Which way it doesnt matter to me
for example Erminig could also push things to alarmed so that we could show them there
or a Alarmed "plugin" could query Erminig (erminig -l) and then show that result and give options to sync those calendars with erminig --sync-profile=id

but for now it works fine through the execute command
 

The Following User Says Thank You to jcompagner For This Useful Post:
Posts: 968 | Thanked: 974 times | Joined on Nov 2008 @ Ohio
#99
Originally Posted by DaSilva View Post
Would it be possible to add native support for Erminig-NG? Would be easier then the new command line support...
It's really pretty easy. Just select command execution, in the command line put:

erminig --sync-all

or

erminig --sync-profile=1,2,3,etc

profiles # can be found by running
erminig -l
from xterm (as user, not root)
__________________
*Consumer*, not a developer! I apologize for any inconvenience.
My script to backup /home and /opt
Samsung Galaxy S Vibrant, Huawei S7, N900(retired), N800(retired)
 

The Following User Says Thank You to lemmyslender For This Useful Post:
evad's Avatar
Posts: 354 | Thanked: 151 times | Joined on Mar 2008 @ London (UK) / Zielona Góra (PL)
#100
Installed alarmed 0.1.8-2 yesterday with great excitement to finally have tweakr profiles automatically switched, but unfortunately it doesn't seem to work, similarly to user skalogre couple of pages back in this thread. Here's my alarm_queue.ini:

Code:
[#00000b54]
cookie: 2900
trigger: 1269844500
flags: 131072
alarm_appid: Rano
alarm_time: 1269562202
alarm_tm.tm_year: -1
alarm_tm.tm_mon: -1
alarm_tm.tm_mday: -1
alarm_tm.tm_hour: -1
alarm_tm.tm_min: -1
alarm_tm.tm_wday: -1
alarm_tm.tm_yday: -1
alarm_tm.tm_isdst: -1
recur_count: -1
action_cnt: 1
recurrence_cnt: 1
action0.flags: 36
action0.exec_command: /opt/alarmed/tweakrprofileswitcher.sh Dyskretny
recurrence_tab0.mask_min: 34359738368
recurrence_tab0.mask_hour: 128
recurrence_tab0.mask_wday: 62
recurrence_tab0.mask_mon: 4095
However, when I manually execute tweakrprofileswitcher.sh via terminal, I get profile changed:

Code:
user@n900:/var/cache/alarmd$ sh /opt/alarmed/tweakrprofileswitcher.sh Dyskretny
method return sender=:1.1 -> dest=:1.511 reply_serial=2
   boolean true
method return sender=:1.1 -> dest=:1.512 reply_serial=2
   boolean true
method return sender=:1.1 -> dest=:1.513 reply_serial=2
   boolean true
method return sender=:1.1 -> dest=:1.514 reply_serial=2
   boolean true
method return sender=:1.1 -> dest=:1.515 reply_serial=2
   boolean true
method return sender=:1.1 -> dest=:1.516 reply_serial=2
   boolean true
method return sender=:1.1 -> dest=:1.517 reply_serial=2
   boolean true
method return sender=:1.1 -> dest=:1.518 reply_serial=2
   boolean true
method return sender=:1.1 -> dest=:1.519 reply_serial=2
   boolean true
method return sender=:1.1 -> dest=:1.520 reply_serial=2
   boolean true
method return sender=:1.1 -> dest=:1.521 reply_serial=2
   boolean true
method return sender=:1.1 -> dest=:1.522 reply_serial=2
   boolean true
method return sender=:1.1 -> dest=:1.523 reply_serial=2
   boolean true
method return sender=:1.1 -> dest=:1.524 reply_serial=2
   boolean true
method return sender=:1.1 -> dest=:1.525 reply_serial=2
   boolean true
method return sender=:1.1 -> dest=:1.526 reply_serial=2
   boolean true
Note sh in the beginning of command - without that it won't work - perhaps that's the missing part in alarm_queue.ini?

Another thing I wanted use alarmed for is hourly synchronisation using SyncEvolution client. SyncEvolution client itself allows to set daily sync schedule, which works OK and it does create following entry in alarm_queue.ini:

Code:
[#00000ade]
cookie: 2782
trigger: 1269625800
title: Synchronization with goosync
flags: 131072
alarm_appid: syncevolution
alarm_time: 1269247710
alarm_tm.tm_year: -1
alarm_tm.tm_mon: -1
alarm_tm.tm_mday: -1
alarm_tm.tm_hour: -1
alarm_tm.tm_min: -1
alarm_tm.tm_wday: -1
alarm_tm.tm_yday: -1
alarm_tm.tm_isdst: -1
recur_count: -1
action_cnt: 1
recurrence_cnt: 1
action0.flags: 2084
action0.exec_command: /opt/syncevolution/sync.py --quiet goosync
recurrence_tab0.mask_min: 1125899906842624
recurrence_tab0.mask_hour: 131072
So following that lead, I've created "custom command" entry in alarmed, typing /opt/syncevolution/sync.py --quiet goosync as that command. Again - it doesn't seem to work either at specified time. :( Here's alarm_queue.ini entry created by alarmed:

Code:
[#00000b6f]
cookie: 2927
trigger: 1269600600
flags: 131072
alarm_appid: GooSync
alarm_time: 1269597000
alarm_tm.tm_year: -1
alarm_tm.tm_mon: -1
alarm_tm.tm_mday: -1
alarm_tm.tm_hour: -1
alarm_tm.tm_min: -1
alarm_tm.tm_wday: -1
alarm_tm.tm_yday: -1
alarm_tm.tm_isdst: -1
recur_count: -1
action_cnt: 1
recurrence_cnt: 1
action0.flags: 36
action0.exec_command: /bin/ash -c '/opt/syncevolution/sync.py --quiet goosync'
recurrence_tab0.mask_min: 1125899906842624
recurrence_tab0.mask_hour: 16777215
However, when I run /bin/ash -c '/opt/syncevolution/sync.py --quiet goosync' manually as user in terminal - it works OK.

All in all, alarmed has an excellent potential to become one of my favourite killer-apps, if it only worked as it should. :) All suggestions welcome, as I'm striving to get both automated profiles and sync finally set on my N900.
__________________
Dawid 'evad' Lorenz * http://dawid.lorenz.co
_______________________________________________

Last edited by evad; 2010-03-26 at 10:35. Reason: Typo
 

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

Thread Tools

 
Forum Jump


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