Merge branch 'HELIOS' of https://fsunuc.physics.fsu.edu/git/rtang/IsegSNMPGUI into HELIOS
This commit is contained in:
commit
f153bb2300
15
IsegGUI.py
15
IsegGUI.py
|
@ -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()
|
||||||
|
|
11
README.md
11
README.md
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user