The ModMyTM Family of Sites:
ModMyMotoModMyiModMyGphone




 
 
Register or Connect with Facebook

Discuss AppStore Apps | Browse / Search Cydia | MMi Cydia Stats




  Apple Forums & iPhone Forums, Mods, Hacks, News, Themes, Downloads, and more! | ModMyi.com > 3rd Party Apps For iPhone | iPod Touch > 3rd Party Apps Requests
Reply
 
LinkBack Thread Tools Display Modes
  #46  
Old 08-01-2008, 02:11 PM
iPhone? More like MyPhone
 
Join Date: Apr 2008
Device + Firmware: iPhone
Posts: 146
Thanks: 20
Thanked 4 Times in 3 Posts

Quote:
Originally Posted by bhuga
I looked this up and it's exactly what I want. Does it work on a Gen-1 Iphone running the new software, if Jailbroken?
I would think so. But just incase, you can email them at support@ripdev.com to ask. After I first purchased Kate, it wouldn't show in my settings, so I had to email them for that and they replied within the next couple of hours. Their support is really good and they always replied back to me within a day.

In case you do get it, I'll tell you ahead of time that the reminder sound is actually SIMToolKitGeneralBeef.caf in /System/Library/Audio/UISounds. And then any .caf files you put under /var/mobile/Library/RiPDev/Sounds can actually just be the custom sms sounds for when you first receive a text. It's a waaay quicker than overwriting the default sms-received files for setting your sms sounds to a custom one. So that's another cool thing I love too

Last edited by dis1krazyazn; 08-01-2008 at 02:13 PM..
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #47  
Old 08-09-2008, 06:14 PM
What's Jailbreak?
 
Join Date: Aug 2008
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Check emails too

I found the mail database and from there you can look for unread messages with different attributes.

if [ `echo 'select count(*) from messages where read="0" and _to like "%mymail@yahoo.com%";' | sqlite3 /var/mobile/Library/Mail/Envelope\ Index` -gt 0 ]

In this example it checks for email going to a dedicated yahoo push email box. But you can query for other attributes:

strings /var/mobile/Library/Mail/Envelope\ Index | less
SQLite format 3
messages
H{[r
Hw{C
Ktablemessagesmessages

CREATE TABLE messages (ROWID INTEGER PRIMARY KEY AUTOINCREMENT,
remote_id INTEGER,
sender,
subject,
_to,
cc,
date_sent INTEGER,
date_received INTEGER,
sort_order INTEGER,
mailbox INTEGER,
remote_mailbox INTEGER,
original_mailbox INTEGER,
flags INTEGER,
read,
flagged,
deleted,
size INTEGER,
color,
encoding,
content_type)

So you should be able to filter by subject, sender, etc or any combination

I have no idea how to do it, but it would be nice to have a configuration file where you could setup filters to notify on.
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #48  
Old 08-10-2008, 02:31 PM
bit2004's Avatar
What's Jailbreak?
 
Join Date: Oct 2007
Posts: 4
Thanks: 4
Thanked 1 Time in 1 Post

here is the original SMSnotify 2.0 (.sh) file jusy for reference


#!/bin/bash

SMSNOTIFY_PATH=/usr/local/smsnotify

while test 1
do
if [ `echo 'select count(*) from message where flags=0;' | sqlite3 /var/mobile/Library/SMS/sms.db` -gt 0 ]
then
#Each parameter to vibrate is 1 more vibration, so vibrate 3 times
$SMSNOTIFY_PATH/vibrate 1 1
sleep 3
fi
if [ `echo 'select count(*) from voicemail where flags & 1 == 0;' | sqlite3 /var/mobile/Library/Voicemail/voicemail.db` -gt 0 ]
then
#vibrate 2 times
$SMSNOTIFY_PATH/vibrate 1
sleep 3
fi
#This program sleeps for 5 seconds then checks how long it's been sleeping. If it's been more than 10 seconds the phone has slept and it exits, allowing the loop to continue
$SMSNOTIFY_PATH/waitforsleep
done
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #49  
Old 08-11-2008, 06:24 PM
What's Jailbreak?
 
Join Date: Aug 2008
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts

Does anyone know if there is a way to detect if the silent switch is activated through the command line? I added "play alert.caf" to my smsnotify script, but it will play the alert even if the phone is on vibrate only. I'd like to put an if statement around that play line and only play it if it's supposed to be making sounds.

I wonder if this could be done through Erica's deviceinfo -a program. In the help it says you can do deviceinfo -a backlight-level and others from the "io registry" I wonder if the silent switch is in the io registry? How do I find what values are there to look at?

Last edited by jkusnetz; 08-11-2008 at 06:24 PM.. Reason: Automerged Doublepost
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #50  
Old 08-12-2008, 10:36 AM
interstink's Avatar
iPhone? More like MyPhone
 
Join Date: Sep 2007
Posts: 131
Thanks: 0
Thanked 4 Times in 3 Posts

I tried to do a time check within this script. Unable to set time restrictions. I tried using the DATE command and parse out the time/HOUR which works, but doesnt work witin this script. Anyone have ideas how to add...

if HOUR > 23 (11:00pm)
do this
else do this

thanks...
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #51  
Old 08-15-2008, 03:14 PM
interstink's Avatar
iPhone? More like MyPhone
 
Join Date: Sep 2007
Posts: 131
Thanks: 0
Thanked 4 Times in 3 Posts

Having a strange issue now... Not sure if this was an issue before...

When smsnotify is triggered to play a sound, it seems to lower the volume of the iphone to medium level. when I go check it in the sound settings, the sound level is indeed at half volume. This happens every time I get notified using smsnotify.

Is this the PLAY file from Erica's utility doing this?
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #52  
Old 08-15-2008, 08:31 PM
bit2004's Avatar
What's Jailbreak?
 
Join Date: Oct 2007
Posts: 4
Thanks: 4
Thanked 1 Time in 1 Post

Quote:
Originally Posted by interstink View Post
Having a strange issue now... Not sure if this was an issue before...

When smsnotify is triggered to play a sound, it seems to lower the volume of the iphone to medium level. when I go check it in the sound settings, the sound level is indeed at half volume. This happens every time I get notified using smsnotify.

Is this the PLAY file from Erica's utility doing this?
this happens to me to. but I think SMSNotifty's alert volume gose off the ipod.apps level cause if u max that ipod.apps volume it reflects that in the smsnotify's audio alert... that make sense, give it a try you'll see
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #53  
Old 09-19-2008, 09:51 PM
Mes's Avatar
Mes Mes is offline
My iPhone is a Part of Me
 
Join Date: May 2008
Device + Firmware: 3G-16G 3.0; 2G-8G 2.2.1 T-Mobile
Operating System: XPSP3, VistaHPSP1, OSX10.4.10
Location: Sunny California :)
Posts: 824
Thanks: 29
Thanked 91 Times in 81 Posts

Everything is working as advertised .......... but ...............

I was customizing smsnotify.sh script for my preference and while running ps -ax I noticed the following process right after vibrate exits:

352 ?? 0:01.07 /System/Library/CoreServices/ReportCrash

It appears vibrate is causing a crash (if I read this correctly), although I am unable to locate a log entry anyplace.

I used this simple test to verify the crash:

From WinSCP (/usr/local/smsnotify directory) / Commands / Open Terminal
Enter the following command:
./vibrate & ps -ax;sleep 1;ps -ax

Notice the RemoteCrash (pid 352) :

/usr/local/smsnotify$ ./vibrate & ps -ax;sleep 1;ps -ax
PID TTY TIME CMD
1 ?? 0:01.59 /sbin/launchd
12 ?? 0:00.64 /usr/sbin/mDNSResponder -launchd
13 ?? 0:01.21 /usr/sbin/notifyd
14 ?? 0:01.22 /usr/sbin/syslogd
15 ?? 0:05.91 /usr/sbin/configd
19 ?? 0:00.27 /usr/sbin/update
20 ?? 0:02.77 /usr/libexec/lockdownd
23 ?? 0:01.65 /System/Library/PrivateFrameworks/IAP.framework/Support/iapd
24 ?? 0:00.42 /usr/sbin/fairplayd
25 ?? 0:27.66 /System/Library/CoreServices/SpringBoard.app/SpringBoard
29 ?? 0:01.27 /usr/sbin/BTServer
41 ?? 0:02.49 /System/Library/PrivateFrameworks/CoreTelephony.framework/Support/CommCenter
50 ?? 0:01.00 /var/stash/Applications/MobilePhone.app/MobilePhone
131 ?? 0:01.49 /usr/sbin/sshd -i
132 ?? 0:00.78 -sh
339 ?? 0:00.21 /usr/libexec/amfid
344 ?? 0:00.89 /usr/sbin/mediaserverd
350 ?? 0:00.05 (vibrate)
351 ?? 0:00.01 ps -ax
PID TTY TIME CMD
1 ?? 0:01.60 /sbin/launchd
12 ?? 0:00.64 /usr/sbin/mDNSResponder -launchd
13 ?? 0:01.21 /usr/sbin/notifyd
14 ?? 0:01.22 /usr/sbin/syslogd
15 ?? 0:05.91 /usr/sbin/configd
19 ?? 0:00.27 /usr/sbin/update
20 ?? 0:02.77 /usr/libexec/lockdownd
23 ?? 0:01.65 /System/Library/PrivateFrameworks/IAP.framework/Support/iapd
24 ?? 0:00.42 /usr/sbin/fairplayd
25 ?? 0:27.66 /System/Library/CoreServices/SpringBoard.app/SpringBoard
29 ?? 0:01.27 /usr/sbin/BTServer
41 ?? 0:02.49 /System/Library/PrivateFrameworks/CoreTelephony.framework/Support/CommCenter
50 ?? 0:01.00 /var/stash/Applications/MobilePhone.app/MobilePhone
131 ?? 0:01.49 /usr/sbin/sshd -i
132 ?? 0:00.78 -sh
339 ?? 0:00.24 /usr/libexec/amfid
344 ?? 0:00.89 /usr/sbin/mediaserverd
352 ?? 0:01.07 /System/Library/CoreServices/ReportCrash
354 ?? 0:00.01 ps -ax

I think we have a problem (apparently with vibrate)

Ideas? Solutions?

(Note: Just in case was I wasn't clear --- it does vibrate!! )

Mes

Last edited by Mes; 09-22-2008 at 03:19 PM..
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
Reply

  Apple Forums & iPhone Forums, Mods, Hacks, News, Themes, Downloads, and more! | ModMyi.com > 3rd Party Apps For iPhone | iPod Touch > 3rd Party Apps Requests

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



Go to Top
ModMyI

All times are GMT -6. The time now is 10:50 PM. Powered by vBulletin® Version 3.8.4
If you need Dedicated Server Hosting, you should check out SingleHop. | Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.3.0 Copyright © 2007-09 by ModMy, LLC. All rights reserved.

iPhone News / iPhone Forums / Apple News / Apple Forums / RSS / Contact Us / / Privacy Statement / Top