[MVMA] Working with JSON

Chuck Gelm nc8q-mesh at gelm.net
Mon Sep 23 20:54:13 EDT 2019


Reference: localnode:8080/cgi-bin/sysinfo.json

I was wondering how many 'services' are advertised on our mesh.
I used PHP to get a copy of sysinfo.json
and extracted the advertised services.
It took awhile to figure out how to sort an array.
The data in the JSON file is unordered:
  http://nc8q-mesh-server.local.mesh/mesh/show-services.php

This report is:
  http://nc8q-mesh-server.local.mesh/mesh/0sort.php

count 	Service link 	Service name
1 	http://AB8XA-NSM2-WNW:8080/iperfspeed 	IperfSpeed
2 	http://AB8XA-NSM2-WNW:8080/node-info 	Ch -2/10 Beavercreek
3 	http://AB8XA-NSM9-WNW:8080/iperfspeed 	IperfSpeed
4 	http://AE8I-3-TippCity:8080/ae8i3node.html 	About This Node
5 	http://AE8I-3-TippCity:8080/iperfspeed 	IperfSpeed
6 	http://KE8MVM-DARA-AGM5:8080/iperfspeed 	IperfSpeed
7 	http://KE8MVM-MVHS-AGM5:8080/iperfspeed 	IperfSpeed
8 	http://KE8MVM-MVHS-Omni:8080/iperfspeed 	IperfSpeed
9 	http://KE8MVM-W-Xenia-NSM5:8080/iperfspeed 	IperfSpeed
10 	http://N8JJ-Phone:80/ 	Phone
11 	ftp://N8JJ-Router:21/ 	FTP
12 	http://N8JJ-Router:80/MVMA/index.html 	PC Server
13 	http://N8JJ-Router:81/?user=view 	Cameras
14 	http://N8JJserver:80/index5.php 	RPi Server
15 	http://NC8Q-M5-Kett:8080/iperfspeed 	IperfSpeed
16 	http://NC8Q-M5-MVHS:8080/iperfspeed 	IperfSpeed
17 	http://W8BI-DARA-Omni:8080/iperfspeed 	IperfSpeed
18 	http://W8GUC-2:8080/iperfspeed 	IperfSpeed
19 	http://W8GUC-3:8080/iperfspeed 	IperfSpeed
20 	http://W8GUC:8080/iperfspeed 	IperfSpeed
21 	http://WA8APB-ATA-Phone:80/ 	Dial 10.143.159.67
22 	http://WA8APB-ELP-Camera:80/ 	Log-In ID=admin PW=12345
23 	ftp://WA8APB-Library-Server:21/public/FileTransfer 	File Transfers
24 	ftp://WA8APB-Library-Server:21/public/Library 	WA8APB Library
25 
ftp://WA8APB-Library-Server:21/public/WA8APB_Node_Info_Files/WA8APB-Info.htm 
	Node Info
26 	http://WA8APB-TowerCam:80/ 	Use IE - User=admin PW=admin
27 	http://WA8APB-Video-Phone:80/ 	Dial 10.143.159.68 or Ext-502
28 	ftp://ab8xa-server:21/ 	Reference
29 	http://ab8xa-server:80/meshchat 	MVMchat
30 	http://ab8xa-server:80/phone 	Phonebook
31 	http://ab8xa-server:80/time 	NTP Time
32 	http://n2mh-hub:80/meshview/view.html 	N2MH MeshView
33 	http://n2mh-meshphone2:80/meshphone/index.html 	MeshPhone voip 
Network Info
34 	http://n2mh-meshphone2:80/meshphone/whitepages.php 	MeshPhone White 
Pages
35 	http://n2mh-piaware2:80/dump1090-fa 	ADSB (air traffic over NNJ)
36 	http://n2mh-web:80/blog 	N2MH Blog on the Mesh
37 	http://n2mh-web:80/meshmap/map_display.php 	World Mesh Map
38 	http://n2mh-web:80/meshphone/map.php 	MeshPhone PBX Network Map
39 	http://n8jjpbx:80/admin 	PBX(10.81.226.172)
40 	http://nc8q-adsb:8090/ 	nc8q-adsb
41 	http://nc8q-bpq:8080/ 	nc8q-bpq
42 	http://nc8q-mesh-map:80/meshmap 	nc8q-mesh-map
43 	http://nc8q-mesh-server:80/mesh 	nc8q-mesh-server
44 	http://nc8q-meshchat:80/meshchat 	MVMchat
45 	http://w8bi-mesh:80/meshmap 	MeshMap
46 	http://w8bi-mesh:80/meshmap/node_report.php 	MeshReport
47 	http://w8bi-mesh:80/time 	MeshTime
48 	http://w8bi-pbx:80/index.html 	Getting Connected...
49 	http://w8bi-pbx:80/phonebook.txt 	Text Phonebook
50 	rtsp://w8guc-2-camera:554/mpeg4/media.amp 	RTSP - use VLC
51 	http://w8guc-2-camera:80/view 	HTTP - use browser
52 	http://w8guc-2-server:80/gps 	GPS
53 	http://w8guc-2-server:80/meshchat 	MVMchat
54 	rtsp://w8guc-3-camera:554/mpeg4/media.amp 	RTSP - use VLC
55 	http://w8guc-3-camera:80/view 	HTTP - use browser
56 	http://w8guc-3-server:80/gps 	GPS
57 	http://w8guc-3-server:80/meshchat 	MVMchat
58 	http://w8guc-camera-1:80/view 	HTTP 1 - use browser
59 	rtsp://w8guc-camera-2:554/mpeg4/media.amp 	RTSP 2 - use VLC
60 	http://w8guc-camera-2:80/view 	HTTP 2 - use browser
61 	rtsp://w8guc-camera-3:554/mpeg4/media.amp 	RTSP 3 - use VLC
62 	http://w8guc-camera-3:80/view 	HTTP 3 - use browser
63 	http://w8guc-server:80/meshchat 	MVMchat



-- 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.qth.net/pipermail/mvma/attachments/20190923/97f8b879/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sig.gif
Type: image/gif
Size: 3641 bytes
Desc: not available
URL: <http://mailman.qth.net/pipermail/mvma/attachments/20190923/97f8b879/attachment.gif>


More information about the MVMA mailing list