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.

scripitng
#1
hello i made this script i receive to error logs this ( User script:13: attempt to call field 'listen' (a nil value) stack tracebackSmilean anyone help me 

local smtp_server = 'logicmachine email'
local smtp_port = 587
local smtp_user = 'admin'
local smtp_pass = 'admin'
local recipient = 'mariospoulorinis@gmail.com'
local subject = 'Ειδοποίηση: Ενεργοποίηση αισθητήρα βροχής'
local message = 'Ομπρέλα να πάρεις'




event.listen(rain_sensor_ga, function(event)
  if value == true then 
    log
  ' email(smtp_server, smtp_port, smtp_user, smtp_pass, recipient, subject, message)'
   
  end
end)
Reply


Messages In This Thread
scripitng - by mariosp - 22.11.2024, 09:40
RE: scripitng - by Daniel - 22.11.2024, 09:46
RE: scripitng - by mariosp - 22.11.2024, 09:59
RE: scripitng - by Daniel - 22.11.2024, 10:27
RE: scripitng - by mariosp - 22.11.2024, 10:51
RE: scripitng - by Daniel - 22.11.2024, 10:59
RE: scripitng - by mariosp - 22.11.2024, 11:08
RE: scripitng - by Daniel - 22.11.2024, 12:23

Forum Jump: