-
01-24-2008, 04:01 AM #81
chico_can - I don't know why, as it works for me. Maybe the daemon stops for some reason? Nate would be more qualified to answer this one. Sorry man.
I would love for Nate to wrap this up in a nice GUI with settings like: vibrate on/off, daemon on/off, choose different sound to use for missed call & SMS.
I think he is very busy at the moment though with the new 113 release in hand...
-
01-24-2008, 08:46 AM #82
The daemon does suspend once the device enters 'deep sleep'. This has been talked about a LOT, you can check it out here...
http://www.modmyi.com/forums/showthr...t=24438&page=2
But for now, the ONLY solution is setup the iPhone to check email every x minutes and then when it does it wakes up enough for your script to run again and do its thing. Yes, not great, ... but its better then nothing.
-
01-24-2008, 02:27 PM #83
-
01-24-2008, 02:31 PM #84
Thats an interesting question/idea.
I would image you would setup some fake AP for Edge, (the phone is probably smart enough to NOT wakeup if no AP is defined), but setup a fake one ... and when the phone wakes up and tries to get EDGE access (which will take a while to fail-timeout your script should have the chance to run).
It's easy enough to test, give it a try... but I would guess that it would work.
-
01-29-2008, 06:05 PM #85
SMSNotify not working in firmware 1.1.3
After the upgrade and reinstall of SMSNotify its not detecting SMS using this query...
n=`$sql /var/root/Library/SMS/sms.db 'select count(*) from message where flags=0'`;
AND the scw_missedcalls app now seems to always return a positive value even if there are NO missed calls?
Anyone know what the new SMS query should be and/or what to do about the missed calls?
Very sad this isn't working anymore?
-
01-29-2008, 07:00 PM #86
is it possible to tweak this to work for calendar notifications?
-
02-02-2008, 03:18 AM #87
Maybe the SDK will make this working agin... but until then we will have to stumble around to figure out the comands to access the correct info in the db. Also the fact that the phone now has 2 sleep modes that are now much more embeded really sends programs like this up the river.
Last edited by boomersmech; 02-02-2008 at 03:19 AM. Reason: Automerged Doublepost
-
02-02-2008, 01:26 PM #88
It's not working on 1.1.3 , its there any fix for that?
-
02-03-2008, 08:11 PM #89
I figured out how to make it work again in 1.1.3. The problem "I think" is the sql queries are hardcoded to root and can't see the new mobile directory, to fix this do the following in putty
ln -s /private/var/mobile/Library/SMS /private/var/root/Library
You should now have build a symbolic like to the SMS database in root so that the smsnotify query can work. I image its a similar problem for the phone calls as well, I just don't know what directory that program reads yet. Any help would be, well, helpful....
EDIT: Ok, its the CallHistory directory for calls, but I still can't get the program scw_missedcalls to work, only the older less sophisticated callhistory query seems to be working. If anyone knows how the scw_missedcalls does its thing, we can probably figure it out. to add a symbolick link for callhist do the following...
ln -s /private/var/mobile/Library/CallHistory /private/var/root/Library
EDIT: Obviously, you could just change the script as well to point to mobile directory that would be cleaner then the symbolic link, I just did it to see if the scw_missedcalls would work, (which it didn't)Last edited by IvanRaide; 02-04-2008 at 09:50 AM.
-
02-19-2008, 03:31 AM #90
For those using it - I updated scw_missedcalls to work correctly on 1.1.3 regardless of whether it executes as root or mobile. The problem is that missed calls data (last time viewed) are stored under mobile since all apps run as mobile, but if you setup the script to run as root, it reads the last calls for root.
Updated program attached.
-
The Following User Says Thank You to NetMage For This Useful Post:
eyeandi (02-19-2008)
-
02-19-2008, 09:35 AM #91
when is it possible to get this thru installer?
THANKS!
-
02-19-2008, 08:33 PM #92
Can some one make detail step to get it working? There lot of people that post something to make it work, but which one is good??
-
02-20-2008, 01:24 AM #93
Is there any way I can get this to work with 1.1.3???? This "app" was very useful and I would like to have it working again.
Why didn't Apple make this apart of the iPhone software? What is wrong with them? The most basic phones have missed call/sms notification.
-
02-20-2008, 02:02 PM #94
If you look back on page 6 I talk about how to get it running on 1.1.3 in 2 different methods.
Plus if you use the new version of NetMage's app (scw_missedcalls) you can get the missed calls to work as well.
-
02-20-2008, 03:22 PM #95
Yea I've looked at it since and I got SMS to work.
I don't understand how to get the scw_missedcalls thing to work?
-
02-20-2008, 03:36 PM #96
assuming you placed the scw_missedcalls in the /usr/local/smsnotify dir, (and set permission to 755)
add these lines....
missedcalls=$smsnpath/scw_missedcalls
d=`$missedcalls`;
and change the condition to something like this
if [ "$n" -gt 0 -o "$d" -gt 0 ]
I've included my script but I don't recommend you just copy it, since it might not do what you want, its just here for reference
----------------------------------------------------------------------
#!/bin/sh
smsnpath=/usr/local/smsnotify
sql=$smsnpath/sqlite3
vibrate=$smsnpath/vibrator
playaudio=$smsnpath/playaudio
audiofile=$smsnpath/alarm.aiff
missedcalls=$smsnpath/scw_missedcalls
while test 1
do
n=`$sql /var/mobile/Library/SMS/sms.db 'select count(*) from message where flags=0'`;
d=`$missedcalls`;
if [ "$n" -gt 0 -o "$d" -gt 0 ]
then
$vibrate &
$playaudio $audiofile &
fi
sleep 30
done
----------------------------------------------------------------------
-
The Following 2 Users Say Thank You to IvanRaide For This Useful Post:
ABT4 (02-20-2008), krayzie303 (03-03-2008)
-
02-20-2008, 03:52 PM #97
Thanks a lot. Worked perfectly.
Now, can you figure out how to make it not sound while in vibrate mode? haha
You have been thanked.
-
02-20-2008, 10:38 PM #98
Thanks for the thanks ...
If Erica or someone made an app it would be easy to add to the script, I just don't know of an app, but that doesn't mean there isn't one. If anyone finds one tell us and we could add that easily enough.
If Nate or anyone else is interested in getting this script/app waking up on its own apparently someone posted something they say works...
http://www.modmyi.com/forums/showpos...2&postcount=23
http://iphonedevdocs.com/forum/showp...93&postcount=9Last edited by IvanRaide; 02-20-2008 at 10:38 PM. Reason: Automerged Doublepost
-
02-21-2008, 02:30 PM #99iPhone? More like MyPhone
- Join Date
- Oct 2007
- Location
- Ontario, Canada
- Posts
- 151
- Thanks
- 4
- Thanked 8 Times in 8 Posts
Kills the battery though. Kind of scared of wearing out the vibrating device too.
-
02-21-2008, 03:43 PM #100
You could change the script to increment a counter and if it has attempted to notify you 10 times, to stop (and reset the counter whenever the condition is NOT true)....
I myself don't really see the need because, unfortunately, the app can't wake itself up so it only updates on your email interval which is probably like 15 minutes or so, so a small update every 15 minutes or so should not hurt anything, and if you are using the device, well, answer your SMS
But, seriously the counter should work if you want to add that functionalityLast edited by IvanRaide; 02-21-2008 at 03:47 PM.



LinkBack URL
About LinkBacks
Reply With Quote


