The Following 10 Users Say Thank You to low For This Useful Post: | ||
![]() |
2013-08-11
, 04:36
|
|
Posts: 439 |
Thanked: 282 times |
Joined on Oct 2012
|
#1382
|
![]() |
2014-02-03
, 15:43
|
|
Posts: 132 |
Thanked: 34 times |
Joined on May 2011
@ sudan
|
#1383
|
![]() |
2014-02-03
, 15:56
|
|
Posts: 700 |
Thanked: 846 times |
Joined on Nov 2009
|
#1384
|
The Following User Says Thank You to No!No!No!Yes! For This Useful Post: | ||
![]() |
2014-02-03
, 17:22
|
|
Posts: 132 |
Thanked: 34 times |
Joined on May 2011
@ sudan
|
#1385
|
![]() |
2014-04-20
, 21:26
|
|
Posts: 54 |
Thanked: 89 times |
Joined on May 2011
@ Vlaardingen, Netherlands
|
#1386
|
![]() |
2014-04-21
, 20:16
|
|
Posts: 700 |
Thanked: 846 times |
Joined on Nov 2009
|
#1387
|
I want to create an icon on the normal desktop for email with an unread email counter and when clicked it should open Claws-mail. The Gmail script from the wiki doesn't seem to work (anymore?)
I have managed to get something with curl in the console using the command from here 9adding -k option but have no idea how and where to fit this as script in qbw.
I think it can be done in a script like mentioned this. but exactly how to do this I don't know
Is this possible? any idea's/help ?
Nokia-N900-51-1:~# wget -t 1 -T 3 -q -O - 'https://nonono.yes:nononoyes@mail.google.com/mail/feed/atom' --no-check-certificate | awk 'BEGIN{m=2}/<fullcount>.+<\/fullcount>/{gsub(/<[^>]*>/,"",$0);print $1 " New";if($1>0)m=1;else m=0}END{exit m}'
0 New
Nokia-N900-51-1:~#
The Following 5 Users Say Thank You to No!No!No!Yes! For This Useful Post: | ||
![]() |
2014-04-24
, 10:45
|
|
Posts: 54 |
Thanked: 89 times |
Joined on May 2011
@ Vlaardingen, Netherlands
|
#1388
|
if [ "$QBW_EXEC_REASON" == "QBW_TIMER_UPDATE" ]; then
# get the new mail info
wget -t 1 -T 3 -q --user=myusername --password=myp@ssword -O - 'https://mail.google.com/mail/feed/atom' --no-check-certificate | awk 'BEGIN{m=2}/<fullcount>.+<\/fullcount>/{gsub(/<[^>]*>/,"",$0);print $1 " New";if($1>0)m=1;else m=0}END{exit m}'
fi;
if [ "$QBW_EXEC_REASON" == "QBW_CLICK" ]; then
# start claws-mail
/usr/bin/dbus-send --dest=com.nokia.HildonDesktop.AppMgr /com/nokia/HildonDesktop/AppMgr com.nokia.HildonDesktop.AppMgr.LaunchApplication string:claws-mail
fi;
The Following User Says Thank You to Whispering Weasel For This Useful Post: | ||
![]() |
2014-04-25
, 19:03
|
|
Posts: 700 |
Thanked: 846 times |
Joined on Nov 2009
|
#1389
|
Thanks, it is almost working now, I had issues with wget due to @ in the password, solved it..
Now it is only displaying the mailbox_empty.png but it does update the mailcount, simply pasting the command in the script doesn't let it return the correct state?
My programming skills are ehm.. at noob levelso i got this far:
PHP Code:
if [ "$QBW_EXEC_REASON" == "QBW_TIMER_UPDATE" ]; then
# get the new mail info
wget -t 1 -T 3 -q --user=myusername --password=myp@ssword -O - 'https://mail.google.com/mail/feed/atom' --no-check-certificate | awk 'BEGIN{m=2}/<fullcount>.+<\/fullcount>/{gsub(/<[^>]*>/,"",$0);print $1 " New";if($1>0)m=1;else m=0}END{exit m}'
fi;
if [ "$QBW_EXEC_REASON" == "QBW_CLICK" ]; then
# start claws-mail
/usr/bin/dbus-send --dest=com.nokia.HildonDesktop.AppMgr /com/nokia/HildonDesktop/AppMgr com.nokia.HildonDesktop.AppMgr.LaunchApplication string:claws-mail
fi;
if [ "$QBW_EXEC_REASON" == "QBW_TIMER_UPDATE" ]; then
# get the new mail info
wget -t 1 -T 3 -q --user=myusername --password=myp@ssword -O - 'https://mail.google.com/mail/feed/atom' --no-check-certificate | awk 'BEGIN{m=2}/<fullcount>.+<\/fullcount>/{gsub(/<[^>]*>/,"",$0);print $1 " New";if($1>0)m=1;else m=0}END{exit m}'
exit $?
fi;
if [ "$QBW_EXEC_REASON" == "QBW_CLICK" ]; then
# start claws-mail
/usr/bin/dbus-send --dest=com.nokia.HildonDesktop.AppMgr /com/nokia/HildonDesktop/AppMgr com.nokia.HildonDesktop.AppMgr.LaunchApplication string:claws-mail
# get the new mail info
wget -t 1 -T 3 -q --user=myusername --password=myp@ssword -O - 'https://mail.google.com/mail/feed/atom' --no-check-certificate | awk 'BEGIN{m=2}/<fullcount>.+<\/fullcount>/{gsub(/<[^>]*>/,"",$0);print $1 " New";if($1>0)m=1;else m=0}END{exit m}'
exit $?
fi;
The Following 2 Users Say Thank You to No!No!No!Yes! For This Useful Post: | ||
![]() |
2014-04-27
, 20:15
|
|
Posts: 54 |
Thanked: 89 times |
Joined on May 2011
@ Vlaardingen, Netherlands
|
#1390
|
today I sat down to build something from QBW...
basically it's a text clock telling the time, which also says the time via espeak when clicked and opens the clock app when double clicked.
I am using a font from the Resident Evil theme, and espeak obviously:
Kind regards,
Sarah
Last edited by low; 2013-05-31 at 10:37. Reason: forty not fourty... that happens when you never write out numbers anymore