Third party library - Printable Version +- Logic Machine Forum (https://forum.logicmachine.net) +-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1) +--- Forum: Scripting (https://forum.logicmachine.net/forumdisplay.php?fid=8) +--- Thread: Third party library (/showthread.php?tid=3822) |
Third party library - Smeagol - 22.01.2022 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! RE: Third party library - admin - 24.01.2022 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. |