Use font awesome on touch Control pages

Posted on
Mon May 13, 2019 5:55 am
norcoscia offline
User avatar
Posts: 1206
Joined: Sep 09, 2015

Re: Use font awesome on touch Control pages

Cool - BTW - where you able to access my sense cloud energy meter - just wondering if any problems seeing it way over there across the pond?

_______
Norm

Posted on
Mon May 13, 2019 8:11 am
howartp offline
Posts: 4559
Joined: Jan 09, 2014
Location: West Yorkshire, UK

Re: Use font awesome on touch Control pages

Ok, beta available here: https://github.com/howartp84/FontAwesome/releases

PreRequisites:

  • Need to install Pillow package, to enable coloured icons. "sudo pip install Pillow" should do the trick
  • Need to register for a free account at https://cloudconvert.com/ - this is doing the conversions from SVG to PNG. You can do 15 minutes worth of conversions per day for free, at ~5 seconds per conversion, which is around 180 icons per day.
  • OPTIONALLY register for a Pro account at https://fontawesome.com/

The plugin comes with the v5.8.2 free icons builtin; you can download and save Pro icons from https://fontawesome.com/download (the Desktop version) and extract the content of the "svgs" folder into \Library\Application Support\Perceptive Automation\Indigo 7.3\Plugins\FontAwesome.indigoPlugin\Contents\Server Plugin\svgs. (There's a text file called "Paste PRO files here.txt"

Once installed, grab your CloudConvert API key from https://cloudconvert.com/dashboard/api/v1/keys and enter it in the plugin config.

Create either a "Font Awesome Single Icon" device, or a "Font Awesome Downloader" device.

The former asks for an icon name (eg 'alarm-clock') and style (eg 'solid') taken from the FontAwesome icon gallery at https://fontawesome.com/icons?d=gallery
The latter lists all the icons in the plugin, free and/or PRO, for you to multi-select.

Upon saving, the icon(s) you've selected/typed will download. You can go back in at any time and select or type (a) new icon(s) - they'll download when you hit save.

See the Indigo log for the folder location.

Have fun, see you how you go...

Posted on
Mon May 13, 2019 8:38 am
norcoscia offline
User avatar
Posts: 1206
Joined: Sep 09, 2015

Re: Use font awesome on touch Control pages

when I try to install pillow I get
Attachments
2019-05-13_07-37-50.jpeg
2019-05-13_07-37-50.jpeg (3.04 KiB) Viewed 1808 times

_______
Norm

Posted on
Mon May 13, 2019 9:18 am
CliveS offline
Posts: 770
Joined: Jan 10, 2016
Location: Medomsley, County Durham, UK

Re: Use font awesome on touch Control pages

norcoscia wrote:
when I try to install pillow I get


Try Jay's method of installing Pip on your Mac

https://forums.indigodomo.com/viewtopic.php?f=108&t=19126

Code: Select all
 FatBook:~ jay$ sudo easy_install pip

CliveS

Indigo 2023.2.0 : macOS Ventura 13.6.3 : Mac Mini M2 : 8‑core CPU and 10‑core GPU : 8 GB : 256GB SSD
----------------------------------------------------------------------------------
The best way to get the right answer on the Internet is not to ask a question, it's to post the wrong answer

Posted on
Mon May 13, 2019 9:27 am
howartp offline
Posts: 4559
Joined: Jan 09, 2014
Location: West Yorkshire, UK

Re: Use font awesome on touch Control pages

Took me half a day to get Pillow installed as my version of Pip was 12 major versions out of date!

I’m Windows not Mac so I haven’t a clue when it comes to packages like that; I know @autolog is including pre-compiled version in his roon plugin, but I’m so far behind I don’t know if my version will work!


Sent from my iPhone using Tapatalk Pro

Posted on
Mon May 13, 2019 9:34 am
norcoscia offline
User avatar
Posts: 1206
Joined: Sep 09, 2015

Re: Use font awesome on touch Control pages

thanks, installing

sudo easy_install pip

first allowed me to install Pillow with

sudo pip install Pillow

_______
Norm

Posted on
Mon May 13, 2019 9:49 am
norcoscia offline
User avatar
Posts: 1206
Joined: Sep 09, 2015

Re: Use font awesome on touch Control pages

OK, looks like it is working - to test I created device called Light Bulb FA - I see it in my device list but not sure what to do with it?

Normally I reference .png graphics on my control pages - I have one for unknown state, one for on state and one for off state - how do I use the FA device?
Attachments
2019-05-13_08-46-57.jpeg
2019-05-13_08-46-57.jpeg (30.39 KiB) Viewed 1798 times

_______
Norm

Posted on
Mon May 13, 2019 10:04 am
howartp offline
Posts: 4559
Joined: Jan 09, 2014
Location: West Yorkshire, UK

Re: Use font awesome on touch Control pages

The plugin stores images into path given in Log.

You need to move them, and rename if using +on/+off versions as you would any other image.


Sent from my iPhone using Tapatalk Pro

Posted on
Mon May 13, 2019 10:23 am
norcoscia offline
User avatar
Posts: 1206
Joined: Sep 09, 2015

Re: Use font awesome on touch Control pages

OK, need to run out but will try that later - so be be sure I understand - that path leads to the FA plug-in. So I need to show package contents to look inside. I think if you make any changes it might be better to have them stored in a normal folder that can be specified with a path statement?

Pretty cool so thanks for making!

_______
Norm

Posted on
Mon May 13, 2019 10:27 am
howartp offline
Posts: 4559
Joined: Jan 09, 2014
Location: West Yorkshire, UK

Re: Use font awesome on touch Control pages

No, the saved (output) png images are saved in ..../IndigoWebServer/Images/Controls just like any other images you’d saved yourself.

I didn’t put them into device or static subfolders because it depends what you’re using them for as to which subfolder you need them in.


Sent from my iPhone using Tapatalk Pro

Posted on
Mon May 13, 2019 3:03 pm
norcoscia offline
User avatar
Posts: 1206
Joined: Sep 09, 2015

Re: Use font awesome on touch Control pages

OK - thx - so once the image is created then the device is of no use and can be deleted?

_______
Norm

Posted on
Mon May 13, 2019 3:35 pm
howartp offline
Posts: 4559
Joined: Jan 09, 2014
Location: West Yorkshire, UK

Re: Use font awesome on touch Control pages

Yes.


Sent from my iPhone using Tapatalk Pro

Posted on
Tue May 14, 2019 2:47 pm
howartp offline
Posts: 4559
Joined: Jan 09, 2014
Location: West Yorkshire, UK

Re: Use font awesome on touch Control pages

Plugin forum now available at: viewforum.php?f=314

Who is online

Users browsing this forum: No registered users and 3 guests