Skip to content

Analog rewrite#365

Draft
arfrie22 wants to merge 118 commits into
masterfrom
analog-rewrite
Draft

Analog rewrite#365
arfrie22 wants to merge 118 commits into
masterfrom
analog-rewrite

Conversation

@arfrie22
Copy link
Copy Markdown
Contributor

No description provided.

@arfrie22 arfrie22 marked this pull request as draft July 15, 2025 20:12
…mtp server that does not require authentication
…to be no more than one littleFS block (8K) in size
…size (to max 1.2MB) to make room for sensor logs; add comments to clarify the new sensor class and variables are for analog sensors (distinguish from onboard sensors)
…ptions without having to trigger a factory reset
…; move relevant operations from opensprinkler_server.cpp to program.h and cpp as program data and sensor adjustment are supposed to be fully in sync
…ional indices. this makes program adjustments and ensemble sensors more robust to sensor changes such as deletions
…to sensor.cpp, use direct binary buffer read/write as (unlike Sensor classes) it doesn't use polymorphism
…s for better organization; change sens.dat to use lazy writing (grows as necessary); improve sensor APIs to support modification and deletion using either positional index or uuid
…old the output content in ether_buffer first, instead, it directly outputs to otf buffer, which already handles content streaming. as a result, there is no need to check available_etherbuffer_size, and we can use smaller ether_buffer in the future
…binary dump which the UI can utilize to minimize log data size
…ptions, streamline sensor unit, group, short name by replacing long switch-case sequence with macros;
…se class and move them into specific classes like ADS1115 as not all sensors need scale and offset (AggregateSensor and WeatherSensor generally don't need that)
…to expand the base class members and subclass members
… valid/error/stable; remove get_initial_value now that sensor status is in place; add /jpa endpoint to send program adjustments (including weather-based and sensor-based) to UI to facilitate preview
… adjustment on manually started programs; update sensor::flag to uint8_t to be consistent with sensor_memory_t::flag; improve write_buf and read_buf to eliminate the need of explicitly specifying type
… is not used (enabled can be implied from the uuid value)
…urning off adjustment without losing parameters; update code to allow duplicate x value in case the user wants a sharp threshold operation
…ensors, remove USE_SENSORS and USE_ADS1115 macros; fix millis issue on 64-bit linux;
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.

2 participants