15 |
16 | namespace SoapySDR
17 | {
18 |
19 | /*!
20 | * Get the SoapySDR library API version as a string.
21 | * The format of the version string is major.minor.increment,
22 | * where the digits are taken directly from SOAPY_SDR_API_VERSION.
23 | */
24 | SOAPY_SDR_API std::string getAPIVersion(void);
25 |
26 | /*!
27 | * Get the ABI version string that the library was built against.
28 | * A client can compare SOAPY_SDR_ABI_VERSION to getABIVersion()
29 | * to check for ABI incompatibility before using the library.
30 | * If the values are not equal then the client code was
31 | * compiled against a different ABI than the library.
32 | */
33 | SOAPY_SDR_API std::string getABIVersion(void);
34 |
35 | /*!
36 | * Get the library version and build information string.
37 | * The format of the version string is major.minor.patch-buildInfo.
38 | * This function is commonly used to identify the software back-end
39 | * to the user for command-line utilities and graphical applications.
40 | */
41 | SOAPY_SDR_API std::string getLibVersion(void);
42 |
43 | }
44 |
--------------------------------------------------------------------------------
/legacy/SoapyRemote/overlay/lib/SoapySDR/modules0.7/libPlutSDRSupport.so:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/unixpunk/PlutoWeb/23f79e7d1e52c7ed183aa2c5af6be9cccfc10cbf/legacy/SoapyRemote/overlay/lib/SoapySDR/modules0.7/libPlutSDRSupport.so
--------------------------------------------------------------------------------
/legacy/SoapyRemote/overlay/lib/SoapySDR/modules0.7/libremoteSupport.so:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/unixpunk/PlutoWeb/23f79e7d1e52c7ed183aa2c5af6be9cccfc10cbf/legacy/SoapyRemote/overlay/lib/SoapySDR/modules0.7/libremoteSupport.so
--------------------------------------------------------------------------------
/legacy/SoapyRemote/overlay/lib/libSoapySDR.so:
--------------------------------------------------------------------------------
1 | libSoapySDR.so.0.7
--------------------------------------------------------------------------------
/legacy/SoapyRemote/overlay/lib/libSoapySDR.so.0.7:
--------------------------------------------------------------------------------
1 | libSoapySDR.so.0.7.0
--------------------------------------------------------------------------------
/legacy/SoapyRemote/overlay/lib/libSoapySDR.so.0.7.0:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/unixpunk/PlutoWeb/23f79e7d1e52c7ed183aa2c5af6be9cccfc10cbf/legacy/SoapyRemote/overlay/lib/libSoapySDR.so.0.7.0
--------------------------------------------------------------------------------
/legacy/SoapyRemote/overlay/lib/pkgconfig/SoapySDR.pc:
--------------------------------------------------------------------------------
1 | prefix=/home/steve/Desktop/SDR/Pluto/staging
2 | exec_prefix=${prefix}
3 | libdir=${exec_prefix}/lib
4 | includedir=${prefix}/include
5 |
6 | Name: Soapy SDR
7 | Description: Vendor and platform neutral SDR interface library.
8 | URL: https://github.com/pothosware/SoapySDR/wiki
9 | Version: 0.7.0
10 | Requires:
11 | Requires.private:
12 | Conflicts:
13 | Cflags: -I${includedir}
14 | Libs: -L${libdir} -lSoapySDR
15 | Libs.private:
16 |
--------------------------------------------------------------------------------
/legacy/SoapyRemote/overlay/lib/sysctl.d/SoapySDRServer.conf:
--------------------------------------------------------------------------------
1 | #SoapyRemote: Increase the default socket buffer sizes
2 | #to fit the default size requested for client and server.
3 | net.core.rmem_max=104857600
4 | net.core.wmem_max=104857600
5 |
--------------------------------------------------------------------------------
/legacy/SoapyRemote/overlay/lib/systemd/system/SoapySDRServer.service:
--------------------------------------------------------------------------------
1 | [Unit]
2 | Description=SoapyRemote network server
3 | Wants=network-online.target
4 | After=network-online.target
5 |
6 | [Service]
7 | ExecStart=/home/steve/Desktop/SDR/Pluto/staging/bin/SoapySDRServer --bind
8 | KillMode=process
9 | Restart=on-failure
10 |
11 | [Install]
12 | WantedBy=multi-user.target
13 |
--------------------------------------------------------------------------------
/legacy/SoapyRemote/overlay/share/cmake/SoapySDR/SoapySDRConfigVersion.cmake:
--------------------------------------------------------------------------------
1 | set(PACKAGE_FIND_NAME "SoapySDR")
2 | set(PACKAGE_VERSION "0.7.0-ga42ee56a")
3 |
4 | # Check whether the requested PACKAGE_FIND_VERSION is compatible
5 | if("${PACKAGE_VERSION}" VERSION_LESS "${PACKAGE_FIND_VERSION}")
6 | set(PACKAGE_VERSION_COMPATIBLE FALSE)
7 | else()
8 | set(PACKAGE_VERSION_COMPATIBLE TRUE)
9 | if ("${PACKAGE_VERSION}" VERSION_EQUAL "${PACKAGE_FIND_VERSION}")
10 | set(PACKAGE_VERSION_EXACT TRUE)
11 | endif()
12 | endif()
13 |
--------------------------------------------------------------------------------
/legacy/SoapyRemote/overlay/share/man/man1/SoapySDRServer.1:
--------------------------------------------------------------------------------
1 | .\" SoapySDRServer.1 - manpage for SoapySDRServer
2 | .\"
3 | .\"
4 | .TH SOAPYSDRSERVER 1 2016\-10\-28 "SoapyRemote 0.3.2"
5 | .SH NAME
6 | \fBSoapySDRServer\fR \- provide access to local SoapySDR devices over network
7 | .\" ----------------------------------------------------------------------------
8 | .SH SYNOPSIS
9 | \fBSoapySDRServer\fR [\fIOPTIONS\fR]
10 | .\" ----------------------------------------------------------------------------
11 | .SH DESCRIPTION
12 | SoapySDRServer is a server that exports all locally available SoapySDR devices
13 | over the network.
14 | On the other side, a SoapyRemote module for SoapySDR connects to this server and
15 | provides the server's modules locally.
16 | .\" ----------------------------------------------------------------------------
17 | .SH OPTIONS
18 | .TP
19 | \fB\-\-bind\fR[=\fIIP\fR[:\fIPORT\fR]]
20 | Run server.
21 | If an \fIIP\fR argument is not given, bind to the default port 55132 on all
22 | local network addresses.
23 | \fIIP\fR is the IPv4 or IPv6 address to bind to.
24 | If the either of the special values "0.0.0.0" or "[::]" for \fIIP\fR is given
25 | it will bind to all local addresses.
26 | \fIPORT\fR is an optional port number to use instead of the default.
27 | .TP
28 | \fB\-\-help\fR
29 | Display help and exit.
30 | .\" ----------------------------------------------------------------------------
31 | .SH HOMEPAGE
32 | SoapySDRServer is part of the
33 | .UR https://github.com/pothosware/SoapyRemote/wiki
34 | SoapyRemote project
35 | .UE .
36 | .\" ----------------------------------------------------------------------------
37 | .SH AUTHORS
38 | The SoapyRemote client and server were written mostly by
39 | .MT josh@pothosware.com
40 | Josh Blum
41 | .ME
42 | with additional contributions from Bastille Networks.
43 | .\"
44 | .\"This man page was originally written for the Debian project by
45 | .\".MT aeb@debian.org
46 | .\"Andreas Bombe
47 | .\".ME .
48 |
--------------------------------------------------------------------------------
/legacy/SoapyRemote/overlay/share/man/man1/SoapySDRUtil.1:
--------------------------------------------------------------------------------
1 | .\" SoapySDRUtil.1 - manpage for SoapySDRUtil
2 | .\"
3 | .\"
4 | .TH SOAPYSDRUTIL 1 2016\-10\-28 "SoapySDR 0.5.4"
5 | .SH NAME
6 | \fBSoapySDRUtil\fR \- query and change module information of SoapySDR
7 | .\" ----------------------------------------------------------------------------
8 | .SH SYNOPSIS
9 | \fBSoapySDRUtil\fR [\fIOPTIONS\fR]
10 | .\" ----------------------------------------------------------------------------
11 | .SH DESCRIPTION
12 | SoapySDRUtil is a command line application that provides basic
13 | diagnostic utility for SoapySDR by printing installation information,
14 | available modules, discovered devices, and tests on instantiated devices.
15 | .\" ----------------------------------------------------------------------------
16 | .SH OPTIONS
17 | .TP
18 | \fB\-\-info\fR
19 | Print general information on the library, list all found hardware support
20 | modules and available factories.
21 | .TP
22 | \fB\-\-find\fR[="\fISPEC\fR"]
23 | Discover available devices, restricted to those matching the \fISPEC\fR if
24 | given.
25 | If no matching devices are found it will exit with exit status 1.
26 | .TP
27 | \fB\-\-make\fR[="\fISPEC\fR"]
28 | Open and close device matching \fISPEC\fR if possible.
29 | If \fISPEC\fR is not given, the first discovered device is opened.
30 | .TP
31 | \fB\-\-probe\fR[="\fISPEC\fR"]
32 | Show detailed information on all devices or the devices matching \fISPEC\fR if
33 | given.
34 | .TP
35 | \fB\-\-check\fR=\fINAME\fR
36 | Check and print if driver module named \fINAME\fR is present.
37 | If it is not found it will exit with exit status 1.
38 | .\" ----------------------------------------------------------------------------
39 | .SH HOMEPAGE
40 | SoapySDRUtil is part of the
41 | .UR https://github.com/pothosware/SoapySDR/wiki
42 | SoapySDR project
43 | .UE .
44 | .\" ----------------------------------------------------------------------------
45 | .SH AUTHORS
46 | The SoapySDR library, including SoapySDRUtil, was written mostly by
47 | .MT josh@pothosware.com
48 | Josh Blum
49 | .ME .
50 | .\"
51 | .\"This man page was originally written for the Debian project by
52 | .\".MT aeb@debian.org
53 | .\"Andreas Bombe
54 | .\".ME .
55 |
--------------------------------------------------------------------------------
/legacy/SoapyRemote/soapy-success.txt:
--------------------------------------------------------------------------------
1 | Toolchain: (staging is the sysroot of the firmware as it sits on the device)
2 | SET(ROOTFS "/home/steve/Desktop/SDR/Pluto/staging")
3 | SET(MULTIARCH "arm-linux-gnueabi")
4 | SET(CMAKE_SYSTEM_NAME "Linux")
5 | SET(CMAKE_SYSTEM_PROCESSOR "armv7")
6 | SET(CMAKE_C_COMPILER arm-xilinx-linux-gnueabi-gcc)
7 | SET(CMAKE_CXX_COMPILER arm-xilinx-linux-gnueabi-g++)
8 | SET(CMAKE_SYSROOT "${ROOTFS}")
9 | SET(CMAKE_FIND_ROOT_PATH "${ROOTFS}")
10 | SET(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
11 | SET(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
12 | SET(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
13 | SET(CPPFLAGS "-DG_DISABLE_CAST_CHECKS -DNDEBUG -g1 -O0 -I${ROOTFS}/usr/include -isystem ${ROOTFS}/usr/include")
14 | SET(ENV{CFLAGS} "${CPPFLAGS}")
15 | SET(ENV{CXXFLAGS} "${CPPFLAGS}")
16 | SET(ENV{LDFLAGS} "-Wl,-rpath-link,${ROOTFS}/lib")
17 |
18 | cmake:
19 | cmake -DCMAKE_TOOLCHAIN_FILE=../../Toolchain-Pluto.cmake .. -DCMAKE_INSTALL_PREFIX:PATH=/home/steve/Desktop/SDR/Pluto/staging -DENABLE_TESTS:BOOL=OFF -DENABLE_PYTHON3:BOOL=OFF -DENABLE_DOCS:BOOL=OFF -DENABLE_PYTHON:BOOL=OFF -DSOAPY_SDR_ROOT:PATH=/home/steve/Desktop/SDR/Pluto/staging
20 |
--------------------------------------------------------------------------------
/legacy/SoapyRemote/soapyplutosdr-success.txt:
--------------------------------------------------------------------------------
1 | Toolchain: (staging is the sysroot of the firmware as it sits on the device)
2 | SET(ROOTFS "/home/steve/Desktop/SDR/Pluto/staging")
3 | SET(MULTIARCH "arm-linux-gnueabi")
4 | SET(CMAKE_SYSTEM_NAME "Linux")
5 | SET(CMAKE_SYSTEM_PROCESSOR "armv7")
6 | SET(CMAKE_C_COMPILER arm-xilinx-linux-gnueabi-gcc)
7 | SET(CMAKE_CXX_COMPILER arm-xilinx-linux-gnueabi-g++)
8 | SET(CMAKE_SYSROOT "${ROOTFS}")
9 | SET(CMAKE_FIND_ROOT_PATH "${ROOTFS}")
10 | SET(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
11 | SET(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
12 | SET(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
13 | SET(CPPFLAGS "-DG_DISABLE_CAST_CHECKS -DNDEBUG -g1 -O0 -I${ROOTFS}/usr/include -isystem ${ROOTFS}/usr/include")
14 | SET(ENV{CFLAGS} "${CPPFLAGS}")
15 | SET(ENV{CXXFLAGS} "${CPPFLAGS}")
16 | SET(ENV{LDFLAGS} "-Wl,-rpath-link,${ROOTFS}/lib")
17 |
18 | cmake:
19 | cmake -DCMAKE_TOOLCHAIN_FILE=../../Toolchain-Pluto.cmake .. -DCMAKE_INSTALL_PREFIX:PATH=/home/steve/Desktop/SDR/Pluto/staging
20 |
--------------------------------------------------------------------------------
/legacy/SoapyRemote/soapyremote-success.txt:
--------------------------------------------------------------------------------
1 | Toolchain: (staging is the sysroot of the firmware as it sits on the device)
2 | SET(ROOTFS "/home/steve/Desktop/SDR/Pluto/staging")
3 | SET(MULTIARCH "arm-linux-gnueabi")
4 | SET(CMAKE_SYSTEM_NAME "Linux")
5 | SET(CMAKE_SYSTEM_PROCESSOR "armv7")
6 | SET(CMAKE_C_COMPILER arm-xilinx-linux-gnueabi-gcc)
7 | SET(CMAKE_CXX_COMPILER arm-xilinx-linux-gnueabi-g++)
8 | SET(CMAKE_SYSROOT "${ROOTFS}")
9 | SET(CMAKE_FIND_ROOT_PATH "${ROOTFS}")
10 | SET(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
11 | SET(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
12 | SET(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
13 | SET(CPPFLAGS "-DG_DISABLE_CAST_CHECKS -DNDEBUG -g1 -O0 -I${ROOTFS}/usr/include -isystem ${ROOTFS}/usr/include")
14 | SET(ENV{CFLAGS} "${CPPFLAGS}")
15 | SET(ENV{CXXFLAGS} "${CPPFLAGS}")
16 | SET(ENV{LDFLAGS} "-Wl,-rpath-link,${ROOTFS}/lib")
17 |
18 | cmake:
19 | ke -DCMAKE_TOOLCHAIN_FILE=../../Toolchain-Pluto.cmake .. -DCMAKE_INSTALL_PREFIX:PATH=/home/steve/Desktop/SDR/Pluto/staging
20 |
--------------------------------------------------------------------------------
/legacy/dump1090/README.md:
--------------------------------------------------------------------------------
1 | # dump1090
2 |
3 | Flash the pluto image and wait for it to boot and then reboot again. This is the script enabling dual-core mode and rebooting. It will only happen once after each flash.
4 |
5 | dump1090 starts automatically at boot. My working test case is using an OTG NIC on the 'USB' port and 1a or larger power adapter on the 'power' port. It uses DHCP, normally you can just use http://pluto.local:8080 and it will just work, even if your PC is connected to the 'USB' port.
6 |
7 | This isn't the feature-rich fork of dump1090, so its mostly useful as a standalone ADS-B map, not much in the way of external integration available.
8 |
9 | Can temporarily change options: ssh root@pluto.local "/etc/init.d/S95dump1090 stop && vi /bin/dump1090.sh && /etc/init.d/S95dump1090 start"
10 |
--------------------------------------------------------------------------------
/legacy/dump1090/images/pluto.dfu:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/unixpunk/PlutoWeb/23f79e7d1e52c7ed183aa2c5af6be9cccfc10cbf/legacy/dump1090/images/pluto.dfu
--------------------------------------------------------------------------------
/legacy/dump1090/overlay/bin/dump1090.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | ## Run dump1090 with the best options available in this fork
4 | cd /dump1090
5 | ./dump1090 --net --net-http-port 8080 --gain 89 --aggressive
6 |
--------------------------------------------------------------------------------
/legacy/dump1090/overlay/dump1090/dump1090:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/unixpunk/PlutoWeb/23f79e7d1e52c7ed183aa2c5af6be9cccfc10cbf/legacy/dump1090/overlay/dump1090/dump1090
--------------------------------------------------------------------------------
/legacy/dump1090/overlay/dump1090/public_html/config.js:
--------------------------------------------------------------------------------
1 | // --------------------------------------------------------
2 | //
3 | // This file is to configure the configurable settings.
4 | // Load this file before script.js file at gmap.html.
5 | //
6 | // --------------------------------------------------------
7 |
8 | // -- Output Settings -------------------------------------
9 | // Show metric values
10 | Metric = false; // true or false
11 |
12 | // -- Map settings ----------------------------------------
13 | // The Latitude and Longitude in decimal format
14 | //CONST_CENTERLAT = 45.0;
15 | //CONST_CENTERLON = 9.0;
16 | // The google maps zoom level, 0 - 16, lower is further out
17 | //CONST_ZOOMLVL = 5;
18 |
19 | // -- Marker settings -------------------------------------
20 | // The default marker color
21 | MarkerColor = "rgb(127, 127, 127)";
22 | SelectedColor = "rgb(225, 225, 225)";
23 | StaleColor = "rgb(190, 190, 190)";
24 |
25 | // -- Site Settings ---------------------------------------
26 | SiteShow = false; // true or false
27 | // The Latitude and Longitude in decimal format
28 | SiteLat = 45.0;
29 | SiteLon = 9.0;
30 |
31 | SiteCircles = true; // true or false (Only shown if SiteShow is true)
32 | // In nautical miles or km (depending settings value 'Metric')
33 | SiteCirclesDistances = new Array(100,150,200);
34 |
35 |
--------------------------------------------------------------------------------
/legacy/dump1090/overlay/dump1090/public_html/extension.js:
--------------------------------------------------------------------------------
1 | // -----------------------------------------------------
2 | //
3 | // This file is so users can modify how the page acts
4 | // without diving to deep in the code. This way we can
5 | // also try out or hold custom code for ourselves and
6 | // not check it into the repo.
7 | //
8 | // There is a div id'ed as plane_extension for use with
9 | // this javascript file.
10 | // -----------------------------------------------------
11 |
12 | function extendedInitalize() {
13 | // Write your initalization here
14 | // Gets called just before the 1-sec function call loop is setup
15 | }
16 |
17 | function extendedPulse() {
18 | // This will get called every second after all the main functions
19 | }
20 |
--------------------------------------------------------------------------------
/legacy/dump1090/overlay/dump1090/public_html/gmap.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 | DUMP1090
18 |
19 |
20 |
21 |
The settings feature is coming soon. Keep checking GitHub.
22 |
23 |
26 |
58 |
59 | Squak 7x00 is reported and shown.
60 | This is most likely an error in reciving or decoding.
61 | Please do not call the local authorities, they already know about it if it is valid squak.
62 |
63 |
64 |
65 |
66 |
--------------------------------------------------------------------------------
/legacy/dump1090/overlay/dump1090/public_html/gmap.html_orig:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 | DUMP1090
18 |
19 |
20 |
21 |
The settings feature is coming soon. Keep checking GitHub.
22 |
23 |
26 |
58 |
59 | Squak 7x00 is reported and shown.
60 | This is most likely an error in reciving or decoding.
61 | Please do not call the local authorities, they already know about it if it is valid squak.
62 |
63 |
64 |
65 |
66 |
--------------------------------------------------------------------------------
/legacy/dump1090/overlay/dump1090/public_html/options.js:
--------------------------------------------------------------------------------
1 | var listKMLType = ['Approch', 'Departure', 'Transit', 'Custom1', 'Custom2'];
2 | var listKMLs = localStorage['listKMLs'] || [];
3 |
4 | function optionsInitalize() {
5 | // Write your initalization here
6 | // Gets called just before the 1-sec function call loop is setup
7 | $( "#dialog-modal" ).dialog({
8 | height: 140,
9 | modal: true,
10 | autoOpen: false,
11 | closeOnEscape: false
12 | });
13 | }
14 |
15 | function optionsModal() {
16 | $( "#dialog-modal" ).dialog( "open");
17 | }
18 |
--------------------------------------------------------------------------------
/legacy/dump1090/overlay/dump1090/public_html/style.css:
--------------------------------------------------------------------------------
1 | html, body {
2 | margin: 0; padding: 0; background-color: #ffffff; font-family: Tahoma, Sans-Serif;
3 | font-size: 10pt; overflow: auto; height: 100%;
4 | }
5 | div#map_container { float: left; width: 100%; height: 100%; }
6 | div#map_canvas { height: 100%; margin-right: 420px; }
7 |
8 | div#sidebar_container { float: left; width: 410px; margin-left: -410px; height: 100%; overflow: auto; }
9 |
10 | div#SpecialSquawkWarning { position: absolute; bottom: 25px; right: 430px; border: 2px solid red;
11 | background-color: #FFFFA3; opacity: 0.75; filter:alpha(opacity=75); padding: 5px;
12 | display: none; text-align: center; }
13 |
14 | table#optionsTabs { width: 100%; font-size: small; font-family: monospace; background-color: #ddd;
15 | border: 1px; border-color: #000000;}
16 |
17 | #tableinfo, #sudo_buttons { font-size: x-small; font-family: monospace; }
18 |
19 | .vPosition { font-weight: bold; background-color: #d5ffd5; }
20 | .squawk7500 { font-weight: bold; background-color: #ff5555; }
21 | .squawk7600 { font-weight: bold; background-color: #00ffff; }
22 | .squawk7700 { font-weight: bold; background-color: #ffff00; }
23 | .selected { background-color: #dddddd; }
24 | .plane_table_row { cursor: pointer; }
25 |
26 | #selectedinfotitle { font-size: larger; }
27 | #selectedinfo { font-size: small; }
28 | #selectedinfo a { text-decoration: none; color: blue; font-size: x-small;}
29 | #selectedinfo.dim { opacity: 0.3; filter:alpha(opacity=30); /* For IE8 and earlier */ }
30 |
31 | .pointer { cursor: pointer; }
32 |
33 |
--------------------------------------------------------------------------------
/legacy/dump1090/overlay/etc/init.d/S94pluto-mods:
--------------------------------------------------------------------------------
1 | #! /bin/sh
2 |
3 | start() {
4 | REBOOTNEEDED=0
5 | echo "Checking for maxcpus and ad9364 mods..."
6 | export `fw_printenv maxcpus`
7 | export `fw_printenv attr_val`
8 | ## Check/set dual-core mode
9 | if [ $maxcpus == 1 ]; then
10 | echo "Enabling dual-core mode..."
11 | fw_setenv maxcpus
12 | REBOOTNEEDED=1
13 | fi
14 | ## Check/set 70-6000mhz trick (default is 325-3800Mhz)
15 | if [ "$attr_val" != "ad9364" ]; then
16 | echo "Enabling 70-6000Mhz mod..."
17 | fw_setenv attr_name compatible
18 | fw_setenv attr_val "ad9364"
19 | REBOOTNEEDED=1
20 | fi
21 | if [ $REBOOTNEEDED == 1 ]; then
22 | echo "Rebooting!"
23 | pluto_reboot reset
24 | fi
25 | echo "Mods already in place, continuing."
26 | }
27 |
28 | stop() {
29 | echo "Nothing to stop."
30 | }
31 |
32 | restart() {
33 | stop
34 | start
35 | }
36 |
37 | # See how we were called.
38 | case "$1" in
39 | start)
40 | start
41 | ;;
42 | stop)
43 | stop
44 | ;;
45 | restart|reload)
46 | restart
47 | ;;
48 | *)
49 | echo "Usage: $0 {start|stop|reload|restart}"
50 | exit 1
51 | esac
52 |
53 | exit $?
54 |
--------------------------------------------------------------------------------
/legacy/dump1090/overlay/etc/init.d/S95dump1090:
--------------------------------------------------------------------------------
1 | #! /bin/sh
2 |
3 | [ -f /bin/dump1090.sh ] || exit 0
4 |
5 | start() {
6 | printf "Starting dump1090: "
7 | /bin/dump1090.sh &
8 | echo "done"
9 | }
10 |
11 |
12 | stop() {
13 | printf "Stopping dump1090: "
14 | killall dump1090
15 | echo "done"
16 | }
17 |
18 | restart() {
19 | stop
20 | start
21 | }
22 |
23 | # See how we were called.
24 | case "$1" in
25 | start)
26 | start
27 | ;;
28 | stop)
29 | stop
30 | ;;
31 | restart|reload)
32 | restart
33 | ;;
34 | *)
35 | echo "Usage: $0 {start|stop|reload|restart}"
36 | exit 1
37 | esac
38 |
39 | exit $?
40 |
--------------------------------------------------------------------------------
/legacy/openwebrx/README.md:
--------------------------------------------------------------------------------
1 | # OpenWebRX
2 |
3 | Flash the pluto image and wait for it to boot and then reboot again. This is the script enabling dual-core mode and the 70-6000mhz mod and rebooting. It will only happen once after each flash.
4 |
5 | OpenWebRX now starts automatically at boot. My working test case is using an OTG NIC on the 'USB' port and 1a or larger power adapter on the 'power' port. It uses DHCP, normally you can just use http://pluto.local:8073 and it will just work, even if your PC is connected to the 'USB' port and not a OTG NIC.
6 |
7 | *** We can now persist settings across reboots if you don't like my default Chicago PD range. ssh root@pluto.local and run either temp-settings.sh or settings.sh. The former will not write to nvram, just update via file and restart OpenWebRX. Once you have settings you like, then use settings.sh to set them permanently.
8 |
--------------------------------------------------------------------------------
/legacy/openwebrx/images/pluto.dfu:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/unixpunk/PlutoWeb/23f79e7d1e52c7ed183aa2c5af6be9cccfc10cbf/legacy/openwebrx/images/pluto.dfu
--------------------------------------------------------------------------------
/legacy/openwebrx/overlay/bin/SoapySDRUtil:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/unixpunk/PlutoWeb/23f79e7d1e52c7ed183aa2c5af6be9cccfc10cbf/legacy/openwebrx/overlay/bin/SoapySDRUtil
--------------------------------------------------------------------------------
/legacy/openwebrx/overlay/bin/csdr:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/unixpunk/PlutoWeb/23f79e7d1e52c7ed183aa2c5af6be9cccfc10cbf/legacy/openwebrx/overlay/bin/csdr
--------------------------------------------------------------------------------
/legacy/openwebrx/overlay/bin/csdr-fm:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | : '
3 | Copyright (c) 2014, Andras Retzler
4 | All rights reserved.
5 |
6 | Redistribution and use in source and binary forms, with or without
7 | modification, are permitted provided that the following conditions are met:
8 |
9 | 1. Redistributions of source code must retain the above copyright notice, this
10 | list of conditions and the following disclaimer.
11 | 2. Redistributions in binary form must reproduce the above copyright notice,
12 | this list of conditions and the following disclaimer in the documentation
13 | and/or other materials provided with the distribution.
14 |
15 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
16 | ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
17 | WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
18 | DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
19 | ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
20 | (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
21 | LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
22 | ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
23 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
24 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25 | '
26 |
27 | USAGE="csdr-fm: a script to listen to FM radio with RTL-SDR and csdr.
28 |
29 | usage:
30 | csdr-fm frequency_mhz [gain_db]
31 |
32 | example:
33 | csdr-fm 89.5
34 | csdr-fm 89.5 30
35 |
36 | "
37 | GAIN=30
38 | if [ $# -eq 2 ]; then GAIN="$2"; fi
39 | if [ $# -eq 0 ]; then echo "$USAGE"; exit -1; fi
40 |
41 | rtl_sdr -s 2400000 -f `python -c "print int($1*1e6)"` -g $GAIN - | csdr convert_u8_f | csdr fir_decimate_cc 10 0.05 HAMMING | csdr fmdemod_quadri_cf | csdr fractional_decimator_ff 5 | csdr deemphasis_wfm_ff 48000 50e-6 | csdr convert_f_i16 | mplayer -cache 1024 -quiet -rawaudio samplesize=2:channels=1:rate=48000 -demuxer rawaudio -
42 |
--------------------------------------------------------------------------------
/legacy/openwebrx/overlay/bin/nmux:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/unixpunk/PlutoWeb/23f79e7d1e52c7ed183aa2c5af6be9cccfc10cbf/legacy/openwebrx/overlay/bin/nmux
--------------------------------------------------------------------------------
/legacy/openwebrx/overlay/bin/openwebrx.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | ## Pull in any saved settings or use defaults
3 | . /bin/readsettings.sh
4 |
5 | ## This is a workaround for an issue where SoapySDR remembers its install path
6 | ## and tries to use it as its 'root' directory...Fake it.
7 | if [ ! -d "/home/steve/Desktop/SDR/Pluto" ]; then
8 | mkdir -p /home/steve/Desktop/SDR/Pluto
9 | ln -s / /home/steve/Desktop/SDR/Pluto/staging
10 | fi
11 |
12 | ## Start openwebrx
13 | cd /openwebrx
14 | python openwebrx.py
15 |
--------------------------------------------------------------------------------
/legacy/openwebrx/overlay/bin/readsettings.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | ## Source this file for either default or previous settings
3 |
4 | ## Use temp settings if they exist instead of pulling from NVRAM
5 | if [ -f /root/temp-settings ]; then
6 | echo "Temp settings found, using them..."
7 | . /root/temp-settings
8 | if [ -z ${center_freq} ]; then
9 | export center_freq=460250000
10 | fi
11 | if [ -z ${start_freq} ]; then
12 | export start_freq=460102200
13 | fi
14 | if [ -z ${samp_rate} ]; then
15 | export samp_rate=600000
16 | fi
17 | if [ -z ${start_mod} ]; then
18 | export start_mod="nfm"
19 | fi
20 | if [ -z ${rf_gain} ]; then
21 | export rf_gain=89
22 | fi
23 | if [ -z ${ppm} ]; then
24 | export ppm=0
25 | fi
26 | echo ""
27 | echo "Current settings are:"
28 | echo "Center frequency = $center_freq"
29 | echo "Starting frequency = $start_freq"
30 | echo "Sample rate = $samp_rate"
31 | echo "Starting demodulator = $start_mod"
32 | echo "RF gain = $rf_gain"
33 | echo "PPM = $ppm"
34 | echo ""
35 | else
36 | echo "No temp settings found, pulling from NVRAM and saving to temp file..."
37 | export `fw_printenv center_freq`
38 | if [ -z ${center_freq} ]; then
39 | export center_freq=460250000
40 | fi
41 | export `fw_printenv start_freq`
42 | if [ -z ${start_freq} ]; then
43 | export start_freq=460102200
44 | fi
45 | export `fw_printenv samp_rate`
46 | if [ -z ${samp_rate} ]; then
47 | export samp_rate=600000
48 | fi
49 | if [ -z ${start_mod} ]; then
50 | export start_mod="nfm"
51 | fi
52 | export `fw_printenv rf_gain`
53 | if [ -z ${rf_gain} ]; then
54 | export rf_gain=89
55 | fi
56 | export `fw_printenv ppm`
57 | if [ -z ${ppm} ]; then
58 | export ppm=0
59 | fi
60 | echo "export center_freq=$center_freq" >/root/temp-settings
61 | echo "export start_freq=$start_freq" >>/root/temp-settings
62 | echo "export samp_rate=$samp_rate" >>/root/temp-settings
63 | echo "export start_mod=$start_mod" >>/root/temp-settings
64 | echo "export rf_gain=$rf_gain" >>/root/temp-settings
65 | echo "export ppm=$ppm" >>/root/temp-settings
66 | chmod +x /root/temp-settings
67 | echo ""
68 | echo "Ignore any messages above this line..."
69 | echo ""
70 | echo "Current settings are:"
71 | echo "Center frequency = $center_freq"
72 | echo "Starting frequency = $start_freq"
73 | echo "Sample rate = $samp_rate"
74 | echo "Starting demodulator = $start_mod"
75 | echo "RF gain = $rf_gain"
76 | echo "PPM = $ppm"
77 | echo ""
78 | fi
79 |
--------------------------------------------------------------------------------
/legacy/openwebrx/overlay/bin/rx_fm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/unixpunk/PlutoWeb/23f79e7d1e52c7ed183aa2c5af6be9cccfc10cbf/legacy/openwebrx/overlay/bin/rx_fm
--------------------------------------------------------------------------------
/legacy/openwebrx/overlay/bin/rx_power:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/unixpunk/PlutoWeb/23f79e7d1e52c7ed183aa2c5af6be9cccfc10cbf/legacy/openwebrx/overlay/bin/rx_power
--------------------------------------------------------------------------------
/legacy/openwebrx/overlay/bin/rx_sdr:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/unixpunk/PlutoWeb/23f79e7d1e52c7ed183aa2c5af6be9cccfc10cbf/legacy/openwebrx/overlay/bin/rx_sdr
--------------------------------------------------------------------------------
/legacy/openwebrx/overlay/bin/savenow.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | ## Set commands
3 | . /bin/readsettings.sh
4 | echo "Changes saved here will take effect now and persist across reboots."
5 | echo "If you (re)flash the PlutoSDR you will lose your settings."
6 | read -p "Do you want to save the current settings to NVRAM? (y/n): " yn
7 | case $yn in
8 | [Yy]* )
9 | echo "Wait while writing to NVRAM..."
10 | fw_setenv center_freq $center_freq
11 | fw_setenv start_freq $start_freq
12 | fw_setenv samp_rate $samp_rate
13 | fw_setenv start_mod $start_mod
14 | fw_setenv rf_gain $rf_gain
15 | fw_setenv ppm $ppm
16 | echo "Done."
17 | exit;;
18 | * ) exit;;
19 | esac
20 |
--------------------------------------------------------------------------------
/legacy/openwebrx/overlay/bin/settings.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | ## Set commands
3 | . /bin/readsettings.sh
4 | echo "Changes made here will take effect now and persist across reboots."
5 | echo "If you (re)flash the PlutoSDR you will lose your settings."
6 | read -p "Do you want to change these settings? (y/n): " yn
7 | case $yn in
8 | [Yy]* )
9 | echo "If you make a mistake, CTRL+C to exit and then start over."
10 | read -p "Enter the new center frequency (70000000-6000000000): [460250000] " center_freq
11 | read -p "Enter the new starting frequency (70000000-6000000000): [460102200] " start_freq
12 | read -p "Enter the new sample rate (65105-10000000): [600000] " samp_rate
13 | read -p "Enter the new starting demodulator (nfm,am,lsb,usb,cw): [nfm] " start_mod
14 | read -p "Enter the new RF gain in dB (0-89): [89] " rf_gain
15 | read -p "Enter the new PPM adjustment: [0] " ppm
16 | echo "Writting settings to temp file..."
17 | echo "export center_freq=$center_freq" >/root/temp-settings
18 | echo "export start_freq=$start_freq" >>/root/temp-settings
19 | echo "export samp_rate=$samp_rate" >>/root/temp-settings
20 | echo "export start_mod=$start_mod" >>/root/temp-settings
21 | echo "export rf_gain=$rf_gain" >>/root/temp-settings
22 | echo "export ppm=$ppm" >>/root/temp-settings
23 | chmod +x /root/temp-settings
24 | echo "Wait while writing to NVRAM..."
25 | fw_setenv center_freq $center_freq
26 | fw_setenv start_freq $start_freq
27 | fw_setenv samp_rate $samp_rate
28 | fw_setenv start_mod $start_mod
29 | fw_setenv rf_gain $rf_gain
30 | fw_setenv ppm $ppm
31 | echo "Done. Restarting OpenWebRX now..."
32 | /etc/init.d/S95openwebrx stop
33 | /etc/init.d/S95openwebrx start
34 | exit;;
35 | * ) exit;;
36 | esac
37 |
--------------------------------------------------------------------------------
/legacy/openwebrx/overlay/bin/temp-settings.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | ## Set commands
3 | . /bin/readsettings.sh
4 | echo "Changes made here will take effect now and reset to previous on reboot."
5 | read -p "Do you want to change these settings? (y/n): " yn
6 | case $yn in
7 | [Yy]* )
8 | echo "If you make a mistake, CTRL+C to exit and then start over."
9 | read -p "Enter the new center frequency (70000000-6000000000): [460250000] " center_freq
10 | read -p "Enter the new starting frequency (70000000-6000000000): [460102200] " start_freq
11 | read -p "Enter the new sample rate (65105-10000000): [600000] " samp_rate
12 | read -p "Enter the new starting demodulator (nfm,am,lsb,usb,cw): [nfm] " start_mod
13 | read -p "Enter the new RF gain in dB (0-89): [89] " rf_gain
14 | read -p "Enter the new PPM adjustment: [0] " ppm
15 | echo "Writting settings to temp file..."
16 | echo "export center_freq=$center_freq" >/root/temp-settings
17 | echo "export start_freq=$start_freq" >>/root/temp-settings
18 | echo "export samp_rate=$samp_rate" >>/root/temp-settings
19 | echo "export start_mod=$start_mod" >>/root/temp-settings
20 | echo "export rf_gain=$rf_gain" >>/root/temp-settings
21 | echo "export ppm=$ppm" >>/root/temp-settings
22 | chmod +x /root/temp-settings
23 | echo "Done. Restarting OpenWebRX now..."
24 | /etc/init.d/S95openwebrx stop
25 | /etc/init.d/S95openwebrx start
26 | exit;;
27 | * ) exit;;
28 | esac
29 |
--------------------------------------------------------------------------------
/legacy/openwebrx/overlay/etc/init.d/S94pluto-mods:
--------------------------------------------------------------------------------
1 | #! /bin/sh
2 |
3 | start() {
4 | REBOOTNEEDED=0
5 | echo "Checking for maxcpus and ad9364 mods..."
6 | export `fw_printenv maxcpus`
7 | export `fw_printenv attr_val`
8 | ## Check/set dual-core mode
9 | if [ $maxcpus == 1 ]; then
10 | echo "Enabling dual-core mode..."
11 | fw_setenv maxcpus
12 | REBOOTNEEDED=1
13 | fi
14 | ## Check/set 70-6000mhz trick (default is 325-3800Mhz)
15 | if [ "$attr_val" != "ad9364" ]; then
16 | echo "Enabling 70-6000Mhz mod..."
17 | fw_setenv attr_name compatible
18 | fw_setenv attr_val "ad9364"
19 | REBOOTNEEDED=1
20 | fi
21 | if [ $REBOOTNEEDED == 1 ]; then
22 | echo "Rebooting!"
23 | pluto_reboot reset
24 | fi
25 | echo "Mods already in place, continuing."
26 | }
27 |
28 | stop() {
29 | echo "Nothing to stop."
30 | }
31 |
32 | restart() {
33 | stop
34 | start
35 | }
36 |
37 | # See how we were called.
38 | case "$1" in
39 | start)
40 | start
41 | ;;
42 | stop)
43 | stop
44 | ;;
45 | restart|reload)
46 | restart
47 | ;;
48 | *)
49 | echo "Usage: $0 {start|stop|reload|restart}"
50 | exit 1
51 | esac
52 |
53 | exit $?
54 |
--------------------------------------------------------------------------------
/legacy/openwebrx/overlay/etc/init.d/S95openwebrx:
--------------------------------------------------------------------------------
1 | #! /bin/sh
2 |
3 | [ -f /bin/openwebrx.sh ] || exit 0
4 |
5 | start() {
6 | printf "Starting OpenWebRX: "
7 | screen -Dm /bin/openwebrx.sh $0 &
8 | echo "done"
9 | }
10 |
11 |
12 | stop() {
13 | printf "Stopping OpenWebRX: "
14 | killall python
15 | killall csdr
16 | killall nc
17 | killall nmux
18 | killall screen
19 | echo "done"
20 | }
21 |
22 | restart() {
23 | stop
24 | start
25 | }
26 |
27 | # See how we were called.
28 | case "$1" in
29 | start)
30 | start
31 | ;;
32 | stop)
33 | stop
34 | ;;
35 | restart|reload)
36 | restart
37 | ;;
38 | *)
39 | echo "Usage: $0 {start|stop|reload|restart}"
40 | exit 1
41 | esac
42 |
43 | exit $?
44 |
--------------------------------------------------------------------------------
/legacy/openwebrx/overlay/lib/SoapySDR/modules0.7/libPlutSDRSupport.so:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/unixpunk/PlutoWeb/23f79e7d1e52c7ed183aa2c5af6be9cccfc10cbf/legacy/openwebrx/overlay/lib/SoapySDR/modules0.7/libPlutSDRSupport.so
--------------------------------------------------------------------------------
/legacy/openwebrx/overlay/lib/libSoapySDR.so:
--------------------------------------------------------------------------------
1 | libSoapySDR.so.0.7
--------------------------------------------------------------------------------
/legacy/openwebrx/overlay/lib/libSoapySDR.so.0.7:
--------------------------------------------------------------------------------
1 | libSoapySDR.so.0.7.0
--------------------------------------------------------------------------------
/legacy/openwebrx/overlay/lib/libSoapySDR.so.0.7.0:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/unixpunk/PlutoWeb/23f79e7d1e52c7ed183aa2c5af6be9cccfc10cbf/legacy/openwebrx/overlay/lib/libSoapySDR.so.0.7.0
--------------------------------------------------------------------------------
/legacy/openwebrx/overlay/lib/libcsdr.so.0.15:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/unixpunk/PlutoWeb/23f79e7d1e52c7ed183aa2c5af6be9cccfc10cbf/legacy/openwebrx/overlay/lib/libcsdr.so.0.15
--------------------------------------------------------------------------------
/legacy/openwebrx/overlay/lib/pkgconfig/SoapySDR.pc:
--------------------------------------------------------------------------------
1 | prefix=/home/steve/Desktop/SDR/Pluto/tools
2 | exec_prefix=${prefix}
3 | libdir=${exec_prefix}/lib
4 | includedir=${prefix}/include
5 |
6 | Name: Soapy SDR
7 | Description: Vendor and platform neutral SDR interface library.
8 | URL: https://github.com/pothosware/SoapySDR/wiki
9 | Version: 0.7.0
10 | Requires:
11 | Requires.private:
12 | Conflicts:
13 | Cflags: -I${includedir}
14 | Libs: -L${libdir} -lSoapySDR
15 | Libs.private:
16 |
--------------------------------------------------------------------------------
/legacy/openwebrx/overlay/openwebrx/CONTRIBUTING.md:
--------------------------------------------------------------------------------
1 | First of all, thank you for taking the time to contribute to this project!
2 |
3 | Before I can accept your contributions, I need a signed copy of the Individual Contributor License Agreement (ICLA) from you, which is available here.
4 |
5 | The ICLA is needed because it will allow me to dual license the OpenWebRX project under AGPL and a commercial license.
6 | I will also apply dual licensing to csdr, but only those parts that are original work (e.g. without the parts enabled by `-DUSE_IMA_ADPCM`; code taken from other projects is clearly separable).
7 |
8 | However, even if there is commercial interest in the projects, I promise to keep them as open as possible, keeping my original intention to provide an open-source web-based SDR receiver software to the amateur radio operators and SDR enthusiasts.
9 |
10 | This contributor agreement is based on the one of Apache Software Foundation, with some modifications. (You can review differences here).
11 | When you contribute for the first time, I will send you the ICLA. Replying with only the information requested and the text "I Agree" is sufficient.
12 |
13 | Thanks,
14 |
15 | Andras, HA7ILM
16 |
--------------------------------------------------------------------------------
/legacy/openwebrx/overlay/openwebrx/CONTRIBUTORS:
--------------------------------------------------------------------------------
1 | This is a list of the great people who contributed code to the OpenWebRX repository. (Names are sorted alphabetically.)
2 |
3 | Gnoxter
4 | John Seamons, ZL/KF6VO
5 |
6 |
--------------------------------------------------------------------------------
/legacy/openwebrx/overlay/openwebrx/config_webrx.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/unixpunk/PlutoWeb/23f79e7d1e52c7ed183aa2c5af6be9cccfc10cbf/legacy/openwebrx/overlay/openwebrx/config_webrx.pyc
--------------------------------------------------------------------------------
/legacy/openwebrx/overlay/openwebrx/csdr.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/unixpunk/PlutoWeb/23f79e7d1e52c7ed183aa2c5af6be9cccfc10cbf/legacy/openwebrx/overlay/openwebrx/csdr.pyc
--------------------------------------------------------------------------------
/legacy/openwebrx/overlay/openwebrx/htdocs/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/unixpunk/PlutoWeb/23f79e7d1e52c7ed183aa2c5af6be9cccfc10cbf/legacy/openwebrx/overlay/openwebrx/htdocs/favicon.ico
--------------------------------------------------------------------------------
/legacy/openwebrx/overlay/openwebrx/htdocs/gfx/font-expletus-sans/ExpletusSans-Medium.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/unixpunk/PlutoWeb/23f79e7d1e52c7ed183aa2c5af6be9cccfc10cbf/legacy/openwebrx/overlay/openwebrx/htdocs/gfx/font-expletus-sans/ExpletusSans-Medium.ttf
--------------------------------------------------------------------------------
/legacy/openwebrx/overlay/openwebrx/htdocs/gfx/openwebrx-3d-spectrum.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/unixpunk/PlutoWeb/23f79e7d1e52c7ed183aa2c5af6be9cccfc10cbf/legacy/openwebrx/overlay/openwebrx/htdocs/gfx/openwebrx-3d-spectrum.png
--------------------------------------------------------------------------------
/legacy/openwebrx/overlay/openwebrx/htdocs/gfx/openwebrx-avatar-background.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/unixpunk/PlutoWeb/23f79e7d1e52c7ed183aa2c5af6be9cccfc10cbf/legacy/openwebrx/overlay/openwebrx/htdocs/gfx/openwebrx-avatar-background.png
--------------------------------------------------------------------------------
/legacy/openwebrx/overlay/openwebrx/htdocs/gfx/openwebrx-avatar.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/unixpunk/PlutoWeb/23f79e7d1e52c7ed183aa2c5af6be9cccfc10cbf/legacy/openwebrx/overlay/openwebrx/htdocs/gfx/openwebrx-avatar.png
--------------------------------------------------------------------------------
/legacy/openwebrx/overlay/openwebrx/htdocs/gfx/openwebrx-background-cool-blue.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/unixpunk/PlutoWeb/23f79e7d1e52c7ed183aa2c5af6be9cccfc10cbf/legacy/openwebrx/overlay/openwebrx/htdocs/gfx/openwebrx-background-cool-blue.png
--------------------------------------------------------------------------------
/legacy/openwebrx/overlay/openwebrx/htdocs/gfx/openwebrx-background-lingrad.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/unixpunk/PlutoWeb/23f79e7d1e52c7ed183aa2c5af6be9cccfc10cbf/legacy/openwebrx/overlay/openwebrx/htdocs/gfx/openwebrx-background-lingrad.png
--------------------------------------------------------------------------------
/legacy/openwebrx/overlay/openwebrx/htdocs/gfx/openwebrx-ha5kfu-top-logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/unixpunk/PlutoWeb/23f79e7d1e52c7ed183aa2c5af6be9cccfc10cbf/legacy/openwebrx/overlay/openwebrx/htdocs/gfx/openwebrx-ha5kfu-top-logo.png
--------------------------------------------------------------------------------
/legacy/openwebrx/overlay/openwebrx/htdocs/gfx/openwebrx-logo-big.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/unixpunk/PlutoWeb/23f79e7d1e52c7ed183aa2c5af6be9cccfc10cbf/legacy/openwebrx/overlay/openwebrx/htdocs/gfx/openwebrx-logo-big.png
--------------------------------------------------------------------------------
/legacy/openwebrx/overlay/openwebrx/htdocs/gfx/openwebrx-panel-log.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/unixpunk/PlutoWeb/23f79e7d1e52c7ed183aa2c5af6be9cccfc10cbf/legacy/openwebrx/overlay/openwebrx/htdocs/gfx/openwebrx-panel-log.png
--------------------------------------------------------------------------------
/legacy/openwebrx/overlay/openwebrx/htdocs/gfx/openwebrx-panel-receiver.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/unixpunk/PlutoWeb/23f79e7d1e52c7ed183aa2c5af6be9cccfc10cbf/legacy/openwebrx/overlay/openwebrx/htdocs/gfx/openwebrx-panel-receiver.png
--------------------------------------------------------------------------------
/legacy/openwebrx/overlay/openwebrx/htdocs/gfx/openwebrx-panel-status.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/unixpunk/PlutoWeb/23f79e7d1e52c7ed183aa2c5af6be9cccfc10cbf/legacy/openwebrx/overlay/openwebrx/htdocs/gfx/openwebrx-panel-status.png
--------------------------------------------------------------------------------
/legacy/openwebrx/overlay/openwebrx/htdocs/gfx/openwebrx-play-button.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/unixpunk/PlutoWeb/23f79e7d1e52c7ed183aa2c5af6be9cccfc10cbf/legacy/openwebrx/overlay/openwebrx/htdocs/gfx/openwebrx-play-button.png
--------------------------------------------------------------------------------
/legacy/openwebrx/overlay/openwebrx/htdocs/gfx/openwebrx-rx-details-arrow-up.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/unixpunk/PlutoWeb/23f79e7d1e52c7ed183aa2c5af6be9cccfc10cbf/legacy/openwebrx/overlay/openwebrx/htdocs/gfx/openwebrx-rx-details-arrow-up.png
--------------------------------------------------------------------------------
/legacy/openwebrx/overlay/openwebrx/htdocs/gfx/openwebrx-rx-details-arrow.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/unixpunk/PlutoWeb/23f79e7d1e52c7ed183aa2c5af6be9cccfc10cbf/legacy/openwebrx/overlay/openwebrx/htdocs/gfx/openwebrx-rx-details-arrow.png
--------------------------------------------------------------------------------
/legacy/openwebrx/overlay/openwebrx/htdocs/gfx/openwebrx-scale-background.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/unixpunk/PlutoWeb/23f79e7d1e52c7ed183aa2c5af6be9cccfc10cbf/legacy/openwebrx/overlay/openwebrx/htdocs/gfx/openwebrx-scale-background.png
--------------------------------------------------------------------------------
/legacy/openwebrx/overlay/openwebrx/htdocs/gfx/openwebrx-speaker-muted.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/unixpunk/PlutoWeb/23f79e7d1e52c7ed183aa2c5af6be9cccfc10cbf/legacy/openwebrx/overlay/openwebrx/htdocs/gfx/openwebrx-speaker-muted.png
--------------------------------------------------------------------------------
/legacy/openwebrx/overlay/openwebrx/htdocs/gfx/openwebrx-speaker.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/unixpunk/PlutoWeb/23f79e7d1e52c7ed183aa2c5af6be9cccfc10cbf/legacy/openwebrx/overlay/openwebrx/htdocs/gfx/openwebrx-speaker.png
--------------------------------------------------------------------------------
/legacy/openwebrx/overlay/openwebrx/htdocs/gfx/openwebrx-squelch-button.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/unixpunk/PlutoWeb/23f79e7d1e52c7ed183aa2c5af6be9cccfc10cbf/legacy/openwebrx/overlay/openwebrx/htdocs/gfx/openwebrx-squelch-button.png
--------------------------------------------------------------------------------
/legacy/openwebrx/overlay/openwebrx/htdocs/gfx/openwebrx-top-logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/unixpunk/PlutoWeb/23f79e7d1e52c7ed183aa2c5af6be9cccfc10cbf/legacy/openwebrx/overlay/openwebrx/htdocs/gfx/openwebrx-top-logo.png
--------------------------------------------------------------------------------
/legacy/openwebrx/overlay/openwebrx/htdocs/gfx/openwebrx-top-photo.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/unixpunk/PlutoWeb/23f79e7d1e52c7ed183aa2c5af6be9cccfc10cbf/legacy/openwebrx/overlay/openwebrx/htdocs/gfx/openwebrx-top-photo.jpg
--------------------------------------------------------------------------------
/legacy/openwebrx/overlay/openwebrx/htdocs/gfx/openwebrx-waterfall-auto.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/unixpunk/PlutoWeb/23f79e7d1e52c7ed183aa2c5af6be9cccfc10cbf/legacy/openwebrx/overlay/openwebrx/htdocs/gfx/openwebrx-waterfall-auto.png
--------------------------------------------------------------------------------
/legacy/openwebrx/overlay/openwebrx/htdocs/gfx/openwebrx-waterfall-default.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/unixpunk/PlutoWeb/23f79e7d1e52c7ed183aa2c5af6be9cccfc10cbf/legacy/openwebrx/overlay/openwebrx/htdocs/gfx/openwebrx-waterfall-default.png
--------------------------------------------------------------------------------
/legacy/openwebrx/overlay/openwebrx/htdocs/gfx/openwebrx-zoom-in-total.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/unixpunk/PlutoWeb/23f79e7d1e52c7ed183aa2c5af6be9cccfc10cbf/legacy/openwebrx/overlay/openwebrx/htdocs/gfx/openwebrx-zoom-in-total.png
--------------------------------------------------------------------------------
/legacy/openwebrx/overlay/openwebrx/htdocs/gfx/openwebrx-zoom-in.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/unixpunk/PlutoWeb/23f79e7d1e52c7ed183aa2c5af6be9cccfc10cbf/legacy/openwebrx/overlay/openwebrx/htdocs/gfx/openwebrx-zoom-in.png
--------------------------------------------------------------------------------
/legacy/openwebrx/overlay/openwebrx/htdocs/gfx/openwebrx-zoom-out-total.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/unixpunk/PlutoWeb/23f79e7d1e52c7ed183aa2c5af6be9cccfc10cbf/legacy/openwebrx/overlay/openwebrx/htdocs/gfx/openwebrx-zoom-out-total.png
--------------------------------------------------------------------------------
/legacy/openwebrx/overlay/openwebrx/htdocs/gfx/openwebrx-zoom-out.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/unixpunk/PlutoWeb/23f79e7d1e52c7ed183aa2c5af6be9cccfc10cbf/legacy/openwebrx/overlay/openwebrx/htdocs/gfx/openwebrx-zoom-out.png
--------------------------------------------------------------------------------
/legacy/openwebrx/overlay/openwebrx/htdocs/inactive.html:
--------------------------------------------------------------------------------
1 |
2 |
22 | OpenWebRX
23 |
74 |
75 |
76 |
77 |
78 |

79 |
80 | Sorry, the receiver is inactive due to internal error.
81 |
82 |
83 |
84 |
85 |
86 |
--------------------------------------------------------------------------------
/legacy/openwebrx/overlay/openwebrx/htdocs/nanoscroller.css:
--------------------------------------------------------------------------------
1 | /** initial setup **/
2 | .nano {
3 | position : relative;
4 | width : 100%;
5 | height : 100%;
6 | overflow : hidden;
7 | }
8 | .nano > .nano-content {
9 | position : absolute;
10 | overflow : scroll;
11 | overflow-x : hidden;
12 | top : 0;
13 | right : 0;
14 | bottom : 0;
15 | left : 0;
16 | }
17 | .nano > .nano-content:focus {
18 | outline: thin dotted;
19 | }
20 | .nano > .nano-content::-webkit-scrollbar {
21 | display: none;
22 | }
23 | .has-scrollbar > .nano-content::-webkit-scrollbar {
24 | display: block;
25 | }
26 | .nano > .nano-pane {
27 | background : rgba(0,0,0,.25);
28 | position : absolute;
29 | width : 8px;
30 | right : 0;
31 | top : 0;
32 | bottom : 0;
33 | visibility : hidden\9; /* Target only IE7 and IE8 with this hack */
34 | opacity : .01;
35 | -webkit-transition : .2s;
36 | -moz-transition : .2s;
37 | -o-transition : .2s;
38 | transition : .2s;
39 | -moz-border-radius : 3px;
40 | -webkit-border-radius : 3px;
41 | border-radius : 3px;
42 | }
43 | .nano > .nano-pane > .nano-slider {
44 | background: #444;
45 | background: rgba(0,0,0,.5);
46 | position : relative;
47 | margin : 0 0px;
48 | -moz-border-radius : 4px;
49 | -webkit-border-radius : 4px;
50 | border-radius : 4px;
51 | }
52 | .nano:hover > .nano-pane, .nano-pane.active, .nano-pane.flashed {
53 | visibility : visible\9; /* Target only IE7 and IE8 with this hack */
54 | opacity : 0.99;
55 | }
56 |
--------------------------------------------------------------------------------
/legacy/openwebrx/overlay/openwebrx/htdocs/retry.html:
--------------------------------------------------------------------------------
1 |
2 |
22 | OpenWebRX
23 |
74 |
79 |
80 |
81 |
82 |
83 |
84 |

85 |
86 | There are no client slots left on this server.
87 |
88 | Please wait until a client disconnects.
We will try to reconnect in 30 seconds...
89 |
90 |
91 |
92 |
93 |
94 |
95 |
--------------------------------------------------------------------------------
/legacy/openwebrx/overlay/openwebrx/htdocs/upgrade.html:
--------------------------------------------------------------------------------
1 |
2 |
22 | OpenWebRX
23 |
74 |
78 |
79 |
80 |
81 |
82 |
83 |

84 |
85 | Only the latest
Google Chrome browser is supported at the moment.
86 | Please
download and install Google Chrome.
87 |
88 | Alternatively, you may proceed to OpenWebRX, but it's not supposed to work as expected.
89 |
Click here if you still want to try OpenWebRX.
90 |
91 |
92 |
93 |
94 |
95 |
96 |
--------------------------------------------------------------------------------
/legacy/openwebrx/overlay/openwebrx/rxws.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/unixpunk/PlutoWeb/23f79e7d1e52c7ed183aa2c5af6be9cccfc10cbf/legacy/openwebrx/overlay/openwebrx/rxws.pyc
--------------------------------------------------------------------------------
/legacy/openwebrx/overlay/openwebrx/sdrhu.py:
--------------------------------------------------------------------------------
1 | #!/usr/bin/python2
2 | """
3 |
4 | This file is part of OpenWebRX,
5 | an open-source SDR receiver software with a web UI.
6 | Copyright (c) 2013-2015 by Andras Retzler
7 |
8 | This program is free software: you can redistribute it and/or modify
9 | it under the terms of the GNU Affero General Public License as
10 | published by the Free Software Foundation, either version 3 of the
11 | License, or (at your option) any later version.
12 |
13 | This program is distributed in the hope that it will be useful,
14 | but WITHOUT ANY WARRANTY; without even the implied warranty of
15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 | GNU Affero General Public License for more details.
17 |
18 | You should have received a copy of the GNU Affero General Public License
19 | along with this program. If not, see .
20 |
21 | """
22 |
23 | import config_webrx as cfg, time, subprocess
24 |
25 | def run(continuously=True):
26 | if not cfg.sdrhu_key: return
27 | firsttime="(Your receiver is soon getting listed on sdr.hu!)"
28 | while True:
29 | cmd = "wget --timeout=15 -4qO- http://sdr.hu/update --post-data \"url=http://"+cfg.server_hostname+":"+str(cfg.web_port)+"&apikey="+cfg.sdrhu_key+"\" 2>&1"
30 | #print "[openwebrx-sdrhu]", cmd
31 | returned=subprocess.Popen(cmd, shell=True, stdout=subprocess.PIPE).communicate()
32 | returned=returned[0]
33 | #print returned
34 | if "UPDATE:" in returned:
35 | retrytime_mins = 20
36 | value=returned.split("UPDATE:")[1].split("\n",1)[0]
37 | if value.startswith("SUCCESS"):
38 | print "[openwebrx-sdrhu] Update succeeded! "+firsttime
39 | firsttime=""
40 | else:
41 | print "[openwebrx-sdrhu] Update failed, your receiver cannot be listed on sdr.hu! Reason:", value
42 | else:
43 | retrytime_mins = 2
44 | print "[openwebrx-sdrhu] wget failed while updating, your receiver cannot be listed on sdr.hu!"
45 | if not continuously: break
46 | time.sleep(60*retrytime_mins)
47 |
48 | if __name__=="__main__":
49 | run(False)
50 |
51 |
--------------------------------------------------------------------------------
/legacy/openwebrx/overlay/openwebrx/sdrhu.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/unixpunk/PlutoWeb/23f79e7d1e52c7ed183aa2c5af6be9cccfc10cbf/legacy/openwebrx/overlay/openwebrx/sdrhu.pyc
--------------------------------------------------------------------------------
/plutoweb/README.md:
--------------------------------------------------------------------------------
1 | # PlutoWeb
2 |
3 | This is an image with a web interface to control settings for openwebrx and which program to auto-start so you don't need to use ssh anymore.
4 |
5 | Once you flash your device, visit http://pluto.local/
6 |
7 | The auto-reboot option is disabled by default and only takes effect after a reboot.
8 |
9 | Auto-update is also disabled by default.
10 |
11 | Find the corresponding README.md for each program in the respective legacy folder for more details.
12 |
--------------------------------------------------------------------------------
/plutoweb/buildgz.sh:
--------------------------------------------------------------------------------
1 | #/bin/sh
2 |
3 | cd /home/steve/Desktop/SDR/Pluto/PlutoWeb/plutoweb/overlay
4 | rm -f ../update3.tgz*
5 | tar -czvf ../update3.tgz *
6 | cd ..
7 | md5sum -b update3.tgz >update3.tgz.md5sum
8 |
--------------------------------------------------------------------------------
/plutoweb/images/boot.dfu:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/unixpunk/PlutoWeb/23f79e7d1e52c7ed183aa2c5af6be9cccfc10cbf/plutoweb/images/boot.dfu
--------------------------------------------------------------------------------
/plutoweb/images/boot.frm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/unixpunk/PlutoWeb/23f79e7d1e52c7ed183aa2c5af6be9cccfc10cbf/plutoweb/images/boot.frm
--------------------------------------------------------------------------------
/plutoweb/images/pluto.dfu:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/unixpunk/PlutoWeb/23f79e7d1e52c7ed183aa2c5af6be9cccfc10cbf/plutoweb/images/pluto.dfu
--------------------------------------------------------------------------------
/plutoweb/images/pluto.frm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/unixpunk/PlutoWeb/23f79e7d1e52c7ed183aa2c5af6be9cccfc10cbf/plutoweb/images/pluto.frm
--------------------------------------------------------------------------------
/plutoweb/images/uboot-env.dfu:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/unixpunk/PlutoWeb/23f79e7d1e52c7ed183aa2c5af6be9cccfc10cbf/plutoweb/images/uboot-env.dfu
--------------------------------------------------------------------------------
/plutoweb/overlay/bin/SoapySDRServer:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/unixpunk/PlutoWeb/23f79e7d1e52c7ed183aa2c5af6be9cccfc10cbf/plutoweb/overlay/bin/SoapySDRServer
--------------------------------------------------------------------------------
/plutoweb/overlay/bin/SoapySDRUtil:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/unixpunk/PlutoWeb/23f79e7d1e52c7ed183aa2c5af6be9cccfc10cbf/plutoweb/overlay/bin/SoapySDRUtil
--------------------------------------------------------------------------------
/plutoweb/overlay/bin/arm.retrogram-plutosdr:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/unixpunk/PlutoWeb/23f79e7d1e52c7ed183aa2c5af6be9cccfc10cbf/plutoweb/overlay/bin/arm.retrogram-plutosdr
--------------------------------------------------------------------------------
/plutoweb/overlay/bin/csdr:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/unixpunk/PlutoWeb/23f79e7d1e52c7ed183aa2c5af6be9cccfc10cbf/plutoweb/overlay/bin/csdr
--------------------------------------------------------------------------------
/plutoweb/overlay/bin/dump1090.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | ## Pull in settings
3 | . /bin/readsettings.sh >/dev/null
4 |
5 | cd /dump1090
6 | while [[ "$autostart" = "dump1090" ]]; do
7 | ./dump1090 --net --net-http-port 8080 --gain 89 --aggressive
8 | sleep 1
9 | . /bin/readsettings.sh >/dev/null
10 | done
11 |
--------------------------------------------------------------------------------
/plutoweb/overlay/bin/leanchansim:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/unixpunk/PlutoWeb/23f79e7d1e52c7ed183aa2c5af6be9cccfc10cbf/plutoweb/overlay/bin/leanchansim
--------------------------------------------------------------------------------
/plutoweb/overlay/bin/leandvb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/unixpunk/PlutoWeb/23f79e7d1e52c7ed183aa2c5af6be9cccfc10cbf/plutoweb/overlay/bin/leandvb
--------------------------------------------------------------------------------
/plutoweb/overlay/bin/leandvb_tui.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | if [ -z "$1" ]; then
4 | echo "Usage: $0 /path/to/leandvb --fd-info 2 [leandvb options] < IQ > TS" 1>&2
5 | exit 1
6 | fi
7 |
8 | echo -e "\nleandvb text UI example" 1>&2
9 |
10 | (exec $* 2>&1 1>&4 |
11 | ( while read tag val; do
12 | case "$tag" in
13 | LOCK)
14 | case "$val" in
15 | 0) lock="[SEARCH]" ;;
16 | 1) lock="[LOCKED]" ;;
17 | esac ;;
18 | MER) mer=$(printf "[MER %4.1f dB]" "$val") ;;
19 | SS) ss=$(printf "[SS %3.0f]" "$val") ;;
20 | FREQ) freq=$(printf "[Offset %+7.0f Hz]" "$val") ;;
21 | CR) cr=$(printf "[FEC %s]" "$val") ;;
22 | SR) sr=$(printf "[SR %7.0f Hz]" "$val") ;;
23 | *) echo -e "\n$tag $val" 1>&2 ;;
24 | esac
25 | echo -ne "\r$ss $freq $mer $lock $sr $cr" 1>&2
26 | done)
27 | ) 4>&1
28 | echo 1>&2
--------------------------------------------------------------------------------
/plutoweb/overlay/bin/leandvb_vt100ui.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | if [ -z "$1" ]; then
4 | echo "Usage: $0 /path/to/leandvb --fd-info 2 --fd-const 2 [leandvb options] < IQ > TS" 1>&2
5 | exit 1
6 | fi
7 |
8 | printat() {
9 | row=$1; col=$2; fmt=$3; shift 3
10 | printf "\033[${row};${col}f$fmt" $* 1>&2
11 | }
12 |
13 | print_symbols() {
14 | char="$1"
15 | set $2
16 | shift
17 | for iq in $*; do
18 | echo $iq | (
19 | IFS="," read i q
20 | [ $i -lt -128 ] && i=-128
21 | [ $i -gt 127 ] && i=127
22 | [ $q -lt -128 ] && q=-128
23 | [ $q -gt 127 ] && q=127
24 | printat $((11-$q/12)) $((50+$i/6)) "$char"
25 | r=$((11-$q/12))
26 | c=$((50+$i/6))
27 | # printat $r $c "$char"
28 | )
29 | done
30 | }
31 |
32 | constel_decim=50
33 |
34 | constel_count=0
35 | print_constel() {
36 | if [ $constel_count -lt $constel_decim ]; then
37 | constel_count=$((constel_count+1))
38 | return
39 | fi
40 | constel_count=0
41 |
42 | y=1
43 | while [ $y -le 21 ]; do
44 | #printat $y 50 "|"
45 | printat $y 29 " | "
46 | y=$((y+1))
47 | done
48 | printat 11 29 "---------------------+---------------------"
49 | print_symbols "x" "$2"
50 | print_symbols "#" "$1"
51 | }
52 |
53 | printf "\033[2J\033[?25l" 1>&2
54 |
55 | printat 2 3 "leandvb VT100 UI example"
56 |
57 | (exec $* 2>&1 1>&4 |
58 | ( while read tag val; do
59 | case "$tag" in
60 | SS) printat 4 3 "SS: %3.0f" "$val" ;;
61 | MER) printat 6 3 "MER: %4.1f dB" "$val" ;;
62 | FREQ) printat 8 3 "Offset: %+7.0f Hz" "$val" ;;
63 | LOCK)
64 | case "$val" in
65 | 0) printat 10 3 "SYNCHRONIZING..." ;;
66 | 1) printat 10 3 "LOCKED " ;;
67 | esac ;;
68 | CR) printat 12 3 "FEC: %s" "$val" ;;
69 | SR) printat 14 3 "SR: %7.0f Hz" "$val" ;;
70 | CONST) constel="$val" ;;
71 | SYMBOLS) print_constel "$constel" "$val" ;;
72 | *) printat 20 1 "$tag $val"
73 | esac
74 | done)
75 | ) 4>&1
76 |
77 | printat 30 1 "\033[?25h"
78 |
--------------------------------------------------------------------------------
/plutoweb/overlay/bin/leandvbtx:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/unixpunk/PlutoWeb/23f79e7d1e52c7ed183aa2c5af6be9cccfc10cbf/plutoweb/overlay/bin/leandvbtx
--------------------------------------------------------------------------------
/plutoweb/overlay/bin/leaniiorx:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/unixpunk/PlutoWeb/23f79e7d1e52c7ed183aa2c5af6be9cccfc10cbf/plutoweb/overlay/bin/leaniiorx
--------------------------------------------------------------------------------
/plutoweb/overlay/bin/leaniiotx:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/unixpunk/PlutoWeb/23f79e7d1e52c7ed183aa2c5af6be9cccfc10cbf/plutoweb/overlay/bin/leaniiotx
--------------------------------------------------------------------------------
/plutoweb/overlay/bin/leanmlmrx:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/unixpunk/PlutoWeb/23f79e7d1e52c7ed183aa2c5af6be9cccfc10cbf/plutoweb/overlay/bin/leanmlmrx
--------------------------------------------------------------------------------
/plutoweb/overlay/bin/leansdrcat:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/unixpunk/PlutoWeb/23f79e7d1e52c7ed183aa2c5af6be9cccfc10cbf/plutoweb/overlay/bin/leansdrcat
--------------------------------------------------------------------------------
/plutoweb/overlay/bin/leansdrscan:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/unixpunk/PlutoWeb/23f79e7d1e52c7ed183aa2c5af6be9cccfc10cbf/plutoweb/overlay/bin/leansdrscan
--------------------------------------------------------------------------------
/plutoweb/overlay/bin/leansdrserv:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/unixpunk/PlutoWeb/23f79e7d1e52c7ed183aa2c5af6be9cccfc10cbf/plutoweb/overlay/bin/leansdrserv
--------------------------------------------------------------------------------
/plutoweb/overlay/bin/leantsgen:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/unixpunk/PlutoWeb/23f79e7d1e52c7ed183aa2c5af6be9cccfc10cbf/plutoweb/overlay/bin/leantsgen
--------------------------------------------------------------------------------
/plutoweb/overlay/bin/minidemod-wfm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/unixpunk/PlutoWeb/23f79e7d1e52c7ed183aa2c5af6be9cccfc10cbf/plutoweb/overlay/bin/minidemod-wfm
--------------------------------------------------------------------------------
/plutoweb/overlay/bin/minidemod-wfm-atan:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/unixpunk/PlutoWeb/23f79e7d1e52c7ed183aa2c5af6be9cccfc10cbf/plutoweb/overlay/bin/minidemod-wfm-atan
--------------------------------------------------------------------------------
/plutoweb/overlay/bin/morfeus_tool_linux_armv7:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/unixpunk/PlutoWeb/23f79e7d1e52c7ed183aa2c5af6be9cccfc10cbf/plutoweb/overlay/bin/morfeus_tool_linux_armv7
--------------------------------------------------------------------------------
/plutoweb/overlay/bin/multimon-ng:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/unixpunk/PlutoWeb/23f79e7d1e52c7ed183aa2c5af6be9cccfc10cbf/plutoweb/overlay/bin/multimon-ng
--------------------------------------------------------------------------------
/plutoweb/overlay/bin/nmux:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/unixpunk/PlutoWeb/23f79e7d1e52c7ed183aa2c5af6be9cccfc10cbf/plutoweb/overlay/bin/nmux
--------------------------------------------------------------------------------
/plutoweb/overlay/bin/openwebrx.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | ## Pull in any saved settings or use defaults
3 | . /bin/readsettings.sh >/dev/null
4 |
5 | ## Check and apply override pre-set
6 | if [ $openwebrx_override == 1 ]; then
7 | export max_clients=15
8 | export samp_rate=100000
9 | echo "Using Pre-Set 100ksps = 15 users max"
10 | elif [ $openwebrx_override == 2 ]; then
11 | export max_clients=7
12 | export samp_rate=300000
13 | echo "Using Pre-Set 300ksps = 7 users max"
14 | elif [ $openwebrx_override == 3 ]; then
15 | export samp_rate=900000
16 | export max_clients=2
17 | echo "Using Pre-Set 900ksps = 2 users max"
18 | elif [ $openwebrx_override == 4 ]; then
19 | export samp_rate=1500000
20 | export max_clients=1
21 | echo "Using Pre-Set 1.5msps = 1 user max"
22 | fi
23 |
24 | ## Start openwebrx
25 | cd /openwebrx
26 | python openwebrx.py
27 |
--------------------------------------------------------------------------------
/plutoweb/overlay/bin/pow_pluto:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/unixpunk/PlutoWeb/23f79e7d1e52c7ed183aa2c5af6be9cccfc10cbf/plutoweb/overlay/bin/pow_pluto
--------------------------------------------------------------------------------
/plutoweb/overlay/bin/retrogram-plutosdr.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | TERM=linux /bin/arm.retrogram-plutosdr $@
3 |
--------------------------------------------------------------------------------
/plutoweb/overlay/bin/rtl_433:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/unixpunk/PlutoWeb/23f79e7d1e52c7ed183aa2c5af6be9cccfc10cbf/plutoweb/overlay/bin/rtl_433
--------------------------------------------------------------------------------
/plutoweb/overlay/bin/rx_fm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/unixpunk/PlutoWeb/23f79e7d1e52c7ed183aa2c5af6be9cccfc10cbf/plutoweb/overlay/bin/rx_fm
--------------------------------------------------------------------------------
/plutoweb/overlay/bin/rx_power:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/unixpunk/PlutoWeb/23f79e7d1e52c7ed183aa2c5af6be9cccfc10cbf/plutoweb/overlay/bin/rx_power
--------------------------------------------------------------------------------
/plutoweb/overlay/bin/rx_sdr:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/unixpunk/PlutoWeb/23f79e7d1e52c7ed183aa2c5af6be9cccfc10cbf/plutoweb/overlay/bin/rx_sdr
--------------------------------------------------------------------------------
/plutoweb/overlay/bin/soapyremote.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | ## Pull in settings
3 | . /bin/readsettings.sh >/dev/null
4 |
5 | cd
6 | while [[ "$autostart" = "SoapyRemote" ]]; do
7 | /bin/SoapySDRServer --bind
8 | sleep 1
9 | . /bin/readsettings.sh >/dev/null
10 | done
11 |
--------------------------------------------------------------------------------
/plutoweb/overlay/bin/updatewatch.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | # Don't need to run this directly, its called on boot if autoupdate=y
3 |
4 | # Our job is to loop and check for the existence of update3.tgz and update3.tgz.md5sum
5 | # If we find update3.tgz, we'll assume its legit and use it. This makes us very hackable.
6 | # You could use any update3.tgz and we will blindly extract it right over the top of /
7 | # The update3.tgz is simply the overlay folder zipped up.
8 |
9 | # If we see an update3.tgz.md5sum first, we'll use it to verify the upload
10 | # Again, this screams, "HACK ME!". But for real, hack it better.
11 | # Source current settings
12 | . /bin/readsettings.sh >/dev/null
13 | flash_indication_on() {
14 | echo timer > /sys/class/leds/led0:green/trigger
15 | echo 40 > /sys/class/leds/led0:green/delay_off
16 | echo 40 > /sys/class/leds/led0:green/delay_on
17 | }
18 |
19 | flash_indication_off() {
20 | echo heartbeat > /sys/class/leds/led0:green/trigger
21 | }
22 |
23 | SLEEP=10s
24 |
25 | while true
26 | do
27 | sleep $SLEEP
28 | if [ "$updatesrunning" = "y" ]; then
29 | sleep $SLEEP
30 | else
31 | for file in /root/update3.tgz /media/update3.tgz
32 | do
33 | if [ -f $file.md5sum ]; then
34 | if diff -q $file.md5sum /root/.update3.tgz.md5sum; then
35 | echo "*** Auto-updates enabled - already up to date as $file ***" >>/etc/motd
36 | rm -f $file $file.md5sum
37 | updatesrunning=n
38 | sed -i 's/updatesrunning=y/updatesrunning=n/' /root/plutoweb.conf
39 | else
40 | updatesrunning=y
41 | flash_indication_on
42 | sed -i 's/updatesrunning=n/updatesrunning=y/' /root/plutoweb.conf
43 | echo "Found $file.md5sum, checking for $file"
44 | sleep 3
45 | if [ -f $file ]; then
46 | echo "Found $file"
47 | sleep 5
48 | if [ "$(md5sum -b $file | awk -F\\ '{ print $1 }')" = "$(cat $file.md5sum | awk -F\\ '{ print $1 }')" ]; then
49 | cd / && gzip -dc $file | tar -xvf - && echo "*** Auto-updates enabled and $file completed successfully with md5 ***" >>/etc/motd && echo "$file update complete!" && rm -f /root/plutoweb.conf && /bin/readsettings.sh >/dev/null
50 | rm -f $file $file.md5sum
51 | updatesrunning=n
52 | flash_indication_off
53 | sed -i 's/updatesrunning=y/updatesrunning=n/' /root/plutoweb.conf
54 | else
55 | echo "$file failed the md5sum."
56 | echo "*** Auto-updates enabled but $file failed the md5sum ***" >>/etc/motd
57 | rm -f $file $file.md5sum
58 | updatesrunning=n
59 | flash_indication_off
60 | sed -i 's/updatesrunning=y/updatesrunning=n/' /root/plutoweb.conf
61 | fi
62 | else
63 | echo "$file not found."
64 | rm -f $file $file.md5sum
65 | updatesrunning=n
66 | flash_indication_off
67 | sed -i 's/updatesrunning=y/updatesrunning=n/' /root/plutoweb.conf
68 | fi
69 | fi
70 | fi
71 | if [ -f $file ]; then
72 | updatesrunning=y
73 | flash_indication_on
74 | sed -i 's/updatesrunning=n/updatesrunning=y/' /root/plutoweb.conf
75 | echo "Found $file - Waiting 5 seconds before proceeding..."
76 | sleep 5
77 | cd / && gzip -dc $file | tar -xvf - && echo "*** Auto-updates enabled and $file completed successfully ***" >>/etc/motd && echo "$file update complete!" && rm -f /root/plutoweb.conf && /bin/readsettings.sh >/dev/null
78 | rm -f $file $file.md5sum
79 | updatesrunning=n
80 | flash_indication_off
81 | sed -i 's/updatesrunning=y/updatesrunning=n/' /root/plutoweb.conf
82 | fi
83 | done
84 | fi
85 | . /bin/readsettings.sh >/dev/null
86 | done
87 |
--------------------------------------------------------------------------------
/plutoweb/overlay/bin/usbmounter.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | # Don't run this manually, it runs automatically
4 |
5 | # PlutoWeb Diskmounter and usb overlay worker
6 | if [ -b /dev/sda1 ] && [ ! -d /usb ]; then
7 | mkdir /usb
8 | mount /dev/sda1 /usb
9 | if [ -d /usb/plutoweb/overlay ]; then
10 | cd /usb/plutoweb/overlay
11 | for i in `find *`; do
12 | if [ -d $i ]; then
13 | [ -d /$i ]||{ rm -rf /$i; mkdir /$i; }
14 | else
15 | rm -rf /$i
16 | ln -s /usb/plutoweb/overlay/$i /$i
17 | fi
18 | done
19 | fi
20 | # Launch autorun.sh script, if found
21 | [ -f /usb/plutoweb/autorun.sh ] && /bin/sh /usb/plutoweb/autorun.sh &
22 | fi
23 |
--------------------------------------------------------------------------------
/plutoweb/overlay/dump1090/dump1090:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/unixpunk/PlutoWeb/23f79e7d1e52c7ed183aa2c5af6be9cccfc10cbf/plutoweb/overlay/dump1090/dump1090
--------------------------------------------------------------------------------
/plutoweb/overlay/dump1090/public_html/config.js:
--------------------------------------------------------------------------------
1 | // --------------------------------------------------------
2 | //
3 | // This file is to configure the configurable settings.
4 | // Load this file before script.js file at gmap.html.
5 | //
6 | // --------------------------------------------------------
7 |
8 | // -- Output Settings -------------------------------------
9 | // Show metric values
10 | Metric = false; // true or false
11 |
12 | // -- Map settings ----------------------------------------
13 | // The Latitude and Longitude in decimal format
14 | //CONST_CENTERLAT = 45.0;
15 | //CONST_CENTERLON = 9.0;
16 | // The google maps zoom level, 0 - 16, lower is further out
17 | //CONST_ZOOMLVL = 5;
18 |
19 | // -- Marker settings -------------------------------------
20 | // The default marker color
21 | MarkerColor = "rgb(127, 127, 127)";
22 | SelectedColor = "rgb(225, 225, 225)";
23 | StaleColor = "rgb(190, 190, 190)";
24 |
25 | // -- Site Settings ---------------------------------------
26 | SiteShow = false; // true or false
27 | // The Latitude and Longitude in decimal format
28 | SiteLat = 45.0;
29 | SiteLon = 9.0;
30 |
31 | SiteCircles = true; // true or false (Only shown if SiteShow is true)
32 | // In nautical miles or km (depending settings value 'Metric')
33 | SiteCirclesDistances = new Array(100,150,200);
34 |
35 |
--------------------------------------------------------------------------------
/plutoweb/overlay/dump1090/public_html/extension.js:
--------------------------------------------------------------------------------
1 | // -----------------------------------------------------
2 | //
3 | // This file is so users can modify how the page acts
4 | // without diving to deep in the code. This way we can
5 | // also try out or hold custom code for ourselves and
6 | // not check it into the repo.
7 | //
8 | // There is a div id'ed as plane_extension for use with
9 | // this javascript file.
10 | // -----------------------------------------------------
11 |
12 | function extendedInitalize() {
13 | // Write your initalization here
14 | // Gets called just before the 1-sec function call loop is setup
15 | }
16 |
17 | function extendedPulse() {
18 | // This will get called every second after all the main functions
19 | }
20 |
--------------------------------------------------------------------------------
/plutoweb/overlay/dump1090/public_html/gmap.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 | DUMP1090
18 |
19 |
20 |
21 |
The settings feature is coming soon. Keep checking GitHub.
22 |
23 |
26 |
58 |
59 | Squak 7x00 is reported and shown.
60 | This is most likely an error in reciving or decoding.
61 | Please do not call the local authorities, they already know about it if it is valid squak.
62 |
63 |
64 |
65 |
66 |
--------------------------------------------------------------------------------
/plutoweb/overlay/dump1090/public_html/gmap.html_orig:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 | DUMP1090
18 |
19 |
20 |
21 |
The settings feature is coming soon. Keep checking GitHub.
22 |
23 |
26 |
58 |
59 | Squak 7x00 is reported and shown.
60 | This is most likely an error in reciving or decoding.
61 | Please do not call the local authorities, they already know about it if it is valid squak.
62 |
63 |
64 |
65 |
66 |
--------------------------------------------------------------------------------
/plutoweb/overlay/dump1090/public_html/options.js:
--------------------------------------------------------------------------------
1 | var listKMLType = ['Approch', 'Departure', 'Transit', 'Custom1', 'Custom2'];
2 | var listKMLs = localStorage['listKMLs'] || [];
3 |
4 | function optionsInitalize() {
5 | // Write your initalization here
6 | // Gets called just before the 1-sec function call loop is setup
7 | $( "#dialog-modal" ).dialog({
8 | height: 140,
9 | modal: true,
10 | autoOpen: false,
11 | closeOnEscape: false
12 | });
13 | }
14 |
15 | function optionsModal() {
16 | $( "#dialog-modal" ).dialog( "open");
17 | }
18 |
--------------------------------------------------------------------------------
/plutoweb/overlay/dump1090/public_html/style.css:
--------------------------------------------------------------------------------
1 | html, body {
2 | margin: 0; padding: 0; background-color: #ffffff; font-family: Tahoma, Sans-Serif;
3 | font-size: 10pt; overflow: auto; height: 100%;
4 | }
5 | div#map_container { float: left; width: 100%; height: 100%; }
6 | div#map_canvas { height: 100%; margin-right: 420px; }
7 |
8 | div#sidebar_container { float: left; width: 410px; margin-left: -410px; height: 100%; overflow: auto; }
9 |
10 | div#SpecialSquawkWarning { position: absolute; bottom: 25px; right: 430px; border: 2px solid red;
11 | background-color: #FFFFA3; opacity: 0.75; filter:alpha(opacity=75); padding: 5px;
12 | display: none; text-align: center; }
13 |
14 | table#optionsTabs { width: 100%; font-size: small; font-family: monospace; background-color: #ddd;
15 | border: 1px; border-color: #000000;}
16 |
17 | #tableinfo, #sudo_buttons { font-size: x-small; font-family: monospace; }
18 |
19 | .vPosition { font-weight: bold; background-color: #d5ffd5; }
20 | .squawk7500 { font-weight: bold; background-color: #ff5555; }
21 | .squawk7600 { font-weight: bold; background-color: #00ffff; }
22 | .squawk7700 { font-weight: bold; background-color: #ffff00; }
23 | .selected { background-color: #dddddd; }
24 | .plane_table_row { cursor: pointer; }
25 |
26 | #selectedinfotitle { font-size: larger; }
27 | #selectedinfo { font-size: small; }
28 | #selectedinfo a { text-decoration: none; color: blue; font-size: x-small;}
29 | #selectedinfo.dim { opacity: 0.3; filter:alpha(opacity=30); /* For IE8 and earlier */ }
30 |
31 | .pointer { cursor: pointer; }
32 |
33 |
--------------------------------------------------------------------------------
/plutoweb/overlay/etc/httpd.conf:
--------------------------------------------------------------------------------
1 | *.php:/usr/bin/php-cgi
2 |
--------------------------------------------------------------------------------
/plutoweb/overlay/etc/init.d/S94pluto-mods:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | flash_indication_on() {
4 | echo timer > /sys/class/leds/led0:green/trigger
5 | echo 40 > /sys/class/leds/led0:green/delay_off
6 | echo 40 > /sys/class/leds/led0:green/delay_on
7 | }
8 |
9 | start() {
10 | REBOOTNEEDED=0
11 | echo "Checking for maxcpus and ad9364 mods..."
12 | export `fw_printenv maxcpus`
13 | export `fw_printenv attr_val`
14 | ## Check/set dual-core mode
15 | if [ $maxcpus == 1 ]; then
16 | flash_indication_on
17 | echo "Enabling dual-core mode..."
18 | fw_setenv maxcpus
19 | REBOOTNEEDED=1
20 | fi
21 | ## Check/set 70-6000mhz trick (default is 325-3800Mhz)
22 | if [ "$attr_val" != "ad9364" ]; then
23 | flash_indication_on
24 | echo "Enabling 70-6000Mhz mod..."
25 | fw_setenv attr_name compatible
26 | fw_setenv attr_val "ad9364"
27 | REBOOTNEEDED=1
28 | fi
29 | if [ $REBOOTNEEDED == 1 ]; then
30 | echo "Rebooting!"
31 | pluto_reboot reset
32 | else
33 | echo "Mods already in place, continuing."
34 | echo "Updating motd..."
35 | # Update motd
36 | cat /etc/motd.new >>/etc/motd
37 | ln -s /root/plutoweb.conf /www/plutoweb.conf
38 | /bin/sh /etc/init.d/S97autoreboot start &
39 | /bin/sh /etc/init.d/S97autoupdate start
40 | /moRFeus_listener/morf_tcp.sh >/dev/null 2>&1 &
41 | fi
42 | }
43 |
44 | stop() {
45 | echo
46 | }
47 |
48 | # See how we were called.
49 | case "$1" in
50 | start)
51 | start
52 | ;;
53 | stop)
54 | stop
55 | ;;
56 | *)
57 | echo "Usage: $0 {start}"
58 | exit 1
59 | esac
60 |
61 | exit $?
62 |
--------------------------------------------------------------------------------
/plutoweb/overlay/etc/init.d/S95autostart:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | # Read settings from NVRAM
3 | . /bin/readsettings.sh >/dev/null
4 |
5 | start() {
6 | /bin/sh /etc/init.d/S96$autostart start
7 | }
8 |
9 | stop() {
10 | for file in /etc/init.d/S96*; do
11 | /bin/sh $file stop
12 | done
13 | }
14 |
15 | restart() {
16 | stop
17 | start
18 | }
19 |
20 | # See how we were called.
21 | case "$1" in
22 | start)
23 | start
24 | ;;
25 | stop)
26 | stop
27 | ;;
28 | restart)
29 | restart
30 | ;;
31 | *)
32 | echo "Usage: $0 {start|stop|restart}"
33 | exit 1
34 | esac
35 |
36 | exit $?
37 |
--------------------------------------------------------------------------------
/plutoweb/overlay/etc/init.d/S96SoapyRemote:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | [ -f /bin/SoapySDRServer ] || exit 0
4 |
5 | start() {
6 | printf "Starting SoapyRemote: "
7 | screen -Dm /bin/soapyremote.sh $0 &
8 | . /bin/readsettings.sh >/dev/null
9 | echo "
- Done - Available here: $ip "
10 | }
11 |
12 |
13 | stop() {
14 | printf "Stopping SoapyRemote: "
15 | killall SoapySDRServer
16 | killall screen
17 | echo "done"
18 | }
19 |
20 | restart() {
21 | stop
22 | start
23 | }
24 |
25 | # See how we were called.
26 | case "$1" in
27 | start)
28 | start
29 | ;;
30 | stop)
31 | stop
32 | ;;
33 | restart|reload)
34 | restart
35 | ;;
36 | *)
37 | echo "Usage: $0 {start|stop|reload|restart}"
38 | exit 1
39 | esac
40 |
41 | exit $?
42 |
--------------------------------------------------------------------------------
/plutoweb/overlay/etc/init.d/S96dump1090:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | [ -f /bin/dump1090.sh ] || exit 0
4 |
5 | start() {
6 | printf "Starting dump1090: "
7 | screen -Dm /bin/dump1090.sh $0 &
8 | . /bin/readsettings.sh >/dev/null
9 | echo "
- Done - Available here: http://$ip:8080 "
10 | }
11 |
12 |
13 | stop() {
14 | printf "Stopping dump1090: "
15 | killall dump1090
16 | killall screen
17 | echo "done"
18 | }
19 |
20 | restart() {
21 | stop
22 | start
23 | }
24 |
25 | # See how we were called.
26 | case "$1" in
27 | start)
28 | start
29 | ;;
30 | stop)
31 | stop
32 | ;;
33 | restart|reload)
34 | restart
35 | ;;
36 | *)
37 | echo "Usage: $0 {start|stop|reload|restart}"
38 | exit 1
39 | esac
40 |
41 | exit $?
42 |
--------------------------------------------------------------------------------
/plutoweb/overlay/etc/init.d/S96leantrx:
--------------------------------------------------------------------------------
1 | S96none
--------------------------------------------------------------------------------
/plutoweb/overlay/etc/init.d/S96none:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | start() {
4 | . /bin/readsettings.sh >/dev/null
5 | echo "
"
6 | echo "*** All programs have been stopped! ***"
7 | echo "
"
8 | echo "LeanTRX is available here: http://$ip/leantrx"
9 | }
10 |
11 |
12 | stop() {
13 | echo " "
14 | }
15 |
16 | restart() {
17 | stop
18 | start
19 | }
20 |
21 | # See how we were called.
22 | case "$1" in
23 | start)
24 | start
25 | ;;
26 | stop)
27 | stop
28 | ;;
29 | *)
30 | echo "Usage: $0 {start|stop}"
31 | exit 1
32 | esac
33 |
34 | exit $?
35 |
--------------------------------------------------------------------------------
/plutoweb/overlay/etc/init.d/S96openwebrx:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | [ -f /bin/openwebrx.sh ] || exit 0
4 |
5 | start() {
6 | printf "Starting OpenWebRX: "
7 | screen -Dm /bin/openwebrx.sh $0 &
8 | . /bin/readsettings.sh >/dev/null
9 | echo "
- Done - Available here: http://$ip:$web_port "
10 | }
11 |
12 |
13 | stop() {
14 | printf "Stopping OpenWebRX: "
15 | killall python
16 | killall csdr
17 | killall nc
18 | killall nmux
19 | killall screen
20 | echo "done"
21 | }
22 |
23 | restart() {
24 | stop
25 | start
26 | }
27 |
28 | # See how we were called.
29 | case "$1" in
30 | start)
31 | start
32 | ;;
33 | stop)
34 | stop
35 | ;;
36 | restart|reload)
37 | restart
38 | ;;
39 | *)
40 | echo "Usage: $0 {start|stop|reload|restart}"
41 | exit 1
42 | esac
43 |
44 | exit $?
45 |
--------------------------------------------------------------------------------
/plutoweb/overlay/etc/init.d/S97autoreboot:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | # Read settings from NVRAM
4 | . /bin/readsettings.sh >/dev/null
5 |
6 | start() {
7 | if [ "$autoreboot" = "y" ]; then
8 | autoreboot=12
9 | fi
10 | if [ "$autoreboot" != "0" ] && [ "$autoreboot" != "n" ]; then
11 | echo "*** Auto-reboot enabled every $autoreboot hours ***" >>/etc/motd
12 | sleep "$autoreboot"h
13 | pluto_reboot reset
14 | else
15 | echo "Auto-reboot disabled" >>/etc/motd
16 | fi
17 | }
18 |
19 |
20 | stop() {
21 | echo "Nothing to stop..."
22 | }
23 |
24 | # See how we were called.
25 | case "$1" in
26 | start)
27 | start
28 | ;;
29 | stop)
30 | stop
31 | ;;
32 | *)
33 | echo "Usage: $0 {start|stop}"
34 | exit 1
35 | esac
36 |
37 | exit $?
38 |
--------------------------------------------------------------------------------
/plutoweb/overlay/etc/init.d/S97autoupdate:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | # Read settings from NVRAM
4 | . /bin/readsettings.sh >/dev/null
5 |
6 | start() {
7 | if [ "$updatesrunning" = "y" ]; then
8 | exit
9 | fi
10 | if [ "$autoupdate" = "y" ]; then
11 | updatesrunning=y
12 | sed -i 's/updatesrunning=n/updatesrunning=y/' /root/plutoweb.conf
13 | # Start downloading and updating
14 | wget -qT 15 -O /root/update3.tgz.md5sum --no-check-certificate https://raw.githubusercontent.com/unixpunk/PlutoWeb/master/plutoweb/update3.tgz.md5sum
15 | if [ ! -f /root/update3.tgz.md5sum ] || [ ! -s /root/update3.tgz.md5sum ]; then
16 | echo "*** Auto-updates enabled but unable to download md5sum ***" >>/etc/motd
17 | rm -f /root/update3.tgz*
18 | updatesrunning=n
19 | sed -i 's/updatesrunning=y/updatesrunning=n/' /root/plutoweb.conf
20 | /bin/updatewatch.sh &
21 | exit
22 | fi
23 | if diff -q /root/update3.tgz.md5sum /root/.update3.tgz.md5sum; then
24 | echo "*** Auto-updates enabled - already up to date ***" >>/etc/motd
25 | rm -f /root/update3.tgz*
26 | updatesrunning=n
27 | sed -i 's/updatesrunning=y/updatesrunning=n/' /root/plutoweb.conf
28 | /bin/updatewatch.sh &
29 | exit
30 | else
31 | wget -qT 15 -O /root/update3.tgz --no-check-certificate https://raw.githubusercontent.com/unixpunk/PlutoWeb/master/plutoweb/update3.tgz
32 | if [ ! -f /root/update3.tgz ] || [ ! -s /root/update3.tgz ]; then
33 | echo "*** Auto-updates enabled but unable to download update3.tgz ***" >>/etc/motd
34 | rm -f /root/update3.tgz*
35 | updatesrunning=n
36 | sed -i 's/updatesrunning=y/updatesrunning=n/' /root/plutoweb.conf
37 | /bin/updatewatch.sh &
38 | exit
39 | fi
40 | if [ "$(md5sum -b /root/update3.tgz | awk -F\\ '{ print $1 }')" = "$(cat /root/update3.tgz.md5sum | awk -F\\ '{ print $1 }')" ]; then
41 | cd / && gzip -dc /root/update3.tgz | tar -xvf - && echo "*** Auto-updates enabled and an update completed successfully ***" >>/etc/motd
42 | rm -f /root/update3.tgz* /root/plutoweb.conf
43 | updatesrunning=n
44 | /bin/updatewatch.sh &
45 | exit
46 | else
47 | echo "*** Auto-updates enabled but md5 mismatch on update3.tgz ***" >>/etc/motd
48 | rm -f /root/update3.tgz*
49 | updatesrunning=n
50 | sed -i 's/updatesrunning=y/updatesrunning=n/' /root/plutoweb.conf
51 | /bin/updatewatch.sh &
52 | exit
53 | fi
54 | fi
55 | else
56 | echo "Auto-updates disabled" >>/etc/motd
57 | fi
58 | # Starting update3.tgz watchdog in case someone manually drops in an update3.tgz file
59 | # into the USB mass storage or /root
60 | /bin/updatewatch.sh &
61 | exit
62 | }
63 |
64 |
65 | stop() {
66 | echo "Done. (Nothing to stop)"
67 | sed -i 's/updatesrunning=y/updatesrunning=n/' /root/plutoweb.conf
68 | }
69 |
70 | # See how we were called.
71 | case "$1" in
72 | start)
73 | start
74 | ;;
75 | stop)
76 | stop
77 | ;;
78 | restart)
79 | stop
80 | start
81 | ;;
82 | *)
83 | echo "Usage: $0 {start|stop|restart}"
84 | exit 1
85 | esac
86 |
87 | exit $?
88 |
--------------------------------------------------------------------------------
/plutoweb/overlay/etc/motd.new:
--------------------------------------------------------------------------------
1 |
2 | PlutoWeb v3.0
3 |
4 | http://pluto.local/
5 |
6 | Run settings.sh to see available options.
7 |
8 | Dual-core enabled
9 | 70-6000Mhz range enabled
10 |
11 |
--------------------------------------------------------------------------------
/plutoweb/overlay/etc/rtl_433/chungear_bcf-0019x2.conf:
--------------------------------------------------------------------------------
1 | # Chungear Industrial Co Ltd Fan/Light Remote Controller BCF-0019x2
2 | #
3 | # https://fccid.io/KUJCE9001/User-Manual/User-Manual-171498.pdf
4 | # repeats of 13 short (252 us) or long (484 us) pulses. Packet gap is 8188 us.
5 |
6 | decoder {
7 | name = Chungear_BCF-0019x2,
8 | modulation = OOK_PWM,
9 | short = 252,
10 | long = 484,
11 | gap = 500,
12 | reset = 8500,
13 | tolerance = 100,
14 | get = id:@9:{4},
15 | get = button:@1:{6}:[47:light_on-off 55:light_dimmer 62:fan_button_0 61:fan_button_1 59:fan_button_2 31:fan_button_3 63:no_button],
16 | }
17 |
18 | # The getters above decode the following bits:
19 | #
20 | # 11011111 10111 light on/off
21 | # 11101111 10111 light dimmer
22 | # 11111101 10111 fan button 0
23 | # 11111011 10111 fan button 1
24 | # 11110111 10111 fan button 2
25 | # 10111111 10111 fan button 3
26 | #
27 | # xxxxxxxx x0xxx dip sw 1
28 | # xxxxxxxx xx0xx dip sw 2
29 | # xxxxxxxx xxx0x dip sw 3
30 | # xxxxxxxx xxxx0 dip sw 4
31 |
--------------------------------------------------------------------------------
/plutoweb/overlay/etc/rtl_433/energy_count_3000.conf:
--------------------------------------------------------------------------------
1 | # EC3k Energy Count Control
2 | #
3 | # "Voltcraft Energy Count 3000" (868.3 MHz) sensor sold by Conrad
4 | # aka “Velleman NETBSEM4”
5 | # aka “La Crosse Technology Remote Cost Control Monitor – RS3620”.
6 | # aka "ELV Cost Control"
7 | #
8 | # Stub driver
9 | # FSK PCM NRZ 50 us bit width, up to 12 zeros seen, package should be around 578 bits.
10 | #
11 | # Copyright (C) 2015 Tommy Vestermark
12 |
13 | decoder {
14 | name=Energy-Count-3000,
15 | modulation=FSK_PCM,
16 | short=50,
17 | long=50,
18 | reset=800,
19 | bits>=550,
20 | bits<=590
21 | }
22 |
--------------------------------------------------------------------------------
/plutoweb/overlay/etc/rtl_433/silverline_doorbell.conf:
--------------------------------------------------------------------------------
1 | # Silverline doorbell
2 |
3 | # A typical x1527 OTP encoder device
4 | # sends 12 tristate "bits" encoded as 2 bits each and a sync pulse
5 |
6 | decoder {
7 | name = Silverline-Doorbell,
8 | modulation = OOK_PWM,
9 | short = 120,
10 | long = 404,
11 | gap = 468,
12 | reset = 4472,
13 | bits = 25,
14 | get = channel:@1:555,
15 | get = sound:@17:15,
16 | }
17 |
18 | # The flex spec supports selecting random bits with a getter mask. E.g.
19 | # in this x1527 tristate example every odd bit is `1` and you want to get
20 | # 6 bits "channel" from the first 12 bits (discarding every odd bit) use:
21 | # get=channel:@1:555
22 | # Effectively this is 11 bits (starting with 1 bit offset to discard the
23 | # first bit) because the mask is always aligned on the first set bit
24 | # (i.e. 555, aaa, 000555, ... are identical).
25 | #
26 | # Imagine the 25 bits of the transmission as:
27 | # 1?1?1?1?1?1?1?1?1?1?1?1?1
28 | # The mask `555` is:
29 | # 0000 0101 0101 0101
30 | # aligned to the first set bit
31 | # 10101010101
32 | # offset 1 bit (`@1`) it selects like this:
33 | # 1?1?1?1?1?1?1?1?1?1?1?1?1
34 | # 10101010101
35 | # ->
36 | # ? ? ? ? ? ?
37 | # resulting in that 6 bit value `??????`.
38 | #
39 | # The same way 3 bits "sound" is `get=sound:@17:15` (where `15` here is
40 | # hex for the 5-bit pattern `10101` -- or use `a8` if you want to left align
41 | # the pattern in the byte there).
42 |
--------------------------------------------------------------------------------
/plutoweb/overlay/etc/rtl_433/steffen_switch.conf:
--------------------------------------------------------------------------------
1 | # Steffen Switch Transmitter, HS1527 based remote button
2 |
3 | # should abort if (bb[0][0]!=0x00 || (bb[1][0]&0x07)!=0x07 || bb[1][0]!=bb[2][0] || bb[2][0]==bb[3][0])
4 |
5 | decoder {
6 | name = Steffen-Switch,
7 | modulation = OOK_PPM,
8 | short = 370,
9 | long = 750,
10 | gap = 1080,
11 | reset = 6000,
12 | bits = 25,
13 | get = @0:{5}:code,
14 | get = @20:{4}:button:[14:A 13:B 11:C 7:D 15:ALL],
15 | get = @16:{4}:state:[15:OFF 0:ON],
16 | }
17 |
--------------------------------------------------------------------------------
/plutoweb/overlay/etc/rtl_433/valeo_car_key.conf:
--------------------------------------------------------------------------------
1 | # Valeo Car Key
2 | # Identifies event, but does not attempt to decrypt rolling code...
3 | # Copyright (C) 2015 Tommy Vestermark
4 |
5 | # preamble is actually repeated e8e8e8... (with ZEROBIT removed: d1d1d1...)
6 |
7 | decoder {
8 | name=Valeo-Car-Key,
9 | modulation=OOK_MC_ZEROBIT,
10 | short=106,
11 | reset=400,
12 | bits=461,
13 | preamble=d1d1d0
14 | }
15 |
--------------------------------------------------------------------------------
/plutoweb/overlay/leantrx/cgi-bin/cgiutils.sh:
--------------------------------------------------------------------------------
1 | # This file is part of LeanTRX (c) .
2 | # See the toplevel README for more information.
3 |
4 | case "$(uname -m)" in
5 | armv7l) PATH=$PATH:../bin/armv7l:../bin/armv6l ;;
6 | armv6l) PATH=$PATH:../bin/armv6l ;;
7 | *) PATH=$PATH:../bin/$(uname -m) ;;
8 | esac
9 |
10 | RECORDINGS=../html/recordings
11 |
12 | parse_query_string() {
13 | local IFS="&"
14 | for nameval in $QUERY_STRING; do
15 | IFS="="
16 | # Whitelist safe characters here
17 | name=$(echo "$nameval" | sed -e 's/^\([a-zA-Z0-9_]*\)=.*$/\1/;t;d')
18 | val=$(echo "$nameval" | sed -e 's/^.*=\([a-zA-Z0-9():,._/-]*\)$/\1/;t;d')
19 | eval param_$name="\"$val\""
20 | done
21 | }
22 |
23 | killprocs() {
24 | killall -9 leaniiorx leaniiotx leansdrserv leandvb leanmlmrx cat 2> /dev/null
25 | }
26 |
27 | flagparam() {
28 | if [ "$1" = "on" ]; then echo $2; fi
29 | }
30 |
--------------------------------------------------------------------------------
/plutoweb/overlay/leantrx/cgi-bin/dvbrx.cgi:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | # This file is part of LeanTRX (c) .
4 | # See the toplevel README for more information.
5 |
6 | . ./cgiutils.sh
7 |
8 | cat <&1
14 |
15 | param_standard=DVB-S
16 | param_symbrate=2000e3
17 | param_cstln=QPSK
18 | param_cr=1/2
19 |
20 | param_source=leaniiorx
21 | param_devindex=0
22 | param_freq=2449e6
23 | param_samprate=4e6
24 | param_bufsize=$((1024*1024))
25 | param_nbufs=32
26 |
27 | param_tune=0
28 | param_sampler=nearest
29 | param_rrc_rej=10
30 | param_viterbi=off
31 | param_fastlock=off
32 | param_drift=off
33 | param_satmodem=off
34 |
35 | param_udp=0
36 | param_udpaddr=0
37 | param_udpport=0
38 | param_rtp=0
39 | param_rtpaddr=0
40 | param_rtpport=0
41 | param_httpd=0
42 | param_httpdport=81
43 | param_file_output=0
44 |
45 | parse_query_string
46 |
47 | killprocs
48 |
49 | if [ "$param_file_output" = on ]; then
50 | FILE_OUTPUT="| tee $RECORDINGS/$(date +%Y%m%d-%H%M%S%z).ts"
51 | fi
52 |
53 | command="leaniiorx --bufsize $param_bufsize --nbufs $param_nbufs -f $param_freq -s $param_samprate --bw $param_symbrate -v \
54 | | leansdrserv --info3-httpd 8003 \
55 | leandvb --s16 -f $param_samprate --tune $param_tune --sr $param_symbrate --sampler $param_sampler --rrc-rej $param_rrc_rej --const $param_cstln --standard $param_standard --cr $param_cr $(flagparam $param_viterbi --viterbi) $(flagparam $param_fastlock --fastlock) -v --json --anf 0 --fd-info 3 --fd-const 3 --fd-spectrum 3 $FILE_OUTPUT > /dev/null"
56 |
57 | echo $command
58 | eval $command
59 |
--------------------------------------------------------------------------------
/plutoweb/overlay/leantrx/cgi-bin/dvbtx.cgi:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | # This file is part of LeanTRX (c) .
4 | # See the toplevel README for more information.
5 |
6 | . ./cgiutils.sh
7 |
8 | cat <&1
14 |
15 | param_standard=DVB-S
16 | param_cr=1/2
17 | param_cstln=QPSK
18 | param_symbrate=2000e3
19 | param_interp=30
20 | param_rrc_rej=0
21 |
22 | param_dest=leaniiotx
23 | param_devindex=0
24 | param_freq=2449e6
25 | param_bufsize=$((1024*1024))
26 | param_nbufs=32
27 |
28 |
29 | parse_query_string
30 |
31 | killprocs
32 |
33 | samprate=$(dc $param_symbrate $param_interp mul p)
34 |
35 | command="leantsgen | leandvbtx --cr $param_cr --const $param_cstln -f $param_interp --s16 --power 0 --rrc-rej $param_rrc_rej -v | leaniiotx --bufsize $param_bufsize --nbufs $param_nbufs -f $param_freq -s $samprate --bw $param_symbrate -v"
36 |
37 | echo $command
38 | eval $command
39 |
--------------------------------------------------------------------------------
/plutoweb/overlay/leantrx/cgi-bin/getstream.cgi:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | # This file is part of LeanTRX (c) .
4 | # See the toplevel README for more information.
5 |
6 | # Usage: getstream.cgi?bytes=FIRST-LAST
7 |
8 | FILE=/tmp/stream
9 |
10 | available=$(ls -l $FILE 2> /dev/null | awk '{print $5}')
11 |
12 | if [ "$QUERY_STRING" = "action=sync" ]; then
13 | [ -n "$available" ] || available=0
14 | cat <&2
42 | sleep 0.2
43 | available=$(ls -l $FILE 2> /dev/null | awk '{print $5}')
44 | if [ -n "$available" -a $((first-1)) -gt "$available" ]; then
45 | echo "Stream file has shrunk. Resyncing." 1>&2
46 | force_resync
47 | fi
48 | retries=$((retries-1))
49 | if [ $retries = 0 ]; then
50 | echo "Stream file is stalled. Resyncing." 1>&2
51 | force_resync
52 | fi
53 | done
54 |
55 | cat < /dev/null
68 |
--------------------------------------------------------------------------------
/plutoweb/overlay/leantrx/cgi-bin/mlmrx.cgi:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | # This file is part of LeanTRX (c) .
4 | # See the toplevel README for more information.
5 |
6 | . ./cgiutils.sh
7 |
8 | cat <&1
14 |
15 | param_Fc=98e6
16 | param_Fs=25.6e6
17 | param_bw=20e6
18 | param_bufsize=$((1024*1024*4))
19 | param_nbufs=4
20 | param_fftsize=64
21 | param_maxdev=75e3
22 | param_Fa=44100
23 | param_squelch=0
24 | param_channels=
25 | param_uirate=1
26 |
27 | parse_query_string
28 |
29 | echo "channels=$param_channels"
30 |
31 | FREQS=$(echo $param_channels | tr ',' ' ')
32 |
33 | killprocs
34 | rm -f /tmp/stream
35 |
36 | cmd1="nice -n -5 leaniiorx -v -f $param_Fc -s $param_Fs --bw $param_bw \
37 | --bufsize $param_bufsize --nbufs $param_nbufs"
38 | cmd2="nice -n -5 leansdrserv --info3-httpd 8003 --control4-httpd 8004 -v \
39 | leanmlmrx --fc $param_Fc --fs $param_Fs \
40 | -N $param_fftsize --maxdev $param_maxdev \
41 | --fa $param_Fa --squelch $param_squelch \
42 | --fd-info 3 --info-rate $param_uirate --fd-control 4 \
43 | $FREQS"
44 |
45 | echo "$cmd1 | $cmd2 2>&1 > /tmp/stream" 1>&2
46 |
47 | $cmd1 | $cmd2 2>&1 > /tmp/stream
48 |
--------------------------------------------------------------------------------
/plutoweb/overlay/leantrx/cgi-bin/recordings.cgi:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | # This file is part of LeanTRX (c) .
4 | # See the toplevel README for more information.
5 |
6 | . ./cgiutils.sh
7 |
8 | cd $RECORDINGS || exit 1
9 |
10 | cat <
14 | Current time: $(date +%Y%m%d-%H%M%S%z)
15 |
16 | EOF
17 |
18 |
19 | for f in *; do
20 | cat <$(ls -eh $f)
22 | EOF
23 | done
24 |
25 | cat <