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
0aacda76
Commit
0aacda76
authored
Apr 06, 2021
by
Antoine Blanquet
Browse files
Bug Fixing url link when taking picture with sparkline (with Paul)
parent
fd381509
Changes
4
Hide whitespace changes
Inline
Side-by-side
reports/generate_sparkline_image.js
View file @
0aacda76
const
webshot
=
require
(
'
webshot
'
);
webshot
(
'
file:./data/generated_files/.gateways.html
'
,
var
link
=
"
file://
"
+
process
.
cwd
()
+
"
/data/generated_files/.gateways.html
"
webshot
(
link
,
'
data/images/sparkline_report.png
'
,
function
(
err
)
{
if
(
!
err
)
{
console
.
log
(
"
Screenshot taken!
"
)
...
...
@@ -8,3 +10,4 @@ webshot('file:./data/generated_files/.gateways.html',
console
.
log
(
"
Bug when generating screeenshot with Sparkline
"
)
}
});
reports/get_gateways.sh
View file @
0aacda76
...
...
@@ -94,18 +94,12 @@ if ! [ -x "$(command -v phantomjs)" ]; then
sudo
apt-get
install
-y
phantomjs
fi
package
=
'graceful-
j
s'
package
=
'graceful-
f
s'
if
[
`
npm list
-g
|
grep
-c
$package
`
-eq
0
]
;
then
echo
'graceful-
j
s is not installed. Installing graceful-
j
s ...'
echo
'graceful-
f
s is not installed. Installing graceful-
f
s ...'
npm
install
"webshot"
npm
install
$package
fi
package
=
'graceful-js'
if
[
`
npm list
-g
|
grep
-c
$package
`
-eq
0
]
;
then
echo
'graceful-js is not installed. Installing graceful-js ...'
npm
install
$package
fi
# Generate an image of the page html with sparkline
node generate_sparkline_image.js
reports/sendmail_reports.sh
View file @
0aacda76
...
...
@@ -11,8 +11,6 @@
# -------------------------------------------------
# Version: 1.0
# -------------------------------------------------
# Bug:
# -------------------------------------------------
# crontab entry
# TODO /bin/bash
...
...
reports/update_url_orga_id.sh
View file @
0aacda76
...
...
@@ -6,9 +6,7 @@
# 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
# -------------------------------------------------
DATA_HTML_FOLDER
=
"data/generated_files/"
...
...
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