Alterra

notify

notify(title, message?, kind?) sends a notification to the Alterra app.

notify("Hello") -- this will use info
notify("Done", "Script finished")
notify("Warning", "Entering ecological dead zone", "warning")
notify("Failed", "Failed to do thing", "error")

Parameters

  • title (string, required)
  • message (string, optional)
  • kind (string, optional): success, warning, error, or info

Notes

Script notifications are off by default. notify waits until the app actually shows the notification, so it can't be called from actor threads.