Skip to content

Commit

Permalink
Update Nextion
Browse files Browse the repository at this point in the history
Alert is not stoppable from display
  • Loading branch information
BjoernSch committed Jun 9, 2018
1 parent 2a9011f commit b6adb66
Show file tree
Hide file tree
Showing 13 changed files with 7 additions and 11 deletions.
Binary file added nextion/NX3224T028_v2.11.HMI
Binary file not shown.
File renamed without changes.
5 changes: 0 additions & 5 deletions software/usr/sbin/sende_whatsapp.sh

This file was deleted.

12 changes: 6 additions & 6 deletions software/usr/sbin/wlt_2_nextion.py
Original file line number Diff line number Diff line change
Expand Up @@ -972,7 +972,7 @@ def NX_display():
global temps_event, channels_event, pitmaster_event, pitmasterconfig_event
global Config

nextion_versions = ['v2.10']
nextion_versions = ['v2.11']

# Version des Displays prüfen
display_version = str(NX_getvalue('main.version.txt'))
Expand Down Expand Up @@ -1292,16 +1292,16 @@ def NX_display():
if event['data']['area'] == 5:
if event['data']['id'] == 0:
if event['data']['action'] == 0:
logger.debug(_(u'Shutting down...'))
logger.info(_(u'Shutting down...'))
todo_setvalues(pi_down = 1)
elif event['data']['id'] == 1:
if event['data']['action'] == 0:
logger.debug(_(u'Rebooting...'))
logger.info(_(u'Rebooting...'))
todo_setvalues(pi_reboot = 1)
elif event['data']['id'] == 3:
if event['data']['action'] == 0:
# WLAN scannen
logger.debug(_(u'Scanning WLANs'))
logger.info(_(u'Scanning WLANs'))
ssids = wlan_getssids()
ssids_i = 0
logger.debug('SSIDs:' + str(ssids))
Expand All @@ -1327,12 +1327,12 @@ def NX_display():
NX_sendvalues({'main.ssid.txt:35': ssids[ssids_i]})
elif event['data']['id'] == 4:
if event['data']['action'] == 0:
logger.debug(_(u'Create new logfile!'))
logger.info(_(u'Create new logfile!'))
todo_setvalues(create_new_log = 1)
elif event['data']['area'] == 6:
if event['data']['id'] == 0:
if event['data']['action'] == 0:
logger.debug(_(u'Alert acknowledged!'))
logger.info(_(u'Alert acknowledged!'))
alert_setack()
NX_eventq.task_done()
elif temps_event.is_set():
Expand Down
Binary file modified software/usr/share/WLANThermo/nextion/NX3224K024_0.tft
Binary file not shown.
Binary file modified software/usr/share/WLANThermo/nextion/NX3224K024_180.tft
Binary file not shown.
Binary file modified software/usr/share/WLANThermo/nextion/NX3224K028_0.tft
Binary file not shown.
Binary file modified software/usr/share/WLANThermo/nextion/NX3224K028_180.tft
Binary file not shown.
Binary file modified software/usr/share/WLANThermo/nextion/NX3224T024_0.tft
Binary file not shown.
Binary file modified software/usr/share/WLANThermo/nextion/NX3224T024_180.tft
Binary file not shown.
Binary file modified software/usr/share/WLANThermo/nextion/NX3224T028_0.tft
Binary file not shown.
Binary file modified software/usr/share/WLANThermo/nextion/NX3224T028_180.tft
Binary file not shown.
1 change: 1 addition & 0 deletions software/var/www/control/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -713,6 +713,7 @@
echo " <head> <meta http-equiv=\"refresh\" content=\"1;URL='config.php'\"></head>
<body> <h2>" . gettext("Update flag has been set...") . "</h2></body>";
echo "</div>";
$_SESSION["nextionupdate"] = True;
} elseif(isset($_GET["calibrate-display"]) && $_GET["calibrate-display"] == "true") {
$ini['ToDo']['calibrate_display'] = 'True';
write_ini($inipath, $ini);
Expand Down

0 comments on commit b6adb66

Please sign in to comment.