View Single Post
Posts: 73 | Thanked: 35 times | Joined on Jun 2013
#952
Schturman wrote:

"Thanks, but not helped... The "year" is still on the second line."
lets try adding the space in the script after each month eg. ('Jan ','Feb '), and removing single space in billboard immediately before {year} incase thats somehow breaking line

also adding +chr(0) after print function to remove spaces

try this as a test, in principle. (i know its not right language) but it works here:

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)+chr(0)
billboard:

Code:
...etc...
{day} {script: python /home/user/my_month_he.py}{year}
{ip}
...etc...
p.s. if your script is is /home/user directory, no need to specify path in billboard, just {script: python my_month_he.py} will suffice!


Last edited by Quaddy; 2013-08-30 at 00:22.
 

The Following User Says Thank You to Quaddy For This Useful Post: