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
dba13762
Commit
dba13762
authored
Apr 06, 2021
by
Antoine Blanquet
Browse files
modifying headers files + fixing bug -global npm install not working on somes pcs
parent
0aacda76
Changes
15
Hide whitespace changes
Inline
Side-by-side
reports/change_date_momentjs.js
View file @
dba13762
// # -------------------------------------------------
// # Description: Change the Format of Date in gateways.html and devices.html
// # List Command: x
// # Usage: runned by get_id_gateways_change.sh and get_id_devices_change.sh
// # Create by: CampusIoT Dev Team, 2021 - Copyright (C) CampusIoT, - All Rights Reserved
// # -------------------------------------------------
// # Milestone: Version 2021
// # -------------------------------------------------
const
moment
=
require
(
'
moment
'
);
var
argv
=
process
.
argv
;
// store the argument given
...
...
reports/clean.sh
View file @
dba13762
...
...
@@ -9,9 +9,7 @@
# Usage: executed by ./clean.sh
# Create by: CampusIoT Dev Team, 2021 - Copyright (C) CampusIoT, - All Rights Reserved
# -------------------------------------------------
# Version: 1.0
# -------------------------------------------------
# Bug:
# Milestone: Version 2021
# -------------------------------------------------
# DATA REPOSITORY
...
...
reports/generate_devices_report.sh
View file @
dba13762
...
...
@@ -8,8 +8,6 @@
# -------------------------------------------------
# Milestone: Version 2021
# -------------------------------------------------
# Bug:
# -------------------------------------------------
# DATA REPOSITORY
DATA_DEV_FOLDER
=
"data/devices/"
...
...
reports/generate_gateways_report.sh
View file @
dba13762
...
...
@@ -8,8 +8,6 @@
# -------------------------------------------------
# Milestone: Version 2021
# -------------------------------------------------
# Bug:
# -------------------------------------------------
# Parameters
if
[[
$#
-eq
0
]]
;
then
...
...
reports/generate_reports.sh
View file @
dba13762
#!/bin/bash
# Copyright (C) CampusIoT, - All Rights Reserved
# Written by CampusIoT Dev Team, 2016-2021
# -------------------------------------------------
# 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
# Create by: CampusIoT Dev Team, 2016-2021 - Copyright (C) CampusIoT, - All Rights Reserved
# -------------------------------------------------
#
Bug:
#
Milestone: Version 2021
# -------------------------------------------------
# DATA REPOSITORY
...
...
reports/generate_sparkline_image.js
View file @
dba13762
// # -------------------------------------------------
// # Description: Take gateways html file with sparkline javascript ON, and take a picture of it.
// # List Command: x
// # Usage: runned by get_gateways.sh
// # Create by: CampusIoT Dev Team, 2021 - Copyright (C) CampusIoT, - All Rights Reserved
// # -------------------------------------------------
// # Milestone: Version 2021
// # -------------------------------------------------
const
webshot
=
require
(
'
webshot
'
);
var
link
=
"
file://
"
+
process
.
cwd
()
+
"
/data/generated_files/.gateways.html
"
...
...
reports/get_applications.sh
View file @
dba13762
...
...
@@ -9,9 +9,7 @@
# Usage: runned by get_applications.sh
# Create by: CampusIoT Dev Team, 2021 - Copyright (C) CampusIoT, - All Rights Reserved
# -------------------------------------------------
# Version: 1.0
# -------------------------------------------------
# Bug:
# Milestone: Version 2021
# -------------------------------------------------
# Parameters
...
...
reports/get_devices.sh
View file @
dba13762
#!/bin/bash
# Copyright (C) CampusIoT, - All Rights Reserved
# Written by CampusIoT Dev Team, 2016-2021
# -------------------------------------------------
# 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
# Create by: CampusIoT Dev Team, 2016-2021 - Copyright (C) CampusIoT, - All Rights Reserved
# -------------------------------------------------
#
Bug:
#
Milestone: Version 2021
# -------------------------------------------------
# Parameters
...
...
reports/get_gateway.sh
View file @
dba13762
#!/bin/bash
# Copyright (C) CampusIoT, - All Rights Reserved
# Written by CampusIoT Dev Team, 2016-2021
# -------------------------------------------------
# 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
# Create by: CampusIoT Dev Team, 2016-2021 - Copyright (C) CampusIoT, - All Rights Reserved
# -------------------------------------------------
#
Bug:
#
# Milestone: Version 2021
# -------------------------------------------------
# Parameters
...
...
reports/get_gateway_stats.sh
View file @
dba13762
...
...
@@ -9,9 +9,7 @@
# Usage: runned by get_gateways.sh
# Create by: CampusIoT Dev Team, 2021 - Copyright (C) CampusIoT, - All Rights Reserved
# -------------------------------------------------
# Version: 1.0
# -------------------------------------------------
# Bug:
# Milestone: Version 2021
# -------------------------------------------------
# Parameters
...
...
reports/get_gateways.sh
View file @
dba13762
#!/bin/bash
# Copyright (C) CampusIoT, - All Rights Reserved
# Written by CampusIoT Dev Team, 2016-2021
# -------------------------------------------------
# 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
# Create by: CampusIoT Dev Team, 20162021 - Copyright (C) CampusIoT, - All Rights Reserved
# -------------------------------------------------
#
Bug:
#
Milestone: Version 2021
# -------------------------------------------------
# Parameters
...
...
@@ -95,7 +90,7 @@ if ! [ -x "$(command -v phantomjs)" ]; then
fi
package
=
'graceful-fs'
if
[
`
npm list
-g
|
grep
-c
$package
`
-eq
0
]
;
then
if
[
`
npm list |
grep
-c
$package
`
-eq
0
]
;
then
echo
'graceful-fs is not installed. Installing graceful-fs ...'
npm
install
"webshot"
npm
install
$package
...
...
reports/get_id_devices_change.sh
View file @
dba13762
...
...
@@ -6,14 +6,12 @@
# Usage: runned by get_devices.sh
# Create by: CampusIoT Dev Team, 2021 - Copyright (C) CampusIoT, - All Rights Reserved
# -------------------------------------------------
# Version: 1.0
# -------------------------------------------------
# Bug:
# Milestone: Version 2021
# -------------------------------------------------
# Installation
package
=
'moment'
if
[
`
npm list
-g
|
grep
-c
$package
`
-eq
0
]
;
then
if
[
`
npm list |
grep
-c
$package
`
-eq
0
]
;
then
echo
'momentjs is not installed. Installing momentjs ...'
npm
install
$package
fi
...
...
reports/get_id_gateways_change.sh
View file @
dba13762
#!/bin/bash
# -------------------------------------------------
# Description:
S
earch for changement of gateways states and updtae HTML
# Description:
s
earch 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:
# Milestone: Version 2021
# -------------------------------------------------
# Installation
package
=
'moment'
if
[
`
npm list
-g
|
grep
-c
$package
`
-eq
0
]
;
then
if
[
`
npm list |
grep
-c
$package
`
-eq
0
]
;
then
echo
'momentjs is not installed. Installing momentjs ...'
npm
install
$package
fi
...
...
reports/get_organizations.sh
View file @
dba13762
...
...
@@ -9,9 +9,7 @@
# Usage: runned by generate_reports.sh
# Create by: CampusIoT Dev Team, 2021 - Copyright (C) CampusIoT, - All Rights Reserved
# -------------------------------------------------
# Version: 1.0
# -------------------------------------------------
# Bug:
# Milestone: Version 2021
# -------------------------------------------------
# Parameters
...
...
reports/sendmail_reports.sh
View file @
dba13762
...
...
@@ -9,7 +9,7 @@
# Usage: should be runned by generate_reports.sh
# Create by: CampusIoT Dev Team, 2021 - Copyright (C) CampusIoT, - All Rights Reserved
# -------------------------------------------------
#
Version: 1.0
#
Milestone: Version 2021
# -------------------------------------------------
# crontab entry
...
...
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