maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   [Support thread] Billboard Standby Screen (https://talk.maemo.org/showthread.php?t=84507)

slarti 2013-08-29 14:05

Re: [Support thread] Billboard Standby Screen
 
Quote:

Originally Posted by Mikkosssss (Post 1370239)
Edit2: Is there good white lock icon in phone or do I need to make my own? :p

http://www.fileformat.info/info/unic...f512/index.htm

unlocked:

http://www.fileformat.info/info/unic...f513/index.htm

slarti 2013-08-29 15:03

Re: [Support thread] Billboard Standby Screen
 
Quote:

Originally Posted by Schturman (Post 1370240)
Noticed that billboard stoped to show my month script:
Code:

#!/bin/sh

month=$(date +%m)
echo | awk -v d=$((month)) '{split("בינואר,בפברואר,במרץ,באפריל,במאי,ביוני,ביולי,באוגוסט,בספטמבר,באוקטובר,בנובמבר,בדצמבר",a,","); printf a[d]}'

I run it like this:
Code:

{script:sh /home/user/my_month.sh}
Don't know what a reason that it stoped to work....
Any help ?
Thanks

There is an arithmetic syntax error in the index of the month. $month at the moment returns the string "08" and $((month)) returns the error. I really have no idea why this is so and can't be arsed to find out.

In python, it would be something like this:

Code:

#!/usr/bin/python
from datetime import datetime

months = ['Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec']
month = months[datetime.now().month-1]
print month


Mikkosssss 2013-08-29 15:09

Re: [Support thread] Billboard Standby Screen
 
At first I trought that those are good. But when I tried em I realised that icons wont show because they are black+transparent not white. :D
I might just invert those.

slarti 2013-08-29 15:13

Re: [Support thread] Billboard Standby Screen
 
Quote:

Originally Posted by Mikkosssss (Post 1370440)
At first I trought that those are good. But when I tried em I realised that icons wont show because they are black+transparent not white. :D
I might just invert those.

They show up just fine for me in any color I have set up in BB. Are you sure your font supports it and you can see it at command line?

Mikkosssss 2013-08-29 16:00

Re: [Support thread] Billboard Standby Screen
 
Quote:

Originally Posted by slarti (Post 1370442)
They show up just fine for me in any color I have set up in BB. Are you sure your font supports it and you can see it at command line?

Well I dont know how to use those as character so I used them as png. :D
Just copy one of those codes to my script?
Whitch encoding it is?

slarti 2013-08-29 16:20

Re: [Support thread] Billboard Standby Screen
 
Quote:

Originally Posted by Mikkosssss (Post 1370451)
Well I dont know how to use those as character so I used them as png. :D

:D
Quote:

Originally Posted by Mikkosssss (Post 1370451)
Just copy one of those codes to my script?

Yes, in hex format.
Quote:

Originally Posted by Mikkosssss (Post 1370451)
Whitch encoding it is?

Billboard expects UTF-8.

Try

Code:

echo -ne '\xF0\x9F\x94\x93'

Mikkosssss 2013-08-29 16:39

Re: [Support thread] Billboard Standby Screen
 
Billboard doesnt know that character so its only square. :(

Schturman 2013-08-29 19:10

Re: [Support thread] Billboard Standby Screen
 
1 Attachment(s)
Quote:

Originally Posted by slarti (Post 1370437)
There is an arithmetic syntax error in the index of the month. $month at the moment returns the string "08" and $((month)) returns the error. I really have no idea why this is so and can't be arsed to find out.

In python, it would be something like this:

Code:

#!/usr/bin/python
from datetime import datetime

months = ['Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec']
month = months[datetime.now().month-1]
print month


Thank you very much ! Now it work again :)
But now I see year in the second line.. In previous version of script (when it worked) it shown year also in the first line with day of week, date, name of month..
Can i somehow get the year in the first line too ?
Thanks

lancewex 2013-08-29 19:15

Re: [Support thread] Billboard Standby Screen
 
Quote:

Originally Posted by Mikkosssss (Post 1370301)
You could make script that does multiply C by 1.8, and then add 32.
Then you get F. :)

Someone could, but *I* can't. :-j

Quaddy 2013-08-29 22:59

Re: [Support thread] Billboard Standby Screen
 
try adding
Code:

chr(0)
right at the end of your month script

Quote:

Originally Posted by Schturman (Post 1370519)
Thank you very much ! Now it work again :)
But now I see year in the second line.. In previous version of script (when it worked) it shown year also in the first line with day of week, date, name of month..
Can i somehow get the year in the first line too ?
Thanks



All times are GMT. The time now is 03:00.

vBulletin® Version 3.8.8