mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-04-01 00:18:10 +02:00
Use BlitzTUI local code
This commit is contained in:
parent
ba0cfe1537
commit
d4c8321244
@ -242,11 +242,11 @@ class AppWindow(QMainWindow):
|
||||
if IS_WIN32_ENV:
|
||||
return
|
||||
|
||||
if self.rb_info.status != "ready":
|
||||
log.info("skipping updating status_lnd --> no ready signal in info file")
|
||||
return
|
||||
else:
|
||||
log.info("doing updating status_lnd / self.rb_info.status --> {}".format(self.rb_info.status))
|
||||
#if self.rb_info.status != "ready":
|
||||
# log.info("skipping updating status_lnd --> no ready signal in info file")
|
||||
# return
|
||||
#else:
|
||||
# log.info("doing updating status_lnd / self.rb_info.status --> {}".format(self.rb_info.status))
|
||||
|
||||
# log.debug("update_status_lnd due: {}".format(self.status_lnd_due))
|
||||
if self.status_lnd_due <= self.uptime:
|
||||
@ -267,11 +267,11 @@ class AppWindow(QMainWindow):
|
||||
if IS_WIN32_ENV:
|
||||
return
|
||||
|
||||
if self.rb_info.status != "ready":
|
||||
log.info("skipping update_status_lnd_channels --> no ready signal in info file")
|
||||
return
|
||||
else:
|
||||
log.info("doing update_status_lnd_channels / self.rb_info.status --> {}".format(self.rb_info.status))
|
||||
#if self.rb_info.status != "ready":
|
||||
# log.info("skipping update_status_lnd_channels --> no ready signal in info file")
|
||||
# return
|
||||
#else:
|
||||
# log.info("doing update_status_lnd_channels / self.rb_info.status --> {}".format(self.rb_info.status))
|
||||
|
||||
# log.debug("update_status_lnd_channel due: {}".format(self.status_lnd_channel_due))
|
||||
if self.status_lnd_channel_due <= self.uptime:
|
||||
|
@ -11,11 +11,10 @@ source /mnt/hdd/raspiblitz.conf
|
||||
if [ $# -eq 0 ] || [ "$1" = "-h" ] || [ "$1" = "-help" ]; then
|
||||
echo "STILL EXPERIMENTAL - NOT FINISHED"
|
||||
echo "the Blitz-Touch-User-Interface (BlitzTUI) feature"
|
||||
echo "blitz.touchscreen.sh [on|off]"
|
||||
echo "blitz.touchscreen.sh [on|off|update]"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
||||
###################
|
||||
# SWITCH ON
|
||||
###################
|
||||
@ -37,7 +36,7 @@ if [ "$1" = "1" ] || [ "$1" = "on" ]; then
|
||||
fi
|
||||
|
||||
echo "installing BlitzTUI (including python dependencies)"
|
||||
/home/admin/python3-env-lnd/bin/pip install BlitzTUI >/dev/null
|
||||
/home/admin/python3-env-lnd/bin/pip install /home/admin/raspiblitz/home.admin/BlitzTUI/
|
||||
|
||||
# make sure lndlibs are patched for compatibility for both Python2 and Python3
|
||||
if ! grep -Fxq "from __future__ import absolute_import" /home/admin/config.scripts/lndlibs/rpc_pb2_grpc.py; then
|
||||
@ -129,6 +128,15 @@ EOF
|
||||
|
||||
fi
|
||||
|
||||
###################
|
||||
# UPDATE CODE
|
||||
###################
|
||||
|
||||
if [ "$1" = "update" ]; then
|
||||
echo "updating BlitzTUI (including python dependencies) ..."
|
||||
/home/admin/python3-env-lnd/bin/pip install /home/admin/raspiblitz/home.admin/BlitzTUI/
|
||||
fi
|
||||
|
||||
###################
|
||||
# SWITCH OFF
|
||||
###################
|
||||
|
Loading…
x
Reference in New Issue
Block a user