Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Projets-INFO4
20-21
18
chirpstack-monitoring
Commits
46e2432f
Commit
46e2432f
authored
Apr 06, 2021
by
Paul Lambert
Browse files
added headers to sh files
parent
ea573161
Changes
15
Hide whitespace changes
Inline
Side-by-side
reports/change_url_orgaID.sh
View file @
46e2432f
#!/bin/bash
# -------------------------------------------------
# Description: add organization ID into URL
# List Command: x
# Usage: runned by get_devices.sh
# Create by: CampusIoT Dev Team, 2021 - Copyright (C) CampusIoT, - All Rights Reserved
# -------------------------------------------------
# Version: 1.0
# -------------------------------------------------
# Bug:
# -------------------------------------------------
# Parameters
if
[[
$#
-ne
2
]]
;
then
echo
"Usage:
$0
DID OID"
...
...
reports/clean.sh
View file @
46e2432f
...
...
@@ -3,6 +3,17 @@
# Copyright (C) CampusIoT, - All Rights Reserved
# Written by CampusIoT Dev Team, 2016-2021
# -------------------------------------------------
# Description: Delete unnecessary files
# List Command: x
# Usage: executed by ./clean.sh
# Create by: CampusIoT Dev Team, 2021 - Copyright (C) CampusIoT, - All Rights Reserved
# -------------------------------------------------
# Version: 1.0
# -------------------------------------------------
# Bug:
# -------------------------------------------------
# DATA REPOSITORY
DATA_CONFIG_FOLDER
=
"data/configuration/"
DATA_ORG_FOLDER
=
"data/organizations/"
...
...
reports/compare_gateways.sh
View file @
46e2432f
...
...
@@ -3,10 +3,6 @@
# Copyright (C) CampusIoT, - All Rights Reserved
# Written by CampusIoT Dev Team, 2016-2021
# ------------------------------------------------
# Get the detail of a getaway
# ------------------------------------------------
# Parameters
if
[[
$#
-ne
2
]]
;
then
echo
"Usage:
$0
JWT GWID"
...
...
reports/decompose_gateways_sparkline.sh
View file @
46e2432f
...
...
@@ -5,7 +5,6 @@
# List Command: x
# Usage: runned by get_gateways.sh (à détailler)
# Create by: CampusIoT Dev Team, 2021 - Copyright (C) CampusIoT, - All Rights Reserved
# Since: 09/09/2560 (DD/MM/YYYY)
# -------------------------------------------------
# Version: 1.0
# -------------------------------------------------
...
...
reports/gateways_to_html.sh
View file @
46e2432f
...
...
@@ -5,7 +5,6 @@
# List Command: x
# Usage: runned by get_gateways.sh (à détailler)
# Create by: CampusIoT Dev Team, 2021 - Copyright (C) CampusIoT, - All Rights Reserved
# Since: 09/09/2560 (DD/MM/YYYY)
# -------------------------------------------------
# Version: 1.0
# -------------------------------------------------
...
...
reports/generate_reports.sh
View file @
46e2432f
...
...
@@ -3,9 +3,16 @@
# Copyright (C) CampusIoT, - All Rights Reserved
# Written by CampusIoT Dev Team, 2016-2021
# ------------------------------------------------
# Generate the reports
# ------------------------------------------------
# -------------------------------------------------
# Description: Generate gateways and devices reports
# List Command: x
# Usage: execute ./generate_reports.sh
# Create by: CampusIoT Dev Team, 2021 - Copyright (C) CampusIoT, - All Rights Reserved
# -------------------------------------------------
# Version: 1.0
# -------------------------------------------------
# Bug:
# -------------------------------------------------
# DATA REPOSITORY
DATA_CONFIG_FOLDER
=
"data/configuration/"
...
...
reports/get_applications.sh
View file @
46e2432f
...
...
@@ -3,9 +3,16 @@
# Copyright (C) CampusIoT, - All Rights Reserved
# Written by CampusIoT Dev Team, 2016-2021
# ------------------------------------------------
# Get applications
# ------------------------------------------------
# -------------------------------------------------
# Description: Get applications
# List Command: x
# Usage: runned by get_applications.sh
# Create by: CampusIoT Dev Team, 2021 - Copyright (C) CampusIoT, - All Rights Reserved
# -------------------------------------------------
# Version: 1.0
# -------------------------------------------------
# Bug:
# -------------------------------------------------
# Parameters
if
[[
$#
-ne
2
]]
;
then
...
...
reports/get_devices.sh
View file @
46e2432f
...
...
@@ -3,9 +3,16 @@
# Copyright (C) CampusIoT, - All Rights Reserved
# Written by CampusIoT Dev Team, 2016-2021
# ------------------------------------------------
# Get devices
# ------------------------------------------------
# -------------------------------------------------
# Description: Get devices
# List Command: x
# Usage: runned by generate_reports.sh
# Create by: CampusIoT Dev Team, 2021 - Copyright (C) CampusIoT, - All Rights Reserved
# -------------------------------------------------
# Version: 1.0
# -------------------------------------------------
# Bug:
# -------------------------------------------------
# Parameters
if
[[
$#
-ne
1
]]
;
then
...
...
reports/get_gateway.sh
View file @
46e2432f
...
...
@@ -3,9 +3,16 @@
# Copyright (C) CampusIoT, - All Rights Reserved
# Written by CampusIoT Dev Team, 2016-2021
# ------------------------------------------------
# Get the detail of a getaway
# ------------------------------------------------
# -------------------------------------------------
# Description: Get the detail of a gateway
# List Command: x
# Usage: runned by get_gateways.sh
# Create by: CampusIoT Dev Team, 2021 - Copyright (C) CampusIoT, - All Rights Reserved
# -------------------------------------------------
# Version: 1.0
# -------------------------------------------------
# Bug:
# -------------------------------------------------
# Parameters
if
[[
$#
-ne
2
]]
;
then
...
...
reports/get_gateway_stats.sh
View file @
46e2432f
...
...
@@ -3,9 +3,16 @@
# Copyright (C) CampusIoT, - All Rights Reserved
# Written by CampusIoT Dev Team, 2016-2021
# ------------------------------------------------
# Get the stats of a get gateway
# ------------------------------------------------
# -------------------------------------------------
# Description: Get the stats of a gateway
# List Command: x
# Usage: runned by get_gateways.sh
# Create by: CampusIoT Dev Team, 2021 - Copyright (C) CampusIoT, - All Rights Reserved
# -------------------------------------------------
# Version: 1.0
# -------------------------------------------------
# Bug:
# -------------------------------------------------
# Parameters
if
[[
$#
-ne
3
]]
;
then
...
...
reports/get_gateways.sh
View file @
46e2432f
...
...
@@ -3,9 +3,16 @@
# Copyright (C) CampusIoT, - All Rights Reserved
# Written by CampusIoT Dev Team, 2016-2021
# ------------------------------------------------
# Get getaways
# ------------------------------------------------
# -------------------------------------------------
# Description: Get gateways
# List Command: x
# Usage: runned by generate_reports.sh
# Create by: CampusIoT Dev Team, 2021 - Copyright (C) CampusIoT, - All Rights Reserved
# -------------------------------------------------
# Version: 1.0
# -------------------------------------------------
# Bug:
# -------------------------------------------------
# Parameters
if
[[
$#
-ne
1
]]
;
then
...
...
reports/get_id_devices_change.sh
View file @
46e2432f
#!/bin/bash
# -------------------------------------------------
# Description: search for changement of devices state and update HTML
# List Command: x
# Usage: runned by get_devices.sh
# Create by: CampusIoT Dev Team, 2021 - Copyright (C) CampusIoT, - All Rights Reserved
# -------------------------------------------------
# Version: 1.0
# -------------------------------------------------
# Bug:
# -------------------------------------------------
TODAY
=
"
$(
date
+
"%Y-%m-%d"
)
"
# DATA REPOSITORY
...
...
reports/get_id_gateways_change.sh
View file @
46e2432f
#!/bin/bash
# -------------------------------------------------
# Description: Search for changement of gateways states and updtae HTML
# List Command: x
# Usage: runned by get_gateways.sh
# Create by: CampusIoT Dev Team, 2021 - Copyright (C) CampusIoT, - All Rights Reserved
# -------------------------------------------------
# Version: 1.0
# -------------------------------------------------
# Bug:
# -------------------------------------------------
TODAY
=
"
$(
date
+
"%Y-%m-%d"
)
"
# DATA REPOSITORY
...
...
@@ -14,10 +25,7 @@ id=($ids)
dates
=
$(
jq
--raw-output
".result[] | .lastSeenAt"
${
DATA_GAT_FOLDER
}
.gateways.json
)
date
=()
date
=(
$dates
)
state
=()
full_date
=()
d
=()
for
((
i
=
0
;
i<
${#
date
[@]
}
;
i++
))
state
=()
nerate_reports i++
))
do
if
[[
${
date
[
$i
]
}
==
"null"
]]
then
...
...
reports/get_organizations.sh
View file @
46e2432f
...
...
@@ -3,9 +3,16 @@
# Copyright (C) CampusIoT, - All Rights Reserved
# Written by CampusIoT Dev Team, 2016-2021
# ------------------------------------------------
# Get organizations
# ------------------------------------------------
# -------------------------------------------------
# Description: Get organizations
# List Command: x
# Usage: runned by generate_reports.sh
# Create by: CampusIoT Dev Team, 2021 - Copyright (C) CampusIoT, - All Rights Reserved
# -------------------------------------------------
# Version: 1.0
# -------------------------------------------------
# Bug:
# -------------------------------------------------
# Parameters
if
[[
$#
-ne
1
]]
;
then
...
...
reports/sendmail_reports.sh
View file @
46e2432f
...
...
@@ -3,6 +3,17 @@
# Copyright (C) CampusIoT, - All Rights Reserved
# Written by CampusIoT Dev Team, 2016-2021
# -------------------------------------------------
# Description: Send mails containing reports
# List Command: x
# Usage: should be runned by generate_reports.sh
# Create by: CampusIoT Dev Team, 2021 - Copyright (C) CampusIoT, - All Rights Reserved
# -------------------------------------------------
# Version: 1.0
# -------------------------------------------------
# Bug:
# -------------------------------------------------
# crontab entry
# TODO /bin/bash
...
...
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