Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Record "remote log" events #446

Open
wants to merge 76 commits into
base: main
Choose a base branch
from

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?

@@ -167,14 +184,14 @@ unittest(settingMidpointClearsBadCalibration) {
unittest(setHighpointCalibration) {
GodmodeState *state = GODMODE();
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?

# 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
jgfoster 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
@jgfoster jgfoster changed the title DRAFT: Upload event log to remote server Record "remote log" events Dec 27, 2024
* PushingBoxTest.cpp
* RemoteLogPusherTest.cpp

# Conflicts:
#	extras/device_client/lib/model/version.dart
#	src/TankController.cpp
#	src/Version.h
#	src/model/JSONBuilder.cpp
#	test/PushingBoxTest.cpp
# Conflicts:
#	Makefile
#	extras/device_client/lib/model/version.dart
#	src/TankController.cpp
#	src/Version.h
#	src/model/RemoteLogPusher.cpp
#	src/model/RemoteLogPusher.h
#	src/wrappers/EEPROM_TC.cpp
#	src/wrappers/SD_TC.cpp
#	test/RemoteLogPusherTest.cpp
- Use tabs instead of spaces in Makefile.
- Fix format error.
- Remove duplicates from Makefile.
# Conflicts:
#	extras/device_client/lib/model/version.dart
#	src/Version.h
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