diff --git a/IsegGUI.py b/IsegGUI.py index 3d406d9..4afee5d 100755 --- a/IsegGUI.py +++ b/IsegGUI.py @@ -32,17 +32,16 @@ if useInfluxDBv1 == False : nArg = len(sys.argv) -if nArg > 1 : - IP = sys.argv[1] -else : - IP = input('Mpod IP address to connect : ') - -#Sergio MPOD 128.186.111.101 -#ANASEN MPOD 128.186.111.208 +if nArg == 1 : + IP = "192.168.1.155" +else: + if nArg > 1 : + IP = sys.argv[1] + else : + IP = input('Mpod IP address to connect : ') pushToDB = False - #============== assign a port, to prevent the script run mulitple time s = socket.socket() host = socket.gethostname() diff --git a/README.md b/README.md index ea16b91..0ccba19 100644 --- a/README.md +++ b/README.md @@ -1,17 +1,26 @@ # Request packages -in Ubuntu 20+ +## in Ubuntu 20+ ~>sudo apt install python3-pyqt6 snmp snmp-mibs-downloader curl python3-pip libxcb-cursor0 ~>python3 -m pip install pyqt6 influxdb-client also, download the https://fsunuc.physics.fsu.edu/wiki/images/5/53/WIENER-CRATE-MIB.txt and put in /usr/share/snmp/mibs/ +## in Mac + +install snmp, also + + ~>python3 -m pip install pyqt6 influxdb-client + +also put the https://fsunuc.physics.fsu.edu/wiki/images/5/53/WIENER-CRATE-MIB.txt and put in /usr/share/snmp/mibs # Usage ~>python3 IsegGUI.py +if no IP is set, the default is 192.168.1.155 + # DataBase connection for influxDB V1, simply put the database IP. since 2024, we upgraded to influxDB V2, a token is needed for secure connection. For Token, please check https://fsunuc.physics.fsu.edu/elog/fsunuc/28