solo2500
Posts: 123
Joined: Sat Jul 09, 2016 12:38 am

Help using a variable in a draw command

Wed Nov 09, 2016 10:43 pm

I have VERY little programing experience. Please bare with me.

I'm trying to write some text on to an image using the following commands:

stringvariable= 52°F

-draw "text 47,392 'stringvariable'" -fill white \

This does not work.

The example I'm trying to copy looks like this:
-draw "text 47,302 '<#temp>°F'" -fill white \
However I don't understand the <#temp> part?

Any help would be most appreciated!!!
I'm a total novice, non-programer (...basically a hack.)

User avatar
dasmanul
Posts: 502
Joined: Wed Sep 30, 2015 10:20 am
Location: Frankfurt, Germany

Re: Help using a variable in a draw command

Wed Nov 09, 2016 11:00 pm

Please post your complete code and describe in which way it "does not work". People will be much more likely to be able to help you with that information.

User avatar
elParaguayo
Posts: 1943
Joined: Wed May 16, 2012 12:46 pm
Location: London, UK

Re: Help using a variable in a draw command

Thu Nov 10, 2016 12:15 am

If possible, please also post a link to where you found the original code. This doesn't immediately look like python so you may be posting in the wrong forum.
RPi Information Screen: plugin based system for displaying weather, travel information, football scores etc.

User avatar
Paeryn
Posts: 2966
Joined: Wed Nov 23, 2011 1:10 am
Location: Sheffield, England

Re: Help using a variable in a draw command

Thu Nov 10, 2016 12:23 am

It very much resembles part of the arguments to ImageMagick's command-line convert program
She who travels light — forgot something.

Return to “Python”