This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from pyqtgraph.Qt import QtGui, QtCore | |
import numpy as np | |
import pyqtgraph as pg | |
## Start Qt event loop unless running in interactive mode or using pyside. | |
if __name__ == '__main__': | |
import sys | |
from window import CustomWindow | |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import fcntl | |
import subprocess | |
import sys | |
import shlex | |
from threading import Timer | |
import time | |
import os | |
''' | |
python3 code to allow one to run an external command and return the output | |
''' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#pragma once | |
//TODO include appropriate headers | |
#include <QtCore/QtCore> | |
#include <QtXml/QtXml> | |
bool readSettingsXml(QIODevice &device, QMap<QString, QVariant> &map); | |
bool writeSettingsXml(QIODevice &device, const QMap<QString, QVariant> &map); | |
static const QSettings::Format xmlFormat = QSettings::registerFormat("xml", &readSettingsXml, &writeSettingsXml); | |
static const QString rootName = "config"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if [ -f /tmp/skip-only-enable-connectable-sta-mode-wifi-interface ] ; then | |
logger -s -t fqrouter skip-only-enable-connectable-sta-mode-wifi-interface found | |
return | |
fi | |
if [ "remove" == "$ACTION" -a "wlan0" == "$INTERFACE" ] ; then | |
/etc/init.d/disable_sta_mode_wifi_interfaces start | |
fi | |
if [ "add" == "$ACTION" -a "wlan0" == "$INTERFACE" ] ; then | |
logger -s -t fqrouter try to bring up sta mode wifi interface |