Page 1 of 3 123 LastLast
Results 1 to 10 of 30
Discuss [SMSNotifier] (sound instead of vibrate) inc Missed Calls at the Free Toolchain Software (Cydia App's) - Hackint0sh.org; Right, this is the code for making the smsnotifier... notify both sms and missed calls... ...
  1. #1
    Senior Professional Array Nuttynutter123's Avatar

    Join Date
    Dec 2007
    Posts
    247
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    19

    Default [SMSNotifier] (sound instead of vibrate) inc Missed Calls

    Right, this is the code for making the smsnotifier... notify both sms and missed calls...
    if you edit smsnotifier using ssh or whatever other method you like change the script to..

    #!/bin/sh
    smsnpath=/usr/local/smsnotify
    sql=$smsnpath/sqlite3
    vibrate=$smsnpath/vibrator
    audiofilea=/Library/Ringtones/Sonar.m4r
    while test 1
    do
    n=`$sql /var/root/Library/SMS/sms.db 'select count(*) from message where flags=0'`;
    if [ "$n" -gt 0 ]
    then
    /var/root/bin/playaudio $audiofilea &
    fi
    c=`$sql /var/root/Library/CallHistory/call_history.db 'select count(*) from call where flags=4 and duration=0 and ROWID=(select max(ROWID) from call)'`;
    if [ "$c" -gt 0 ]
    then
    /var/root/bin/playaudio $audiofilea &
    fi
    sleep 120
    done

    This will play the Sonar Every 2 mins... if you have missed calls or unread text messages.

    The only problems i have found which i cannot resolve as of yet is.. if you have a misse call or unread message and you turn your phone off for what ever reason then it hangs when rebooting?
    and also if your phone is on silent mode then it still makes the noise?
    Last edited by Nuttynutter123; 01-05-2008 at 05:01 PM.



  2. #2
    Senior Professional Array Twisty iphoney's Avatar

    Join Date
    Oct 2007
    Posts
    492
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    34

    Default

    hey,
    nice workaround but didn't checked it out yet.
    thanks

  3. #3
    Advanced Array

    Join Date
    Oct 2007
    Posts
    37
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    noo need to check. it doesn't work

  4. #4
    Professional Array Gotcha007's Avatar

    Join Date
    Dec 2007
    Posts
    66
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    10

    Default

    And what about the battery with that program?
    Someone saw any battery drain? If I understand , un program is running every 15 seconds tu check unread SMS...

  5. #5
    Advanced Array

    Join Date
    Nov 2007
    Location
    203
    Posts
    43
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    Quote Originally Posted by Gotcha007 View Post
    And what about the battery with that program?
    Someone saw any battery drain? If I understand , un program is running every 15 seconds tu check unread SMS...
    just using it yesterday i didnt see any drain...i had my phone on all day without putting it in sleep mode (turned auto lock to never by accident) and it lasted from 11:30 to 2:00am would have lasted longer if i wasnt playing othello & mix-up almost all night


  6. #6
    Advanced Array

    Join Date
    Nov 2007
    Posts
    45
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    U can easily modify it to vibrate every 2minutes or every 5 or whatever so if u get a message at 3am it doesnt drain the battery too much. There is a thread about it or pm me for tge file.
    iPhone 1.1.3 Telcel, Mexico
    OTB 1.1.1 --> Jailbreakme.com --> Unlocked 1.1.1
    --> Unlocked 1.1.2 --> Unlocked 1.1.3
    video recording, camera zoom, MMS


    It seemed like a good idea at the time...

  7. #7
    Senior Professional Array Nuttynutter123's Avatar

    Join Date
    Dec 2007
    Posts
    247
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    19

    Unhappy

    Quote Originally Posted by vortex View Post
    noo need to check. it doesn't work
    works for me fine mate. I am typing this on my phone when I am back on my pc I will upload my file and then you can just overwrite yours using ssh. You did restart your phone when you changed the script didnt you?

  8. #8
    Advanced Array

    Join Date
    Nov 2007
    Posts
    45
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    is it possible to make it vibrate and sound? or can you help me on making the smsnotifier (vibrate) also when you have a missed call?

    Thanks for ur time!
    iPhone 1.1.3 Telcel, Mexico
    OTB 1.1.1 --> Jailbreakme.com --> Unlocked 1.1.1
    --> Unlocked 1.1.2 --> Unlocked 1.1.3
    video recording, camera zoom, MMS


    It seemed like a good idea at the time...

  9. #9
    Advanced Array

    Join Date
    Sep 2007
    Posts
    32
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    This doesn't work for me. I in fact get the sonnar sound every two minutes regardless of a missed call or sms.

    Any suggestions?

  10. #10
    Senior Professional Array Nuttynutter123's Avatar

    Join Date
    Dec 2007
    Posts
    247
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    19

    Default

    right here is the link to my file... just overwrite yours and everything should be fine

    http://rapid$hare.com/files/81659000/smsnotify.sh.html

    obviously replace the '$' with an 's'


 

 
Page 1 of 3 123 LastLast

Similar Threads

  1. I no longer get missed calls notifications
    By mrdharris in forum iPhone 4
    Replies: 0
    Last Post: 02-01-2011, 08:23 PM
  2. Missed calls and recent calls dont save
    By 00snipe00 in forum Spirit (jailbreak)
    Replies: 4
    Last Post: 05-08-2010, 07:21 AM
  3. [Req] Sound Reminder for Missed Calls and received SMS
    By Count de Monet in forum Free Toolchain Software (Cydia App's)
    Replies: 9
    Last Post: 06-10-2008, 12:30 PM
  4. [1.1.3] Missed calls fixed
    By gr33n in forum General
    Replies: 0
    Last Post: 01-25-2008, 02:15 AM
  5. No auto-viocemail for missed calls
    By kerimeton in forum General
    Replies: 1
    Last Post: 11-09-2007, 05:57 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Powered by vBulletin®
Copyright © 2014 vBulletin Solutions, Inc. All rights reserved.
Search Engine Friendly URLs by vBSEO
(c) 2006-2012 Hackint0sh.org
All times are GMT +2. The time now is 09:24 AM.
twitter, follow us!