View Single Post
Posts: 1,086 | Thanked: 2,964 times | Joined on Jan 2010
#35
Originally Posted by onasre View Post
So i thought to Say thx to kojacker again and Say it one More time , How do we Setup Alramed to trigger the App in Certain time .
Apologies onasre, I've been grabbing a spare 30 mins here, 20 mins there all week. Busy time for me this moment with thanksgiving, but I'm pleased to see notherdumbass has me covered

Just to expand on what notherdumbass wrote, you can call mfakecaller with up to 4 parameters, or none or at all! Here's what I mean:
  • calling mfakecaller with no parameters afterwards gives you the normal default fake call screen. For example:
    Code:
    /usr/bin/mfakecaller

  • calling mfakecaller with one parameter afterwards changes the contact name/number that is on the fake call screen from "Private number" to whatever you written in there. For example:
    Code:
    /usr/bin/mfakecaller "onasre was here"

  • using two parameters changes the caller name/number and the caller image. For example:

    Code:
    /usr/bin/mfakecaller "Answer me fool!" "/home/user/MyDocs/.documents/mr_t_loves_nuts.jpg"

  • you can use a third parameter to set the ringtone to a different sound file. For example:

    Code:
    /usr/bin/mfakecaller "Waylon Smithers" "/home/user/MyDocs/photos/smithers.jpg" "/home/user/MyDocs/.sounds/ymca.aac"
  • finally, the fourth parameter accepts a stylesheet value to change the background. For example:

    Code:
    /usr/bin/mfakecaller "+44288Panther"  "/home/user/MyDocs/photos/panther.jpg" "/home/user/MyDocs/.sounds/grrrrrrr.aac" 'background-image: url("/home/user/MyDocs/photos/panther.jpg");'

It's fairly straightforward, the rules to remember are the ordering and that for changing the caller image, ringtone, and background you have to give it the full path on your phone so it can find it. Background is very flexible, as it's a stylesheet you can just add a color, a stripe, whatever fits into a normal Qt element's stylesheet which is basically the same as anything on the web page. It's also more trickier, notice the two different types of quotes and the semi colon (';') at the end. As we're passing a full stylesheet value in we have to remember all the syntax that goes along with it too.

The mfakecaller app is designed so if anything is linked wrong it will still run, just whatever that is not found will be missing from the screen. So if it looks like something isnt how you expected it or you got no sound playing, then the best place to start troubleshooting is to double check you got the folder path right.

It'll make more sense when you try it out, so go ahead and have a play with it.
__________________
Follow me on my neglected twitter @kojacker

Cybot950 - Control a robot with your N9/N950
SMSPetFeeder - Build a Bluetooth/SMS dog feeder with Qt, N950, and arduino
Nerf950 - Use your N9/N950 to fire a Nerf gun

Last edited by kojacker; 2010-11-28 at 10:48.
 

The Following 2 Users Say Thank You to kojacker For This Useful Post: