UI updates

This commit is contained in:
sam 2020-09-23 00:44:08 +02:00 committed by alban
parent 2221f80dce
commit f9578431f9
8 changed files with 19 additions and 14 deletions

View File

@ -15,18 +15,20 @@ import configparser
from libs3 import gstt
import ast
import numpy as np
import updateUI
config = configparser.ConfigParser()
config.read(gstt.ConfigName)
qList = [
{"q":"The server IP address","c":"General","k":"ljayserverip"},
{"q":"How many lasers to use","c":"General","k":"lasernumber"},
{"q":"Laser 0 IP address","c":"laser0","k":"ip"},
{"q":"Laser 1 IP address","c":"laser1","k":"ip"},
{"q":"Laser 2 IP address","c":"laser2","k":"ip"},
{"q":"Laser 3 IP address","c":"laser3","k":"ip"}
{"q":"The server IP address ","c":"General","k":"ljayserverip"},
{"q":"The IP address or domain for webui","c":"General","k":"wwwip"},
{"q":"How many lasers to use ","c":"General","k":"lasernumber"},
{"q":"Laser 0 IP address ","c":"laser0","k":"ip"},
{"q":"Laser 1 IP address ","c":"laser1","k":"ip"},
{"q":"Laser 2 IP address ","c":"laser2","k":"ip"},
{"q":"Laser 3 IP address ","c":"laser3","k":"ip"}
]
stop = False
while stop == False :
@ -52,4 +54,7 @@ while stop == False :
new_value = input("Please enter the new value:")
config.set(choice["c"],choice["k"],new_value)
config.write(open(gstt.ConfigName,'w'))
print(choice["c"],choice["k"])
if choice["k"] == "wwwip":
updateUI.www(new_value)

View File

@ -2,7 +2,7 @@
# -*- coding: utf-8 -*-
# -*- mode: Python -*-
'''
LJay/LJ
LJ
v0.7.0
Settings Handler

View File

@ -4,7 +4,7 @@
// LJ websocket address. IP will be updated at LJ startup according to LJ.conf wwwIP
var LJ = 'ws://192.168.1.48:9001/'
var LJ = 'ws://192.168.2.43:9001/'
//

View File

@ -604,7 +604,7 @@
<!-- LJ style WS : A nettoyer ! -->
<script type="text/javascript">
var LJ = 'ws://192.168.1.48:9001/'
var LJ = 'ws://192.168.2.43:9001/'
var _WS = {
uri: LJ,

View File

@ -417,7 +417,7 @@
<script type="text/javascript">
var LJ = 'ws://192.168.1.48:9001/'
var LJ = 'ws://192.168.2.43:9001/'
var pl = "";

View File

@ -231,7 +231,7 @@
<!-- LJ style WS : A nettoyer ! -->
<script type="text/javascript">
var LJ = 'ws://192.168.1.48:9001/'
var LJ = 'ws://192.168.2.43:9001/'
var _WS = {

View File

@ -197,7 +197,7 @@
<script type="text/javascript">
var LJ = 'ws://192.168.1.48:9001/'
var LJ = 'ws://192.168.2.43:9001/'
var pl = "";

View File

@ -378,8 +378,8 @@
<script type="text/javascript">
var LJ = 'ws://192.168.1.48:9001/'
var LJ = 'ws://192.168.1.48:9001/'
var LJ = 'ws://192.168.2.43:9001/'
var LJ = 'ws://192.168.2.43:9001/'
var _WS = {
uri: LJ,