Commit Graph

736 Commits

Author SHA1 Message Date
dman776 3abc82f529
feature: add pitch control to signal tone (#347) 2019-01-31 16:57:30 -06:00
dman776 ddda727da0
bugfix: correct issue when pushing sound "on" more than once (#345) 2019-01-29 18:53:22 -06:00
dman776 89c9d37075
bugfix: new settings will now show after a conditional setting (#343) 2019-01-29 12:20:37 -06:00
dman776 d9acfa2ea7
feature: add sounds to realtime signal page (#342) 2019-01-28 23:39:51 -06:00
Joe Ayers 07aa305e29 aredn: olsrd: add olsrd watchdog
Adding native olsrd watchdog on top of procd
ensures mesh nodes are always accessable.

closes #338
2019-01-27 14:12:37 -08:00
Joe Ayers 90b21d88d2 aredn: add definition for hAP ac lite current revision
/proc/cpuinfo machine string to identify the device
has changed.
From - MikroTik RouterBOARD 952Ui-5ac2nD
To   - MIkroTik RouterBOARD RB952Ui-5ac2nD
2019-01-27 12:19:11 -08:00
Joe Ayers ef24633204 bugfix: aredn: fix bogus nano-m-xw image upload warning
fixes #330
2019-01-23 23:17:02 -08:00
dman776 b5ceb1ccc2
bugfix: set execute bit on api script (#329) 2019-01-22 17:14:35 -06:00
Raymond Suelzer 664f2ee629 Some LUA Code Clean Up, API (#327)
* Refactor API

* work in progress

* lua clean up
2019-01-21 15:41:31 -06:00
Joe Ayers 13a6afb815 aredn: Add definitions for Rocket M2 XW 2019-01-10 17:10:46 -08:00
Joe Ayers 22fe3bdc66 bugfix: olsrd: clean up startup warnings 2018-12-31 15:18:58 -08:00
Joe Ayers 6728fba06b bugfix: aredn sysinfo.json fails with mesh rf off
added json meshrf->status->on/off
fixes:  #317
2018-12-22 10:14:58 -08:00
Joe Ayers 0fed66dbf5 bugfix: bogus warning when selecting firmware file to sysupgrade
fixes: #290
2018-12-19 20:30:23 -08:00
Joe Ayers 8778b07bc6 bugfix: helpfile spelling correction
fixes: #311
2018-12-18 20:41:49 -08:00
Joe Ayers 588b59cf65 aredn: Add definitions for Mikrotik RB-911G-5HPnD 2018-12-18 20:40:58 -08:00
Joe Ayers 1c6d2286cc aredn: hap ac lite add 2G/5G lan ap options
Add option for hap ac lite to select which band to
use for LAN AP option, 2GHz or 5GHz.  Also, ensure
all wireless cards are defined when disabled to
prevent default wireless config options.
2018-12-17 20:13:37 -08:00
Joe Ayers d188fcf980 bugfix: firstboot button does not function 2018-12-12 19:08:46 -08:00
dman776 97938b4697
bugfix: remove SNR from signal archive page (#309)
fixes #242
2018-12-12 18:11:40 -06:00
Joe AE6XE 513406754f aredn: clarify distance setting in help (#299)
closes #279
2018-12-12 15:17:04 -06:00
Joe AE6XE f777e914f9 aredn: Mesh RF enable/disable (#307)
add feature to turn off Mesh RF if not in use.  When off,
section to re-purpose wireless card to LAN bridged Access
Point becomes visable.
Closes #155
2018-12-12 15:16:07 -06:00
dman776 ce5a757ca0
bugfix: advanced config usb passthru errors when uci section is not available (#308) 2018-12-12 08:31:57 -06:00
apcameron b9bf9ba099 ar71xx: Add Support for the TP-LINK CPE220 V2.0 Device (#306)
Installation:
     Flash factory image through stock firmware WEB UI
     or through TFTP
     To get to TFTP recovery just hold reset button while powering on for
     around 4-5 seconds and release.
     Rename factory image to recovery.bin
     Stock TFTP server IP:192.168.0.100
     Stock device TFTP adress:192.168.0.254
2018-12-11 17:09:11 -06:00
Joe AE6XE 8f71b15d4a bugfix: Advanced config settings not persistant though reboot (#305)
fixes #303
2018-12-11 06:47:36 -06:00
apcameron 230eddf8bb ar71xx: Add Support for the TP-LINK CPE510 V3.0 Device
Installation:
 Flash factory image through stock firmware WEB UI
 or through TFTP
 To get to TFTP recovery just hold reset button while powering on for
 around 4-5 seconds and release.
 Rename factory image to recovery.bin
 Stock TFTP server IP:192.168.0.100
 Stock device TFTP adress:192.168.0.254
2018-12-10 14:38:00 -08:00
Joe Ayers 7486a179c7 aredn: add support for Mikrotik LDF-5nD 2018-12-07 21:36:03 -08:00
apcameron 9d60516176 ar71xx: Add Support for the TP-LINK CPE220 V3.0 Device
Installation:
     Flash factory image through stock firmware WEB UI
     or through TFTP
     To get to TFTP recovery just hold reset button while powering on for
     around 4-5 seconds and release.
     Rename factory image to recovery.bin
     Stock TFTP server IP:192.168.0.100
     Stock device TFTP adress:192.168.0.254
2018-12-05 19:38:46 -08:00
apcameron 6982757c79 ar71xx: Add Support for the TP-LINK CPE610 V1.0 Device
Installation:
 Flash factory image through stock firmware WEB UI
 or through TFTP
 To get to TFTP recovery just hold reset button while powering on for
 around 4-5 seconds and release.
 Rename factory image to recovery.bin
 Stock TFTP server IP:192.168.0.100
 Stock device TFTP adress:192.168.0.254
2018-12-03 19:25:48 -08:00
Joe AE6XE 123949de9e
aredn: Standardize Ethernet Port vlans for UBNT XM devices (#297)
The secondary port on Ubnt XM devices was non-functional.
Enabled bridge type in network config to utilize both ports.
2018-12-02 17:52:48 -08:00
dman776 dab3f60c9a
bugfix: correct uhttpd page security on sysupgrade (#296) 2018-12-02 17:28:35 -06:00
Joe AE6XE 303c50904c
aredn: harden hAP ac lite 5Ghz Lan Access Point (#293)
enable passwords with virtually any character,  enable SSIDs
with virtually any character.  ensure ap is always
encrypted to give operator control of client access and
license compliance.  Remove (week) WEP encryption option.
2018-11-30 08:32:38 -08:00
dman776 86ec92ac46
bugfix: usb passthrough not initializing after reboot properly (#292) 2018-11-29 22:15:16 -06:00
dman776 7792186dda
feature: provide more info on upload disable with tunnels (#289) 2018-11-28 22:37:11 -06:00
Joe AE6XE a62fe95b26
aredn: hAP ac lite enable 5GHz LAN Access Point (#287)
* aredn: hAP ac lite enable 5GHz LAN Access Point

enable ability to bridge LAN physical ports with wireless
LAN Access Point capability. On dual band hAP ac lite,
used in parallel with mesh RF on 2GHz.  Enables future
features on single band devices to turn off mesh RF and
repurposed for mesh LAN Access Point.

closes: #215
2018-11-27 21:37:59 -08:00
Joe Ayers cae6886dca aredn: stop cron prior to starting sysupgrade 2018-11-27 20:38:26 -08:00
Joe Ayers 264c32a61d bugfix: POE passthough fails on NS XM devices
the Nanostation XM devices require setting the gpio
port direction unlike some other devices
2018-11-27 18:26:02 -08:00
dman776 a59fe2524a
bugfix: usb_passthrough script missing execute bit (+x) (#283) 2018-11-26 13:53:10 -06:00
Joe Ayers 557e4b3903 Revert "feature: reduce bandwidth by compressing resource files (#278)"
This reverts commit 2d5beb232f.
Will submit later after resolving issues with precompression.
2018-11-23 18:41:18 -08:00
dman776 2d5beb232f
feature: reduce bandwidth by compressing resource files (#278) 2018-11-22 23:59:39 -06:00
Joe AE6XE 355e34080f aredn: Add definitions for Mikrotik LHG-5HPnD-XL 2018-11-17 10:40:33 -08:00
dman776 854afdb32d
bugfix: correct initial values for poe and usb passthrough (#271)
* bugfix: correct initial values for poe and usb passthrough

* correct a few shellcheck errors
2018-11-16 22:41:58 -06:00
Eric a997ef9545 bugfix: Found another place where uhttpd was tossing a uci error. Fixed
Also removed the description block from the mesh page if the description has not been set.
(there was a small grey area before, even with no description set)
2018-11-14 19:37:02 -08:00
dman776 311f4eff3d
bugfix: suppress uhttp uci error on mesh page with no description (#267) 2018-11-14 16:16:51 -06:00
Joe AE6XE a2f32e041b bugfix: litebeam M5 is single chain device (#265) 2018-11-10 21:51:21 -06:00
Joe AE6XE c8e13ae797 aredn: Add definitions for Mikrotik LHG5 2018-11-10 13:53:45 -08:00
dman776 a88803fe5a
bugfix: correct "Bad Gateway" error on Advanced Config page (#263) 2018-11-08 14:08:51 -06:00
Joe AE6XE 17c08a8ffa aredn: Add LiteBeam M5 definition (#261)
fixes #257
2018-11-07 20:27:57 -06:00
dman776 861de150ea
feature: add USB passthrough support to advancedconfig page (#255)
* feature: add POE passthrough support to advancedconfig page

* correct shellcheck warnings
2018-11-06 16:00:26 -06:00
apcameron 700f020e25 ar71xx: add TP-LINK CPE210 V3.0 and CPE510 V2.0 profiles
Adds a separate profile and binary for both devices.
fixes #221
2018-11-05 22:28:03 -08:00
dman776 9a47ff800a
bugfix: correct poe functions in adv cfg (#250)
* bugfix: correct poe functions in adv cfg

cleanup shellcheck errors

* avoid unnecessary shell
2018-10-27 11:37:45 -05:00
Eric e8b3520ec7 bugfix: Check to prevent duplicate mesh hostnames when reserving DHCP reservations (#226)
* bugfix: Check for existing hostnames on the network in DHCP reservations

fixes #216
*additional check for existing hostname when creating new DHCP lease.
checks hosts_olsr file if entered hostname already exists or not on the connected network(s).
outputs info saying such and gives advice to prefix hostname with callsign.

* change to use =~ /\s$host\S/i

* Reworded warning message

* moved the position of the hostname check to only when you click "add" on the DHCP leases page.

this stops it checking all the previously entered hostnames.
2018-10-26 21:53:14 -07:00
dman776 1948ba11e7 bugfix: fix reboot button (#249) 2018-10-26 19:50:35 -07:00
dman776 8716fd42be Add PoE passthrough option to advanced config (#243)
* minor changes

* handle null value (change to 0)

* add poe_passthrough script

* change key location

* change key name

* add default info into aredn uci file

* add conditional functions
2018-10-26 19:34:16 -07:00
dman776 d74eb1933a
aredn: adjust mesh status layout for OLSR stats (#248)
fixes #197
html is courtesy of N2MH
2018-10-26 14:25:45 -05:00
dman776 750cba55a7
modify the adv config layout (#247) 2018-10-26 00:27:15 -05:00
Joe AE6XE 4a50ee2382 aredn: add definition for Bullet M2 XW (#246)
New Bullet M2 XW models are released by ubnt.

closes #233
2018-10-25 23:44:45 -05:00
dman776 a1ab5312ef
bugfix: allow upload of ssh keys while tunnels since keys (#245) 2018-10-25 23:43:20 -05:00
dman776 9391ff5555
Add "Advanced config" page (#237)
* initial commit

* feature: advanced configuration page

fixes #230

* add help page updates

* added menu links to perlfunc.pm

* add default value for serverpath

* move "Reset to Firstboot" button from setup page to advancedconfig page

* secure page
minor ui changes

* center the help icon

* implement callback capabilities pre/post

* hardening uci calls to prevent command injection attacks

* moved settings to custom aredn uci file

* resolve shellcheck warnings
2018-10-25 21:06:05 -05:00
dman776 a4ac376065
bugfix: correct improper "wrong firmware" message on Rocket (et al) devices (#240) 2018-10-24 19:57:21 -05:00
dman776 4c79a5c755
remove aimer script (#236) 2018-10-23 10:16:47 -05:00
W. Kyle Hamilton a038ce84b6 Typos (#234)
* typo

* typo in code commits

* Capitalization
2018-10-22 17:04:11 -05:00
dman776 ea36aa9d06
feature: add a "firstboot" button on setup page (#225)
* feature: add a "firstboot" button on setup page

fixes #162

* changed confirmation message
2018-10-18 11:06:55 -05:00
dman776 b11a4fc95d
bugfix: check to see if internet is reachable before loading external resources (#224) 2018-10-15 21:58:52 -05:00
dman776 7a1817935c
feature: Provide firmware file advice for uploading firmware files (#217)
* feature: Provide firmware file advice for uploading firmware files

also reduces page size by removing unnecessary style info on option tags.

fixes #206

* update for Mikrotik filename exceptions

* correct download .list file name

* add support for cpe devices
2018-10-10 15:52:27 -05:00
W. Kyle Hamilton 6f9a8327cb bugfix: Fixed README and comment typos (#220)
* typos

* Update README.md

* Update aimer
2018-10-08 07:44:13 -07:00
Joe AE6XE c622140ef9 aredn: Prepare 3.18.9.0RC1 for release 2018-09-21 19:50:57 -07:00
Joe AE6XE b432be987f bugfix: aredn: correct test script warnings and errors 2018-09-17 21:42:52 -07:00
dman776 89682289c1
modify sysinfo.json structure for node,lat,lon values (#193) 2018-09-17 13:41:29 -05:00
dman776 1c4e6f1ecc
remove ipv6 address labels (ie. none) (#189) 2018-09-13 20:02:07 -05:00
Joe AE6XE 3938f33afe aredn: harden cron maintenance scripts
ensure maintenance scripts execute one at
a time and never in duplication
2018-09-13 16:20:18 -07:00
Joe AE6XE c5e9342e29 aredn: add zombie.log to supporttool list 2018-09-13 16:19:10 -07:00
dman776 c2894f8df9
rework sysinfo.json to improve structure (#185)
* rework sysinfo.json to improve structure
re-organize "info" functions into their own lib

* change egrep to grep -E to eliminate shellcheck warning
2018-09-10 13:37:50 -05:00
Joe AE6XE cb35580fd2 bugfix: show freq on status page instead of channel number for 3GHz
3GHz has no common assignment of channel numbers, given no part 15
coverage in the US.  AREDN devices show freq in place of a channel
number for 3GHz.
2018-09-10 08:18:32 -07:00
Joe AE6XE 9ce76e1e7e aredn: preserve custom firewall rules across sysupgrade
groups with custom rules created in /etc/local/mesh-firewall
for echolink, ampr.net, and other integrations with internet
based appications can preserve rules across a firmware
upgrade by locating the custom rules in this directory
using a file named 59-custom-rules
2018-09-06 19:45:42 -07:00
Joe AE6XE 12611d3959 aredn: add notation in Mesh Status to identify tunnel info 2018-09-06 18:19:25 -07:00
Joe AE6XE ab130956ba bugfix: aredn signal chart correct SNR to dB units 2018-09-05 20:28:57 -07:00
Joe AE6XE b5ad5cad23 bugfix: aredn TxMbps does not show on Mikrotik hAP lite in mesh status 2018-09-05 20:14:03 -07:00
Eric d9ce31798c aredn: Changeed placement of OLSR info on the mesh status page. (#177)
Moved to be under the Previous Neighbors area.
It's actually under the previous neighbors listing
Fixes #171
2018-09-05 21:15:29 -05:00
dman776 8db653302a
bugfix: sysinfo.json not returning chanbw on hapACLite (#174) 2018-09-05 09:46:01 -05:00
Joe AE6XE 0bd057ed40 aredn: phase 1 support for Mikrotik rb952Ui-5ac2nD
Add support for the hAP lite model rb952UI-5ac2nD equivilent to
the UBNT AirRouter.  The 5Ghz interface will be configured in a
2nd phase.  This hAP lite model has double the RAM and Flash
of the AR.  the 2Ghz is MIMO (5Ghz is single antenna).
2018-09-03 23:26:56 -07:00
Eric ef6d092b2e aredn: node description, lat/lon display, olsr entries (#163)
* aredn: node description on mesh page, lat/lon on both status and mesh, olsr entries

Added node description to mesh status page
Fixes #161

Added Lat/Lon (if available) to status and mesh pages.
It is diplayed above the description and under the node name.
Fixes #145

Added OLSR Routing tables entries to status page just under the memory area
Also added this same info just above the buttons on the mesh status page
Fixes #160

* aredn: OLSR routing table entries

Small addition to the displayed info

* aredn: corrections

move lat lon if statement farther up
changed system command lines to have () around them...

* aredn: added comments for new lines

* aredn: more corrections

back to using backticks on system commands per short discussion with ae6xe

* aredn: updated some lines so they will not toss warnings in the syntax tests
2018-08-31 20:39:07 -05:00
Eric 4997cb47d2 aredn: Node description enhancement (#156)
* aredn: Node Description Enhancements

Node Description entry on setup page is now multiline.
Fixes #91

Node Description display on status page is now a table cell,
allowing for background color addition and word-wrapping.
Fixes #90

Description background color added to CSS files with colors appropriate to each theme.
Other CSS additions for the description input field on the setup page.

Updated onboard help file about the node description field (and fixed a typo)

* move some of the character filtering "higher up the chain" in perl.

javascript still will replace any new lines with a space in case the user hit's enter in the description entry box.
tested with curl and I can't find any problems yet.

* removed some commented lines that were not needed

* actually fix the typo I saw in help.html file.
2018-08-26 13:03:26 -05:00
Trevor Paskett 2678e9ad4a show the SNR above the real time chart (#143)
* show the SNR above the real time chart

* uncomment chart line that was commented by mistake

* fixes for 3.17
2018-08-23 10:55:50 -05:00
txcoder 8d3b63a3f3 Add testing support for the PowerBridge M5 2018-08-22 13:05:16 -07:00
Joe AE6XE 5abeb8f7ac bugfix: aredn slugbug mitigation
with low memory conditions, typically on 32Mb RAM, the
device would become unresponsive in hours to days. The
symptoms only occured when no RF links. iw processes
would hang in Zombie state.  Updates to use iwinfo where
possible and avoid using both iw and iwinfo.  crontab
script is implemented to detect Zombie processes and free
up resources in the reduced chance the symptoms are still
occuring.
2018-08-22 07:23:53 -07:00
Trevor Paskett af0e26dd84 config change to make uhttpd listen on port 80 and 8080 (#142)
* config change to make uhttpd listen on port 80 and 8080

* add port 80 to tunnel firewall rules

* add port 80 to tunnel firewall rules in config, update help

* firewall rules for wan + dtdlink
2018-08-20 14:09:47 -05:00
dman776 685ef824df
update about.html page content (#121) 2018-08-08 14:27:03 -05:00
Eric 48c3edf729 aredn: Remove square brackets from description on status page (#108)
The square brackets look kind of silly, and if the description goes multi line they will look even worse.
2018-08-04 13:46:11 -05:00
Eric 683c7b7149 aredn: remove duplicate file and minify
I found a duplicated file in www, only 16k, but every bit matters now.
Removed the duplicate and the replaced the file with a  minified version.
Updated www/cgi-bin/scan to use new minified file.
Tested. works fine.
2018-08-04 06:42:43 -08:00
dman776 560070d2d1
bugfix: node description not saving properly (#101) 2018-08-02 15:58:01 -05:00
Eric 22e4557821 A simple fix for the apostropocalypse (#98)
changed some single quotes to escaped double quotes in setup
2018-07-30 23:37:32 -05:00
apcameron 014217aa6b ar71xx: Add Support for the TP-LINK CPE210 V3.0 Device
This Device is almost the same as the CPE210 V2.0
Once Support for the TP-LINK CPE210 V3.0 gets added to the OpenWrt code we
will need to drop the patch 001-add_support_for_TP-Link_CPE210_v3.patch
2018-07-21 14:33:26 -08:00
Jason 30069e5ade Format code 2018-07-20 20:34:44 -08:00
dman776 5c5ed5a8bc
Add Node description to status (and setup) pages (#79)
Closes #32 
* feature: add node description to status page
* feature: add node description to status page
* scrub for html like tags and correct node description label
* cleanup extra whitespace, comments, and debug stmt
2018-07-19 13:28:18 -05:00
Eric 282f4a170b Added the Nodes locally hosted service listing to sysinfo.json (#78)
* Added the Nodes locally hosted service listing to sysinfo.json

Added the Nodes locally hosted service listing to sysinfo.json file.

* Forgot to change api_version

* Change info[] section to be services_local to keep in line with the function is called

was info[local_services] now info[services_local]
2018-07-18 16:48:31 -05:00
dman776 f05c204a96
feature: nodename field on setup page is too small (#77)
Fixes #76
2018-07-17 14:13:30 -05:00
Jason accca49945 Support 29 host direct mode (fixes #49) 2018-07-17 08:53:11 -05:00
dman776 da089acb68
bugfix: use new nslookup format (fixes #48) (#74) 2018-07-16 20:54:38 -05:00
Joe AE6XE 287a995089 bugfix: update wscan to nslookup parsing in opewrt 18.06 2018-07-15 16:06:30 -07:00
Joe AE6XE d8262e37e7 bugfix: Ensure ip2hostname returns shortname
Needed to minimize size of OLSR advertisements and
ensure correctness of links in mesh status page

fixes #66
2018-07-15 09:28:03 -07:00
Joe AE6XE eae3e42ddd bugfix: nslookup output parsing changes with openwrt 18.06
fixes #66
2018-07-14 23:09:48 -07:00