This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Third party library
#1
Hey,

I wish to integrate firebase so i can send notification from the LM5 to a custom app. There is a lua library for this:
https://github.com/mopo3ilo/lua-firebase

I have figured out how to add this under the 'libs' folder via ftp, but i'm having issues getting it to work. It has certain dependencies which i cannot seem to add.
One of them being:
https://github.com/zhaozg/lua-openssl
I am uncertain how I would add this to the LM... It seems I am required to build it? Does someone have experience with this? Could someone help me with this?

Also is there a save place on the LM file system to store a 'service account json file' file which serves a authorization to send firebase messages? Scripts would need access to this file. It seems unsafe to store it under 'home/ftp'...

Thanks!
Reply
#2
Try the attached library (a modified version of lua-resty-openssl). Unzip and upload to libs/ via FTP. For the account JSON you can rewrite the function to use storage instead of a plain file.

Attached Files
.zip   openssl.zip (Size: 95.54 KB / Downloads: 16)
Reply


Forum Jump: