This repository has been archived by the owner on Jun 18, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 101
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
143 changed files
with
1,746 additions
and
521 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,4 +33,6 @@ build/* | |
build_xcode/* | ||
config/* | ||
ide/* | ||
test/bin/* | ||
test/bin/* | ||
cmake-build* | ||
.idea* |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# ----------------------------------- | ||
# Userland, ARM used by raspicam | ||
|
||
message("Bind project: OpenMAX") | ||
|
||
set(USERLAND_INCLUDE_DIR /opt/vc/include/) | ||
set(USERLAND_LIBRARY_DIR /opt/vc/lib/) | ||
|
||
include_directories(${USERLAND_INCLUDE_DIR}) | ||
link_directories(${USERLAND_LIBRARY_DIR}) | ||
|
||
# ----------------------------------- | ||
# OpenMaxIL-cpp | ||
|
||
message("External project: OpenMaxIL-cpp") | ||
|
||
ExternalProject_Add(openmax | ||
GIT_REPOSITORY ${git_protocol}://github.com/dridri/OpenMaxIL-cpp | ||
SOURCE_DIR openmax | ||
BINARY_DIR openmax-build | ||
UPDATE_COMMAND "" | ||
PATCH_COMMAND "" | ||
CMAKE_GENERATOR ${gen} | ||
INSTALL_COMMAND "" | ||
CMAKE_ARGS | ||
-DCMAKE_INSTALL_PREFIX:PATH=${CMAKE_BINARY_DIR}/thirdparty | ||
-DBUILD_SHARED_LIBS=OFF | ||
) | ||
|
||
set(OPENMAX_INCLUDE_DIR ${CMAKE_BINARY_DIR}/openmax/include/) | ||
set(OPENMAX_LIBRARY_DIR ${CMAKE_BINARY_DIR}/openmax-build/) | ||
|
||
set(OPENMAX_LIBRARIES -lopenmaxil -lbcm_host -lvcsm -lvcos -lvchiq_arm -lrt -lpthread -ldl "OpenMaxIL++") | ||
|
||
include_directories(${OPENMAX_INCLUDE_DIR}) | ||
link_directories(${OPENMAX_LIBRARY_DIR}) |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,16 @@ | ||
#!/bin/bash | ||
|
||
/usr/bin/supervisord -n -c /etc/supervisord.conf | ||
autoremoval() { | ||
while true; do | ||
sleep 60 | ||
|
||
if [[ $(df -h | grep /dev/vda1 | head -1 | awk -F' ' '{ print $5/1 }' | tr ['%'] ["0"]) -gt 90 ]]; | ||
then | ||
echo "Cleaning disk" | ||
find /etc/opt/kerberosio/capture/ -type f | sort | head -n 100 | xargs rm; | ||
fi; | ||
done | ||
} | ||
autoremoval & | ||
|
||
/usr/bin/supervisord -n -c /etc/supervisord.conf |
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
// | ||
// Class: System | ||
// Description: Provide information about | ||
// the current system. | ||
// Created: 05/07/2017 | ||
// Author: Cédric Verstraeten | ||
// Mail: [email protected] | ||
// Website: www.verstraeten.io | ||
// | ||
// The copyright to the computer program(s) herein | ||
// is the property of Verstraeten.io, Belgium. | ||
// The program(s) may be used and/or copied under | ||
// the CC-NC-ND license model. | ||
// | ||
// https://doc.kerberos.io/license | ||
// | ||
///////////////////////////////////////////////////// | ||
|
||
#include "Globals.h" | ||
#include "Helper.h" | ||
#include <string> | ||
#include <algorithm> | ||
|
||
#ifndef __System_H_INCLUDED__ // if System.h hasn't been included yet... | ||
#define __System_H_INCLUDED__ // #define this so the compiler knows it has been included | ||
|
||
namespace kerberos | ||
{ | ||
class System | ||
{ | ||
public: | ||
|
||
std::string static getHostname(); | ||
std::string static getDiskPercentage(std::string partition); | ||
std::string static getTemperature(); | ||
std::string static getWifiSSID(); | ||
std::string static getWifiStrength(); | ||
std::string static getUptime(); | ||
std::string static getBoard(); | ||
std::string static isDocker(); | ||
std::string static isKiOS(); | ||
std::string static getNumberOfFiles(std::string & directory); | ||
std::string static getCPUid(); | ||
}; | ||
} | ||
#endif |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.