fixes main scripts
This commit is contained in:
@@ -1,10 +1,5 @@
|
||||
from poc_to_modbus import ModbusTCPMongoServer
|
||||
|
||||
|
||||
def main():
|
||||
modbus_tcp_server = ModbusTCPMongoServer()
|
||||
modbus_tcp_server.run()
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
main()
|
||||
modbus_tcp_server = ModbusTCPMongoServer()
|
||||
modbus_tcp_server.run()
|
||||
|
||||
@@ -6,11 +6,5 @@ PLC_IP_ADDRESS = getenv("PLC_IP_ADDRESS")
|
||||
if not PLC_IP_ADDRESS:
|
||||
exit("No PLC_IP_ADDRESS set in the environment variables")
|
||||
|
||||
|
||||
def main():
|
||||
scraper_thread = PLC_to_Mongo(PLC_IP_ADDRESS)
|
||||
scraper_thread.run()
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
main()
|
||||
scraper_thread = PLC_to_Mongo(PLC_IP_ADDRESS)
|
||||
scraper_thread.run()
|
||||
|
||||
Reference in New Issue
Block a user