From fb5a2ed853b138f516e2bd1c79894c25b50980cb Mon Sep 17 00:00:00 2001
From: Jan Michel
Date: Tue, 29 Nov 2016 18:27:34 +0100
Subject: [PATCH] Update website power supply control with our 5V switch boards
---
web/htdocs/tools/pwr/build_index.pl | 7 ++
web/htdocs/tools/pwr/index.html | 4 +-
web/htdocs/tools/pwr/pwr_switch.htm | 149 ++++++++++++++++++++++++++++
web/htdocs/tools/pwr/pwr_switch.pl | 126 +++++++++++++++++++++++
web/htdocs/tools/styles.css | 14 +++
5 files changed, 298 insertions(+), 2 deletions(-)
create mode 100644 web/htdocs/tools/pwr/pwr_switch.htm
create mode 100755 web/htdocs/tools/pwr/pwr_switch.pl
diff --git a/web/htdocs/tools/pwr/build_index.pl b/web/htdocs/tools/pwr/build_index.pl
index 6b40300..8c6fa8f 100755
--- a/web/htdocs/tools/pwr/build_index.pl
+++ b/web/htdocs/tools/pwr/build_index.pl
@@ -44,6 +44,13 @@ print <
+
+
+EOF
+}
}
diff --git a/web/htdocs/tools/pwr/index.html b/web/htdocs/tools/pwr/index.html
index 7295956..7aee7e7 100644
--- a/web/htdocs/tools/pwr/index.html
+++ b/web/htdocs/tools/pwr/index.html
@@ -29,7 +29,7 @@ Note that you need to have libdevice-serialport-perl or perl-Device-SerialPort
Feel free to alter the config file to accommodate your needs!
Please don't use the # character to comment out lines
-Tested with HMC8043, HMP4040, HMP4030, PSP405, PSP2010, PST3202
+Tested with HMC8043, HMP4040, HMP4030, PSP405, PSP2010, PST3202, PWRSW
//PWRSPLY:/path/to/device:Speed:Name:Type:Channels
//PWRSPLY:IP0.0.0.0:Port:Name:Type:Channels
@@ -37,7 +37,7 @@ PWRSPLY:/dev/ttyUSB0:9600:PST3202:PST:3
PWRSPLY:/dev/ttyUSB0:115200:HMP4030:HMP:3
PWRSPLY:IP192.168.0.56:5050:HMP4040:HMP:4
PWRSPLY:/dev/FTDI_FT232R_USB_UART_AH02HFZW:2400:PSP2010:PSP:1
-PWRSPLY:/dev/FTDI_FT232R_USB_UART_A702HE33:2400:PSP405:PSP:1
+PWRSPLY:/dev/FTDI_FT232R_USB_UART_A900LJXB:0:Desk:PWRSW:4