diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..013bd77 --- /dev/null +++ b/.gitignore @@ -0,0 +1,21 @@ +# Carpetas de compilación y entorno +.pio/ +.vs/ +.vscode/ +build/ +bin/ +obj/ + +# Archivos de configuración locales +*.code-workspace +.DS_Store + +# Archivos binarios y de salida +*.hex +*.bin +*.elf +*.map + +# Archivos de depuración y logs +*.log +*.tmp \ No newline at end of file diff --git a/data/EZORTD.json b/data/EZORTD.json index 55068dc..d43e8e1 100644 --- a/data/EZORTD.json +++ b/data/EZORTD.json @@ -1 +1 @@ -{ "temperature": 24.414 } +{ "temperature": 24.900 } diff --git a/sensors/EZORTD/ezortd_daemon.c b/sensors/EZORTD/ezortd_daemon.c index 857bcec..1bcb98e 100644 --- a/sensors/EZORTD/ezortd_daemon.c +++ b/sensors/EZORTD/ezortd_daemon.c @@ -29,15 +29,6 @@ int main() if (f) { - time_t now = time(NULL); - struct tm *t = localtime(&now); - - char timestamp[32]; - - strftime(timestamp, - sizeof(timestamp), - "%Y-%m-%d %H:%M:%S", - t); fprintf(f, "{ \"temperature\": %.3f }\n", temperature); @@ -53,14 +44,6 @@ int main() if (log) { time_t now = time(NULL); - struct tm *t = localtime(&now); - - char timestamp[32]; - - strftime(timestamp, - sizeof(timestamp), - "%Y-%m-%d %H:%M:%S", - t); fprintf(log, "%ld,%.3f\n",