Commit Graph

32 Commits

Author SHA1 Message Date
Tim Wilkinson d8b85d5b4a
Fix library requires (#1147)
* Another attempt to stop the mesh page from being truncated sometimes

* Fix originator

* Fix the require(...) libraries
2024-04-01 22:15:45 -07:00
Brett T. Warden a2e9e3054c
Remove vestigial getServicesBy* methods (#952)
* Remove vestigial getServicesBy* methods

getServicesByNode is only a dummy method.
getServicesByService doesn't even exist.

Remove the last remaining references to them from cgi-bin/api, and remove the last traces of getServicesByNode from aredn/olsr.lua

Fixes #948
Fixes #949

* Bump API version

Breaking change, removing parameters services=bynode,byservice
2023-09-29 20:09:16 -07:00
Tim Wilkinson bc0bd27bdd
RC: Day 1 fixes (#885)
* Dont compress the admin page so we handle upload timeouts more clearly

* Fix aredn.info.getFreq() so it always takes a radio and not an interface
2023-06-28 23:47:25 -07:00
Tim Wilkinson 0890ab210f
Fix API nil pointer when mac lookup fails (#855) 2023-05-29 21:12:37 -07:00
Tim Wilkinson 93ad1f5ee7
Strip out as many dependncies from Lua Manager as possible to save memory (#522) 2022-10-13 12:07:36 -05:00
Tim Wilkinson 6ba17b8e5a
Snapshot hostnames after updates so we have a consistent copy to display (#488) 2022-09-06 09:58:18 -05:00
Tim Wilkinson cf8abafd65
iPerf3 as part of the api (#443) 2022-07-20 14:42:05 -05:00
Tim Wilkinson d166393bb8
Ping tool (to complement the iperf3 tool) (#440)
* Ping tool (to complement the iperf3 tool)

* Make ping-tool part of the api (like traceroute)

* Bump api version
2022-07-19 20:27:44 -05:00
Tim Wilkinson c3f2fcd400
Optimize getRemoteNodes (#326) 2022-04-05 19:30:36 -05:00
battlehax 2c331fdd6f
Add files via upload (#174)
prevent unauthenticated remote code execution as root in the 'traceroute' function
2021-11-11 11:32:30 -06:00
dman776 f0c62fc2a7
enhancement: migrate location info to uci (#168)
* add uci migration script

* removed debug lines

* added newline to end

* include gridsquare values

* migrate lat/lon/gridsquare to uci format

* remove from sysupgrade kept files list
2021-11-09 17:03:20 -06:00
dman776 c179ce40b7
Api add tactical name (#139) 2021-09-09 08:32:24 -05:00
Steve AB7PA 7908c3e2d4
api: fix remote nodes list (#138) 2021-09-09 08:31:20 -05:00
Steve AB7PA a3e33a2f9b
api: show version in info table (#135)
Include the api_version in the info table so it can be displayed in 
System card on newui.
2021-07-18 21:21:12 -05:00
Steve AB7PA db61c1181d
api: sort remote nodes (#134)
* api: sort remote nodes

one-liner to sort remoteNodes by ETX value for newui.

* api: sort remote nodes

ensure sort by floating point numbers
2021-07-18 21:20:48 -05:00
Eric 87ea92da2a
aredn: update the API version numbers (#132) 2021-07-13 21:29:32 -05:00
Eric 7fa6b57e1c
aredn: added network topology to mesh info API "page" (#125) 2021-07-10 12:38:11 -05:00
Steve AB7PA e93987fe06
api: add RF IP for non-RF links (#124)
* api: add RF IP for non-RF links

Add the RF IP address for non-RF linked devices. This allows the 
services to be displayed for non-RF Current Neighbors.

* remove case manipulation
2021-06-17 14:48:19 -05:00
dman776 d595b9cf3d
add traceroute and remotenodes to api (#114) 2021-06-06 07:33:43 -05:00
dman776 79aa11db40
Api use libiwinfo frequency (#112) 2021-05-26 09:57:47 -05:00
dman776 209f9dc3f9
bugfix: fix api when meshrf is disabled (#99) 2021-05-05 12:53:19 -05:00
dman776 8117fcc74f
Lua info gateway (#95)
* api updates: alerts, targettype, api_version

* added filesystem and memory totals

* bugfix: correct error in api ip when there is no gateway
2021-04-23 10:10:40 -05:00
Steve AB7PA d5c9e33e68
bug: Fix spike to zero in SNR Chart (#90)
Fix spike to zero in SNR Chart.
2021-04-06 21:18:00 -05:00
dman776 b0bc20b392
api: add first_boot field to indicate if this node has been configured or not (#416) 2019-05-11 12:08:37 -05:00
Eric 71325a91d2 bugfix: fix call to getFrequency() to getFreq() in api (#408)
getFrequency() becomes getFreq()
2019-05-01 21:07:30 -05:00
Ryan McLean 9393525076 Fixed the consistency between "archive" and "realtime" SNR data (#403)
* cleaned up the endpoint for snr data

* updated property names on the signal page
2019-04-16 21:08:45 -05:00
Ryan McLean e0ea513c5e feature: added localhosts info to api (#390)
* mesh endpoint can return localhosts

* mesh endpoint can return localhosts

* added localhosts info to api
2019-03-27 22:21:23 -05:00
dman776 1c81085986
feature: add OLSR current neighbor info to API (#389)
* feature: add OLSR current neighbor info to API

* bugfix: correct quote issue
2019-03-26 01:04:33 -05:00
Ryan McLean 2ed5d37258 feature: added chart endpoint to the /api (#386)
* wscan can output results as json

* added a page for displaying scan results as json

* updated file permissions with +x

* added endpoint for wifi scan

* Revert "updated file permissions with +x"

This reverts commit 6f0a038334fbacc3f585f0a86fb7d9986a47b7d2.

* Revert "added a page for displaying scan results as json"

This reverts commit 4806ad01b6b717e2e02f248309a0257bb390af23.

* Revert "wscan can output results as json"

This reverts commit 75454e7e790a0457a0846182b0a8a44205772368.

* removed hardcoded device name

* exposed freqlist through the api

* moved signal.json code into the api

* old signal page uses /api?page=chart

* removed signal.json

* chart has targets for realtime and archive

* updated old signal page to use new api
2019-03-25 18:34:51 -05:00
Ryan McLean 58d4d21729 feature: added a wifi scan endpoint to the /api (#379)
* wscan can output results as json

* added a page for displaying scan results as json

* updated file permissions with +x

* added endpoint for wifi scan

* Revert "updated file permissions with +x"

This reverts commit 6f0a038334fbacc3f585f0a86fb7d9986a47b7d2.

* Revert "added a page for displaying scan results as json"

This reverts commit 4806ad01b6b717e2e02f248309a0257bb390af23.

* Revert "wscan can output results as json"

This reverts commit 75454e7e790a0457a0846182b0a8a44205772368.

* removed hardcoded device name

* exposed freqlist through the api
2019-03-25 16:56:38 -05: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