std ini file e load config

This commit is contained in:
2025-08-21 16:21:47 +02:00
parent 05816ee95d
commit d3f7e9090a
10 changed files with 91 additions and 13 deletions

8
env/config.ini vendored
View File

@@ -1,6 +1,6 @@
[mysql]
host = 10.211.114.173
database = ase_lar
user = root
password = batt1l0
host = 10.211.114.173
database = ase_lar
user = root
password = batt1l0

8
env/elab.ini vendored
View File

@@ -9,12 +9,12 @@
elab_status = active|manual upload
[matlab]
#runtime = /usr/local/MATLAB/MATLAB_Runtime/v93
#runtime = /usr/local/MATLAB/MATLAB_Runtime/v93
#func_path = /usr/local/matlab_func/
runtime = /home/alex/matlab_sym/
runtime = /home/alex/matlab_sym/
func_path = /home/alex/matlab_sym/
timeout = 1800
error = ""
timeout = 1800
error = ""
error_path = /tmp/

52
env/email.ini vendored Normal file
View File

@@ -0,0 +1,52 @@
[address]
from = ASE Alert System<alert@aseltd.eu>
to = andrea.carri@aseltd.eu,alessandro.battilani@gmail.com,alessandro.valletta@aseltd.eu,alberto.sillani@aseltd.eu,majd.saidani@aseltd.eu
cc =
bcc =
[msg]
subject = ASE Alert System
body = <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> \
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Alert from ASE</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
</head>
<body style="margin: 0; padding: 0;">
<table bgcolor="#ffffff" border="0" cellpadding="0" cellspacing="0" width="100%%">
<tr>
<td align="center">
<img src="https://www2.aseltd.eu/static/img/logo_ASE_small.png" alt="ASE" style="display: block;" />
</td>
</tr>
<tr>
<td align="center">
<h1 style="margin: 5px;">Alert from ASE:</h1>
</td>
</tr>
<tr>
<td align="center">
<h3 style="margin: 5px;">Matlab function $matlab_cmd failed on unit => $unit - tool => $tool</h3>
</td>
</tr>
<tr>
<td align="center">
<h4 style="margin: 5px;">$matlab_error</h4>
</td>
</tr>
<tr>
<td style="padding: 20px; padding-bottom: 0px; color: red">
$MatlabErrors
</td>
</tr>
<tr>
<td style="padding: 20px;">
$MatlabWarnings
</td>
</tr>
</table>
</body>
</html>