The ModMyTM Family of Sites:
ModMyMotoModMyiModMyGphone




 
 
Register or Connect with Facebook

2.2 Unlock / Jailbreak OS X | 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 (permalink)  
Old 08-01-2008, 01:11 PM
iPhone? More like MyPhone
 
Join Date: Apr 2008
Device + Firmware: iPhone
Posts: 146
Thanks: 20
Thanked 2 Times in 2 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 01:13 PM..
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #47 (permalink)  
Old 08-09-2008, 05: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 (permalink)  
Old 08-10-2008, 01: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 (permalink)  
Old 08-11-2008, 05: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 05:24 PM.. Reason: Automerged Doublepost
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #50 (permalink)  
Old 08-12-2008, 09:36 AM
Green Apple
 
Join Date: Sep 2007
Posts: 94
Thanks: 0
Thanked 2 Times in 2 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 (permalink)  
Old 08-15-2008, 02:14 PM
Green Apple
 
Join Date: Sep 2007
Posts: 94
Thanks: 0
Thanked 2 Times in 2 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 (permalink)  
Old 08-15-2008, 07: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 (permalink)  
Old 09-19-2008, 08:51 PM
Mes's Avatar
Mes Mes is offline
My iPhone is a Part of Me
 
Join Date: May 2008
Device + Firmware: iPhone 3G 16GB, v2.2 T-Mobile
Operating System: XPSP3, VistaHPSP1, OSX10.4.10
Location: Sunny California :)
Posts: 588
Thanks: 20
Thanked 69 Times in 64 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 02: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

Forum Jump


Go to Top
ModMyI

All times are GMT -6. The time now is 03:31 PM. Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 | Dedicated Server Hosting by SingleHop | Copyright © 2007-09 by ModMy, LLC. All rights reserved.

RSS / Contact Us / / ModMyi Home / Archive / Privacy Statement / Top


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408