Skip to content

Record "remote log" events#446

Merged
jgfoster merged 96 commits intoOpen-Acidification:mainfrom
jgfoster:alerts
Feb 5, 2025
Merged

Record "remote log" events#446
jgfoster merged 96 commits intoOpen-Acidification:mainfrom
jgfoster:alerts

Conversation

@jgfoster
Copy link
Member

@jgfoster jgfoster commented Mar 13, 2024

In addition to storing one-second data on the SD card, we store one-minute events and (plan to) upload that file to oap.cs.wallawalla.edu where it can be used by a web application to show log files.

je-foster and others added 9 commits March 11, 2024 19:40
* DataLogger calls writeInfoToLog() every 60s

* DataLogger sends an info string to SD_TC

* DataLogger sends warning strings to SD_TC

* Writes to EEPROM trigger DataLogger warnings

* Include EEPROM values in DataLogger warnings

* SD_TC writes alerts to SD card

* Duplicate EEPROM writes don't warn DataLogger

* New slope from PHProbe triggers DataLogger warning

* thermal mean and std dev, more columns in alerts.

* Alert filename in TankController.ino

* Resolve EEPROM nan printing issues

* Construct SD_TC without Ethernet_TC

* WIP AlertPusher works but blocks, lacks tests

* Changes related to alert file
* DataLogger calls writeInfoToLog() every 60s

* DataLogger sends an info string to SD_TC

* Reformat info string

* DataLogger sends warning strings to SD_TC

* Writes to EEPROM trigger DataLogger warnings

* Include EEPROM values in DataLogger warnings

* SD_TC writes alerts to SD card

* Duplicate EEPROM writes don't warn DataLogger

* New slope from PHProbe triggers DataLogger warning

* thermal mean and std dev, more columns in alerts.

* Alert filename in TankController.ino

* WIP AlertPusher

* Remove maximum size for logFileName

* Add maximum size for logFileName

* SD_TC::getAlert()

* WIP AlertPusher

* Resolve EEPROM nan printing issues

* WIP tests

* Construct SD_TC without Ethernet_TC

* WIP AlertPusher somewhat functional

* WIP AlertPusher works but blocks, lacks tests

* Changes related to alert file

* Tests run again
Copy link
Member

@prestoncarman prestoncarman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When you have time, can you walk me through this change.

@@ -1 +1 @@
const String gitVersion = 'v24.3.2 +';
const String gitVersion = 'v24.3.2-8-g9987+';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is the additional information?

state->reset();
eeprom->setIgnoreBadPHSlope(true);
assertTrue(eeprom->getIgnoreBadPHSlope());
// eeprom->setIgnoreBadPHSlope(true);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why the commented out code?

James Foster added 9 commits March 13, 2024 14:13
# Conflicts:
#	extras/device_client/lib/model/version.dart
#	src/Version.h
# Conflicts:
#	Makefile
#	examples/TankController/TankController.ino
#	extras/device_client/lib/model/version.dart
#	extras/log_file_client/lib/main.dart
#	extras/log_file_client/pubspec.yaml
#	src/TankController.cpp
#	src/TankController.h
#	src/Version.h
#	src/model/DataLogger.cpp
#	src/model/DataLogger.h
#	src/wrappers/SD_TC.cpp
#	src/wrappers/SD_TC.h
#	src/wrappers/ThermalProbe_TC.cpp
#	src/wrappers/ThermalProbe_TC.h
#	test/SDTest.cpp
#	test/ThermalControlTest.cpp
#	test/ThermalProbeTest.cpp
@jgfoster jgfoster changed the title Upload event log to remote server DRAFT: Upload event log to remote server Jun 18, 2024
James Foster added 8 commits June 17, 2024 21:07
# Conflicts:
#	extras/device_client/lib/model/version.dart
#	src/Version.h
#	src/model/DataLogger.cpp
#	src/model/DataLogger.h
#	src/wrappers/SD_TC.cpp
#	src/wrappers/SD_TC.h
#	test/SDTest.cpp
# Conflicts:
#	Makefile
#	extras/device_client/lib/model/version.dart
#	src/Version.h
#	src/model/DataLogger.cpp
#	src/wrappers/SD_TC.cpp
#	src/wrappers/SD_TC.h
#	test/DataLoggerTest.cpp
#	test/PHProbeTest.cpp
#	test/SDTest.cpp
#	test/SerialTest.cpp
#	test/TCLibTest.cpp
#	test/ThermalProbeTest.cpp
James Foster added 23 commits January 14, 2025 16:53
- Remove duplicates from Makefile.
# Conflicts:
#	extras/device_client/lib/model/version.dart
#	src/Version.h
* Add documentation about network and architecture
# Conflicts:
#	extras/device_client/lib/model/version.dart
#	src/Version.h
#	src/model/RemoteLogPusher.cpp
#	src/wrappers/SD_TC.cpp
#	src/wrappers/SD_TC.h
#	test/SDTest.cpp
#	test/SerialTest.cpp
# Conflicts:
#	extras/device_client/lib/model/version.dart
#	extras/device_client/pubspec.lock
#	src/Version.h
James Foster added 4 commits January 28, 2025 08:26
# Conflicts:
#	extras/log_file_client/pubspec.lock
#	extras/log_file_server/bin/log_file_server.dart
#	extras/log_file_server/test/server_test.dart
# Conflicts:
#	extras/log_file_server/bin/log_file_server.dart
#	extras/log_file_server/test/server_test.dart
@jgfoster jgfoster merged commit 807d5df into Open-Acidification:main Feb 5, 2025
14 checks passed
@jgfoster jgfoster deleted the alerts branch February 5, 2025 18:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants