add default IP is 192.168.1.155

This commit is contained in:
HELIOS_Mac 2025-08-19 15:11:46 -05:00
parent 961941bbc9
commit 32c7970b92
2 changed files with 17 additions and 9 deletions

View File

@ -32,17 +32,16 @@ if useInfluxDBv1 == False :
nArg = len(sys.argv) nArg = len(sys.argv)
if nArg > 1 : if nArg == 1 :
IP = sys.argv[1] IP = "192.168.1.155"
else : else:
IP = input('Mpod IP address to connect : ') if nArg > 1 :
IP = sys.argv[1]
#Sergio MPOD 128.186.111.101 else :
#ANASEN MPOD 128.186.111.208 IP = input('Mpod IP address to connect : ')
pushToDB = False pushToDB = False
#============== assign a port, to prevent the script run mulitple time #============== assign a port, to prevent the script run mulitple time
s = socket.socket() s = socket.socket()
host = socket.gethostname() host = socket.gethostname()

View File

@ -1,17 +1,26 @@
# Request packages # Request packages
in Ubuntu 20+ ## in Ubuntu 20+
~>sudo apt install python3-pyqt6 snmp snmp-mibs-downloader curl python3-pip libxcb-cursor0 ~>sudo apt install python3-pyqt6 snmp snmp-mibs-downloader curl python3-pip libxcb-cursor0
~>python3 -m pip install pyqt6 influxdb-client ~>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/ 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 # Usage
~>python3 IsegGUI.py <IP> ~>python3 IsegGUI.py <IP>
if no IP is set, the default is 192.168.1.155
# DataBase connection # 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 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