Node-Red Templates fonts

1,308 views
Skip to first unread message

Venkatesh E

unread,
Jan 22, 2017, 11:07:21 PM1/22/17
to Node-RED
Hello all,

I am using this script in a node-red template

@font-face {
  font-family: "D7MI";
  src: url("/myfonts/DSEG7Modern-Italic.woff") format('woff');
}

Can you guys please let me know where this fonts folder should be ??

I am running node-red on linux and my node-red path = /home/venkat/.node-red

thanks
Venkat

Mark Setrem

unread,
Jan 23, 2017, 1:53:08 AM1/23/17
to Node-RED

You can put it wherever you want it to be.  As you set it in the settings file. Seethe  httpStatic config option. This option identifies a local directory from which to serve static web content.

http://nodered.org/docs/configuration.html


Venkatesh E

unread,
Jan 23, 2017, 11:09:20 AM1/23/17
to Node-RED
Mark... thank you so much, the setting worked for me. Appreciated.

Venkatesh E

unread,
Jan 23, 2017, 12:04:05 PM1/23/17
to Node-RED
Mark, I have another question regarding using files inside "function"


I am trying send a pushbullet image using this JSON string inside a function and this is connected to pushbullet

----------------
return {pushtype:'file',body:'Hello Burgler', file_name:"/burgler.jpg", file_type:'image/jpeg' };
----------------

when I execute .. I am getting error "file doesn't exists". So where the file "burgler.jpg" should be placed (folder) ?? 




On Monday, January 23, 2017 at 12:23:08 PM UTC+5:30, Mark Setrem wrote:

Mark Setrem

unread,
Jan 23, 2017, 12:19:11 PM1/23/17
to node...@googlegroups.com
That's a question about the Pushbullet node you are using not the function node. As it's a totally different question you would be better off starting a new thread so that people who use the pushbullet node will see it.

Sent from my iPhone
--
http://nodered.org
 
Join us on Slack to continue the conversation: http://nodered.org/slack
---
You received this message because you are subscribed to a topic in the Google Groups "Node-RED" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/node-red/6822748MolQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to node-red+u...@googlegroups.com.
To post to this group, send email to node...@googlegroups.com.
Visit this group at https://groups.google.com/group/node-red.
To view this discussion on the web, visit https://groups.google.com/d/msgid/node-red/c83f4288-cb21-49ca-8d02-cf6789df1382%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages