I love to give some irony and humor to my messages and scripts (log included)... Emoji was a good way but unfortunately there are few issues on this
UNTIL NOW

I'm quite pround to share with you my lua emoji library for Domoticz and LUA that cam be used in dzvents as well
due to a strong limitatin in using unicode in LUA (or at least I did not able to find a way to encode it), the hard and boaring part is to include all emoji into the module... these are a few just for testing, I will fill them up as soon as I will need them

The main deal is this:
create a table with the names as index and the copy/paste of the emoji as a value
then a function that retreive and return the unicode emoji as a string for you use....
(I encounter few issues with copy/paste... you'd better do this on the same hardware there domoticz is running)
Install
rename the attached file with extension .lua and place into domoticz/scripts/lua)
Usage
at the top of your script include these 2 lines:
Code: Select all
package.path = package.path .. ';' .. '/home/pi/domoticz/scripts/lua/?.lua'
local emoji = require('libEmoji')
- emoji.getEmo(name)
use this to retreive the emojy by calling its name
example in dzVents
Code: Select all
domoticz.log(emoji.getEmo('winking face'))
Code: Select all
local strTest = 'my Text with an emoji '..emoji.getEmo('winking face'))
print the available library with their names
Code: Select all
domoticz.log(emoji.dumpEmo())
hope you enjoy it!!grinning squinting face ==>![]()
nerd face ==>![]()
exploding head ==>![]()
face with monocle ==>![]()
kissing face with closed eyes ==>![]()
hugging face ==>![]()
loudly crying face ==>![]()
frowning face ==> βΉ
β crazy face ==>![]()
relieved face ==>![]()
squinting face with tongue ==>![]()
slightly frowning face ==>![]()
face with head-bandage ==>![]()
face with thermometer ==>![]()
grinning face with big eyes ==>![]()
worried face ==>![]()
weary face ==>![]()
upside-down face ==>![]()
grimacing face ==>![]()
sleeping face ==>![]()
grinning face with sweat ==>![]()
confused face ==>![]()
sleepy face ==>![]()
face without mouth ==>![]()

