Skip to content

Commit

Permalink
Update paths to the PHP script and CSV file in the code to reflect t…
Browse files Browse the repository at this point in the history
…he new project name 'DataMaq'.
  • Loading branch information
AgustinMadygraf committed Mar 12, 2024
1 parent a325889 commit c00014f
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion SCR/DataTransfer.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def MainTransfer():
def SendDataPHP():
# Define la ruta al intérprete de PHP y al script PHP utilizando raw strings
php_interpreter = "C://AppServ//php7//php.exe"
php_script = "C://AppServ//www//DigiRail//includes//SendData_python.php"
php_script = "C://AppServ//www//DataMaq//includes//SendData_python.php"

# Ejecuta el script PHP usando subprocess.run
result = subprocess.run([php_interpreter, php_script], capture_output=True, text=True, shell=True)
Expand Down
2 changes: 1 addition & 1 deletion SCR/intervalproduction_d.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from db_operations import check_db_connection, execute_query

# Ruta al archivo CSV
csv_file_path = r'C:\AppServ\www\DigiRail\database\intervalproduction_d.csv'
csv_file_path = r'C:\AppServ\www\DataMaq\database\intervalproduction_d.csv'

def excel_date_to_unix(date_serial, excel_epoch=datetime.datetime(1899, 12, 30)):
"""
Expand Down
2 changes: 1 addition & 1 deletion includes/SendData_python.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ function obtenerUltimoRegistro() {

// Enviar datos a la base de datos remota
function enviarDatosRemotos($unixtime, $HR_COUNTER1, $HR_COUNTER2) {
$url = "http://10.176.61.55/DigiRail/includes/receiveAndUpdateDB.php?unixtime=$unixtime&HR_COUNTER1=$HR_COUNTER1&HR_COUNTER2=$HR_COUNTER2";
$url = "http://10.176.61.55/DataMaq/includes/receiveAndUpdateDB.php?unixtime=$unixtime&HR_COUNTER1=$HR_COUNTER1&HR_COUNTER2=$HR_COUNTER2";

// Mostrar los datos y la URL en pantalla
echo "Unixtime: <br>$unixtime<br><br>";
Expand Down
4 changes: 2 additions & 2 deletions includes/header.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@
// Clase para el enlace activo
$claseActiva = "class='active'";

echo "<li><a href='index.php' ".($paginaActual == 'index.php' ? $claseActiva : "").">DigiRail</a></li>";
echo "<li><a href='index.php' ".($paginaActual == 'index.php' ? $claseActiva : "").">DataMaq</a></li>";
echo "<li><a href='PanelControlModbus.php' ".($paginaActual == 'PanelControlModbus.php' ? $claseActiva : "").">Estado del Equipo</a></li>";
echo "<li><a href='/Bolsas/index.php' ".($paginaActual == 'Bolsas/index.php' ? $claseActiva : "").">Costos Bolsas</a></li>";
echo "<li><a href='/horas/index.php' ".($paginaActual == '/horas/index.php' ? $claseActiva : "").">Horas</a></li>";
echo "<li><a href='/DigiRail/index.php' ".($paginaActual == '/DigiRail/index.php' ? $claseActiva : "").">DigiRail</a></li>";
echo "<li><a href='/DataMaq/index.php' ".($paginaActual == '/DataMaq/index.php' ? $claseActiva : "").">DataMaq</a></li>";
echo "<li><a href='/phpMyAdmin/' target='_blank'>PHP MyAdmin</a></li>";

echo "</ul></div></header>";

0 comments on commit c00014f

Please sign in to comment.