LogicMachine Forum
Alert manager - Printable Version

+- LogicMachine Forum (https://forum.logicmachine.net)
+-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1)
+--- Forum: OLD visualization (https://forum.logicmachine.net/forumdisplay.php?fid=9)
+--- Thread: Alert manager (/showthread.php?tid=2044)



Alert manager - Tokatubs - 23.04.2019

   

Is there some logic in these alarm that makes me able to fix them.


RE: Alert manager - admin - 24.04.2019

This is probably caused by yr.no weather script. You need to modify it to use tlsv1.2 for secure communication.

Code:
url = 'PUT_XML_URL_HERE' data = {} res, err = require('ssl.https').request({   method = 'GET',   url = url,   protocol = 'tlsv12',   sink = require('ltn12').sink.table(data) }) if res then   data = table.concat(data) else   alert('Fetch failed: ' .. tostring(err)) end