add default IP is 192.168.1.155
This commit is contained in:
parent
961941bbc9
commit
32c7970b92
15
IsegGUI.py
15
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()
|
||||
|
|
11
README.md
11
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 <IP>
|
||||
|
||||
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
|
||||
|
|
Loading…
Reference in New Issue
Block a user