Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
mesh
meshmap
Commits
26f01b3c
Commit
26f01b3c
authored
Sep 23, 2018
by
Eric - kg6wxc
Browse files
enhancement: cleanup some of the output in "test-mode"
parent
229a3e6b
Changes
1
Hide whitespace changes
Inline
Side-by-side
scripts/get-map-info.php
View file @
26f01b3c
...
...
@@ -313,7 +313,9 @@ if ($getNodeInfo) {
//if there's nothing really there just skip to the next IP
if
(
!
$result
||
empty
(
$result
))
{
wxc_echoWithColor
(
"The json file is empty for node:
$ipAddr
\n
"
,
"red"
);
//$host = wxc_resolveIP($ipAddr);
wxc_echoWithColor
(
"The json file is empty for node: "
.
$ipAddr
.
" "
.
wxc_resolveIP
(
$ipAddr
)
.
"
\n
"
,
"red"
);
echo
"
\n
"
;
continue
;
}
...
...
@@ -332,14 +334,6 @@ if ($getNodeInfo) {
$node
=
$result
[
'node'
];
}
//if it's nothing other than the node name, it's some other device
//or something else entirely...
//people hack things onto the mesh all the time
//
//kg6wxc is *not* guilty of such things... :)
//
//just a few checks for nothing usually catches it.
//check API version first!
if
(
version_compare
(
$api_version
,
"1.5"
,
"="
))
{
if
(
isset
(
$result
[
'location'
][
'lat'
]))
{
...
...
@@ -359,6 +353,14 @@ if ($getNodeInfo) {
}
else
{
$lon
=
$result
[
'lon'
];
}
//if it's nothing other than the node name, it's some other device
//or something else entirely...
//people hack things onto the mesh all the time
//
//kg6wxc is *not* guilty of such things... :)
//
//just a few checks for nothing usually catches it.
if
(
$node
&&
$lat
==
""
&&
$lon
==
""
&&
$result
[
'api_version'
]
==
""
)
{
continue
;
}
...
...
@@ -565,7 +567,7 @@ if ($getNodeInfo) {
//}else {
//
//}
echo
"
\n
"
;
//
echo "\n";
}
if
(
$do_sql
)
{
...
...
@@ -741,6 +743,7 @@ if ($getNodeInfo) {
}
}
}
echo
"
\n
"
;
//Thanks to K6GSE
// Clear Variables so they do not carry over
$wifi_mac_address
=
NULL
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment