Vous avez reçu un message "Your GitLab account has been locked ..." ? Pas d'inquiétude : lisez cet article https://docs.gricad-pages.univ-grenoble-alpes.fr/help/unlock/

Commit dba13762 authored by Antoine Blanquet's avatar Antoine Blanquet
Browse files

modifying headers files + fixing bug -global npm install not working on somes pcs

parent 0aacda76
// # -------------------------------------------------
// # 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
......
......@@ -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
......
......@@ -8,8 +8,6 @@
# -------------------------------------------------
# Milestone: Version 2021
# -------------------------------------------------
# Bug:
# -------------------------------------------------
# DATA REPOSITORY
DATA_DEV_FOLDER="data/devices/"
......
......@@ -8,8 +8,6 @@
# -------------------------------------------------
# Milestone: Version 2021
# -------------------------------------------------
# Bug:
# -------------------------------------------------
# Parameters
if [[ $# -eq 0 ]]; then
......
#!/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
......
// # -------------------------------------------------
// # 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"
......
......@@ -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
......
#!/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
......
#!/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
......
......@@ -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
......
#!/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
......
......@@ -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
......
#!/bin/bash
# -------------------------------------------------
# Description: Search for changement of gateways states and updtae HTML
# 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:
# 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
......
......@@ -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
......
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment