maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   [Announce] "Alarmed" scheduling App (supports automatic GPRS data counter resetting) (https://talk.maemo.org/showthread.php?t=46594)

Tiboric 2011-02-06 14:23

Re: [Announce] "Alarmed" scheduling App (supports automatic GPRS data counter resetting)
 
This may seem like a ridiculous question but is there such a thing as a hidden alarm?
Because every night between about 01:15 and 03:40 my phone will automatically go into offline mode and then back to online mode afterwards but I can't find a alarm entry anywhere
But I do remember testing such an alarm so my work couldn't call me at night but can't remember which program I used, it's not much of a problem normally as I'm asleep so had forgotten about it but last night I wasn't and a saw it happen and now I want to stop it.
I'm stumped and any help will be appreciated.

nicolai 2011-02-06 14:56

Re: [Announce] "Alarmed" scheduling App (supports automatic GPRS data counter resetting)
 
alarms are stored in
/var/cache/alarmd/alarm_queue.ini
http://talk.maemo.org/showpost.php?p...&postcount=358

ForeverYoung 2011-02-06 15:09

Re: [Announce] "Alarmed" scheduling App (supports automatic GPRS data counter resetting)
 
Quote:

Originally Posted by shapeshifter (Post 937373)
So, as expected I finally have time again for things like this :)

I incorporated the two patches submitted so far and fixed a small bug, 2.0.1is now in extras-devel!

Thanks a lot for the contribution!

Why didn't you include this part of my patch? W/o it I can't save an event with non-english name.
Code:

--- /opt/alarmed/alarmed_gui.py 2011-02-06 15:22:23.000000000 +0300
+++ 1/alarmed/alarmed_gui.py 2011-02-01 23:34:57.000000000 +0300
@@ -563,9 +563,9 @@
        s = self.fields["schedules"]
        i = self.fields["intervals"]
        t = self.fields["types"]
-        eventInfo["schedule"] = str(self.schedulePicker.currentText())
-        eventInfo["type"] = str(self.typePicker.currentText())
-        eventInfo["title"] = str(self.titlePicker.text())
+        eventInfo["schedule"] = self.schedulePicker.currentText()
+        eventInfo["type"] = self.typePicker.currentText()
+        eventInfo["title"] = self.titlePicker.text()
        if self.schedulePicker.currentText() in [s["weekly"],
                                                  s["biweekly"]]:
            if not self.weekdays:
@@ -587,7 +587,7 @@
            dateTime = dateTime.addSecs(secs)
            eventInfo["ttime"] = int(dateTime.toTime_t())
            eventInfo["number"] = int(self.numberPicker.value())
-            eventInfo["interval"] = str(self.intervalPicker.currentText())
+            eventInfo["interval"] = self.intervalPicker.currentText()
        elif self.schedulePicker.currentText() == s["next"]:
            day = self.rWeekdayPicker.currentText()
            if day == mon: day = 1
@@ -622,7 +622,7 @@
            eventInfo["ttime"] = int(time.mktime(td.timetuple()))
            eventInfo["cron"] = cronstring
        elif self.schedulePicker.currentText() == s["date"]:
-            eventInfo["date"] = str(self.datesyntaxPicker.text())
+            eventInfo["date"] = self.datesyntaxPicker.text()
            ttime = alarmed_backend.interpretDateString(
                                    eventInfo["date"])
            if not ttime[0]:
@@ -641,13 +641,13 @@
        type = self.typePicker.currentText()
        content = ""
        if type == t["exec_type"]:
-            content = str(self.execPicker.text())
+            content = self.execPicker.text()
            eventInfo["content"] = content
        elif type == t["builtin_type"]:
-            content = str(self.builtinPicker.currentText())
+            content = self.builtinPicker.currentText()
            eventInfo["content"] = content
        elif type == t["profile_type"]:
-            content = str(self.profilePicker.currentText())
+            content = self.profilePicker.currentText()
            eventInfo["content"] = content
        if self.weekdays:
            eventInfo["weekdays"] = self.weekdays

I also found that using cli I can't list events if there is non-english name, error in alarmed.py:110, but I didn't fix it yet.

Tiboric 2011-02-06 15:57

Re: [Announce] "Alarmed" scheduling App (supports automatic GPRS data counter resetting)
 
Quote:

Originally Posted by nicolai (Post 937412)
alarms are stored in
/var/cache/alarmd/alarm_queue.ini
http://talk.maemo.org/showpost.php?p...&postcount=358

Thanks nicolai will look for any thing amiss.

Edit: Yep it was in there, Thank you very much.

ForeverYoung 2011-02-06 16:23

Re: [Announce] "Alarmed" scheduling App (supports automatic GPRS data counter resetting)
 
Quote:

Originally Posted by ForeverYoung (Post 937420)
I also found that using cli I can't list events if there is non-english name, error in alarmed.py:110, but I didn't fix it yet.

line 110 of alarmed.py should be:
print "\t" + info + ": " + unicode(i[info]).encode("utf-8")

shapeshifter 2011-02-07 14:48

Re: [Announce] "Alarmed" scheduling App (supports automatic GPRS data counter resetting)
 
Quote:

Originally Posted by x-lette (Post 937379)
:eek: does that mean you implemented the patch from #406 and deactivated support for tweakr-profiles? Or do they still work?

No, they will not work anymore. ProfilesX has the same (and better) functionality than tweakr and integrates much more nicely than tweakr. It's also still active while tweakr has been dead for the last 6 months. I suggest you either don't upgrade alarmed or switch to ProfilesX. Sorry.

Quote:

Originally Posted by ForeverYoung (Post 937420)
Why didn't you include this part of my patch?

Whoops, sorry about that. I got errors when using that part of the patch but they were related to the fact that most interestingly, I've been using completely outdated pyside packages! They weren't upgraded because I didn't explicitly require them. So to say it out loud:

The pyside-* packages in the repo are obsolete and very old. If ever you need PySide packages, make sure you install the python-pyside.* packages!

I now included the fix and changed the dependencies of the alarmed package so now any users who accidentally still used the old version like I did should be upgraded.

I also included your small bugfix for -CL.

So now, build 2.0.1-2 is in -devel.

x-lette 2011-02-07 15:25

Re: [Announce] "Alarmed" scheduling App (supports automatic GPRS data counter resetting)
 
Quote:

Originally Posted by shapeshifter (Post 938161)
No, they will not work anymore. ProfilesX has the same (and better) functionality than tweakr and integrates much more nicely than tweakr. It's also still active while tweakr has been dead for the last 6 months. I suggest you either don't upgrade alarmed or switch to ProfilesX. Sorry.

Sorry to hear that. As tweakr offers some more useful functions I'd keep using it anyway and I'm not sure wether both will work together. So I'll stay on current version for now and think over it.

iscio 2011-02-07 15:42

Re: [Announce] "Alarmed" scheduling App (supports automatic GPRS data counter resetting)
 
@x-lette I uninstalled tweakr and installed profilesx and it is better. What are the "more useful functions"?

x-lette 2011-02-07 22:11

Re: [Announce] "Alarmed" scheduling App (supports automatic GPRS data counter resetting)
 
Quote:

Originally Posted by iscio (Post 938192)
@x-lette I uninstalled tweakr and installed profilesx and it is better. What are the "more useful functions"?

Regarding the profiles I believe that there are better solutions. But other options tweakr offers are:
  • snap icons to grid
  • remapping of short-, long- and double press of power key
  • disabling of unlocking device when camera lens gets opened
I don't want to miss one of them. Maybe there are other apps offering similar functionality but why should I replace one app by two or three or even more? tweakr still works for me so I currently don't see a reason to change it.

lemmyslender 2011-02-08 01:14

Re: [Announce] "Alarmed" scheduling App (supports automatic GPRS data counter resetting)
 
I'm with x-lette. I'm quite happy using tweakr.

Would it be possible to include support for both tweakr and profilesx? Seems like some folks might get caught off guard if they aren't following the thread, and suddenly lose functionality.


All times are GMT. The time now is 05:49.

vBulletin® Version 3.8.8