Open OPC UA
Link: https://github.com/netlabcode/python-opcua
from opcua import Server
from random import randint
import datetime
import time
server = Server()
url = "opc.tcp://0.0.0.0:8080"
server.set_endpoint(url)
name="OPC_UA_SERVER"
addspace = server.register_namespace(name)
node = server.get_objects_node()
Param = node.add_object(addspace,"Parameters")
Temp = Param.add_variable(addspace,"Temperature",0)
Time = Param.add_variable(addspace,"Time",0)
Temp.set_writable()
server.start()
print("Server start at {}".format(url))