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.

Clear the Alert page from the visualization
#2
Hi Cekca,

Here is a post command to clear the alerts, it sends same command when pushing the button on the backend.

Code:
require('json')
require('socket.url')
require('socket.http')

fields = {
 alerts = true,
}

data = json.encode(fields)
post = 'data=' .. socket.url.escape(data)

ip = '127.0.0.1'
username = 'admin'
password = 'admin'

res, err = socket.http.request('http://' .. username .. ':' .. password .. '@' .. ip .. '/scada-main/general/reset', post)
log(res, err)

BR,

Erwin
Reply


Messages In This Thread
RE: Clear the Alert page from the visualization - by Erwin van der Zwart - 13.12.2016, 23:28

Forum Jump: