Moto Hell - The Motorola Modding Community

Motorola Phone Models => Motorola A780/A1200/E2/E6/E680/V8/Z6 => Topic started by: Nyte2 on January 14, 2008, 06:19:48 am



Title: FOTOren??
Post by: Nyte2 on January 14, 2008, 06:19:48 am
hello... i really want somebody to help me on using Fotoren mpkg...i've tried it so many times but i noticed it wont and never change my photo's name...i mean it didnt rename my photo at all.. can somebody teach me how to use this software...


Title: Re: FOTOren??
Post by: Taurnil on January 14, 2008, 06:32:33 am
man.... u open a new thread for everything.....
fotoren has its own thread.
PS: fotoren only works when you name your photos or media as moto*


Title: Re: FOTOren??
Post by: Nyte2 on January 14, 2008, 06:36:20 am
ow..thx a lot taurnil.. :) and sorry too coz opened a new thread for this ...im just a noob...  :( :)


Title: Re: FOTOren??
Post by: Taurnil on January 14, 2008, 07:18:40 am
lol don't take me seriously... it's only an observation... check the proper thread ;)
I can mod the fotoren script and remove the moto* filter, if you want. May you post the .lin script file?


Title: Re: FOTOren??
Post by: fich on January 14, 2008, 07:17:28 pm
I've ever create script to set camera defaultName as date system, YYYY-MM-DD_xxxx

attachment file consist 2 files :
- cam.lin
- camera

place those 2 files (cam.lin dan camera) into folder /MY_FAVOR/
edit your autorun.txt by adding this code
Code:
   if [ -f $MYFAVOR/cam.lin ]
   then
      mount --bind $MYFAVOR/cam.lin /usr/SYSqtapp/camera/camera
   fi

restart phone


Title: Re: FOTOren??
Post by: Nyte2 on January 14, 2008, 11:39:48 pm
this is fotoren.lin :

!/bin/bash

export QTDIR=/usr/lib/ezx
my_alert='/usr/SYSqtapp/phone/alertprocess'
my_mid_ok='/mmc/mmca1/.system/QTDownLoad/fotoren/done.wav'

find /mmc/mmca1/MyPhoto /ezxlocal/download/mystuff/MyImages -name 'moto_*' -printf "mv %p %h/%TY.%Tm.%Td_%TH%TM%TS.jpg\n" | sh
sleep 1
find /mmc/mmca1/MyVideo /ezxlocal/download/mystuff/MyVideo -name 'moto_*' -printf "mv %p %h/%TY.%Tm.%Td_%TH%TM%TS.3gp\n" | sh
sleep 1
find /mmc/mmca1/MyVoice /ezxlocal/download/mystuff/MyVoice -name 'Voice*' -printf "mv '%p' '%h/%TY.%Tm.%Td_%TH%TM%TS.amr'\n" | sh
sleep 1

$my_alert -playvol 4 -playfile $my_mid_ok


Title: Re: FOTOren??
Post by: Nyte2 on January 15, 2008, 12:34:43 am
thx fich..  :)


Title: Re: FOTOren??
Post by: CyberPunk on January 17, 2008, 01:39:22 am
I just did what finch said, but it doesn't work for me. Another indications? must the default name of the pics in the setup be "moto_"? :S

thanks anyway


Title: Re: FOTOren??
Post by: Taurnil on January 17, 2008, 02:31:20 pm
maybe your FW doesn't have setted the $MY_FAVOR variable.
change the variable to full path (/ezxlocal/....)


Title: Re: FOTOren??
Post by: CyberPunk on January 17, 2008, 09:30:28 pm
It still doesn't work...

Is this ok in cam.lin?

#! /bin/bash

#---------Filename Setting Camera---------#
#-------------YYYY-MM-DD_xxxx-------------#
#------------------by fich----------------#
#-------------28 Desember 2007------------#
#-------http://www.motolovers.or.id-------#


   tgl=`date -I`_   
   a=`cat /ezx_user/download/appwrite/setup/ezx_camera.cfg | grep 'defaultName = '`
   b=${a:14}
   if [ $b != $tgl ]
   then
      setconfig /ezx_user/download/appwrite/setup/ezx_camera.cfg defaultName "$tgl"
   fi
   exec $MYFAVOR/camera




I mean for the # at start, isn't that for comments?


and what's that fotoren.lin code for?

thanks..!


Title: Re: FOTOren??
Post by: fich on January 17, 2008, 10:56:02 pm
@CyberPunk
you can place cam.lin & camera at SD Root
but you must change your code

cam.lin
Code:
#! /bin/bash

#---------Filename Setting Camera---------#
#-------------YYYY-MM-DD_xxxx-------------#
#------------------by fich----------------#
#-------------28 Desember 2007------------#
#-------http://www.motolovers.or.id-------#


   tgl=`date -I`_   
   a=`cat /ezx_user/download/appwrite/setup/ezx_camera.cfg | grep 'defaultName = '`
   b=${a:14}
   if [ $b != $tgl ]
   then
      setconfig /ezx_user/download/appwrite/setup/ezx_camera.cfg defaultName "$tgl"
   fi
   exec /mmc/mmca1/camera

add autorun.txt
Code:
if [ -f /mmc/mmca1/cam.lin ]
   then
      mount --bind /mmc/mmca1/cam.lin /usr/SYSqtapp/camera/camera
   fi


Title: Re: FOTOren??
Post by: CyberPunk on January 17, 2008, 11:18:06 pm
oh how dumb, I just replaced the variable $MYFAVOR on autorun.txt, but not in cam.lin.

I kept the files in /My_FAVOR, but replaced $MYFAVOR in cam.lin for the full path...

anyway it doesn't work... I'll try it with the files on SD root now...


thanks, and sorry for being this noob -.-"

EDIT: Still doesn't work :@


Title: Re: FOTOren??
Post by: keaglez on January 18, 2008, 12:38:43 am
Try to run your cam.lin script with telnet, see if an error appear...


Title: Re: FOTOren??
Post by: fich on January 18, 2008, 01:46:25 am
what MP did you use?
I use EXTREME


Title: Re: FOTOren??
Post by: CyberPunk on January 18, 2008, 03:31:37 am
what MP did you use?
I use EXTREME

48P Titanium


Title: Re: FOTOren??
Post by: Taurnil on January 18, 2008, 06:48:52 am
AFAIK titanium doesn't use the $MY_FAVOR variable, CMIIW
change the variable to full path in cam.lin


Title: Re: FOTOren??
Post by: CyberPunk on January 18, 2008, 11:33:36 am
AFAIK titanium doesn't use the $MY_FAVOR variable, CMIIW
change the variable to full path in cam.lin

Well, that's what I did, and also tried putting cam.lin and camera into SD root and changing autorun.txt paths to there, but it just saves the picture as moto_0001.


Title: Re: FOTOren??
Post by: keaglez on January 18, 2008, 01:23:03 pm
Hmm... Maybe something wrong with the setconfig?


Title: Re: FOTOren??
Post by: fich on January 18, 2008, 07:01:43 pm
yup,, I dont know whether Titanium recognize "setconfig" command or not :D