Skip to content

Seeder 0.2.5: "Sections on the seed drill" setting, 19 sections shown before the program talks - #124

Merged
renatorgr merged 1 commit into
mainfrom
seeder-sections-setting
Nov 9, 2026
Merged

renatorgr merged 1 commit into
mainfrom
seeder-sections-setting

Conversation

@renatorgr

Copy link
Copy Markdown
Owner

Requested by Renato · project thread

What changes

The seed drill page drew only the sections the program had asked for since the module started (secTop), and never fewer than 16. A module that had not heard AgOpenWeb yet, or had just restarted, showed 16 sections instead of the drill's 19; the 19 appeared only once AgOpenWeb opened section 19. The simulator showed the same with "tractor network not set".

Seeder_ESP32 0.2.5: a new setting on the Settings tab, Sections on the seed drill (0-64; 0 = as many as the program asks for, the old behaviour). With it at 19:

  • the Sowing tab shows the 19 sections from the start, even with the program silent;
  • a relay that would follow a section past the 19th does nothing, so the relay card reads "24 relays, 19 of them sections" (it said 24 of them);
  • the setting is kept in flash (secs), sent in /api/settings and /api/status, saved by /api/relays together with Relay 1 follows section.

Simulator: the pretend module has the setting at 19; the smoke test checks the value on the Settings tab, relay 20 idle, and the 19 sections with the cable never plugged in (seeder/?wifi=ap). READMEs: changelog rows and a setup step.

Before (cable never plugged in) After
16 sections 19 sections, "0 of 19 open"

How to test

  1. Simulator (published from main after the merge): open seeder/?wifi=ap. The Sowing tab shows 19 sections, none open. On the Settings tab the new field reads 19; set it to 0 and save (password agopengps): the Sowing tab goes back to 16.
  2. On the Relay24_ESP32: install 0.2.5, open the page, Settings tab, Sections on the seed drill = 19, Save. Power the module off and on with AgOpenWeb closed: the Sowing tab shows 19 sections. With AgOpenWeb running, relays 1-19 click as before and relays 20-24 stay off.

Checks

  • Seeder_ESP32 compiled here with arduino-cli, esp32 core 3.3.12, for both boards (BOARD_RELAY24 85 %, BOARD_KC868_A32 87 % of flash), no warnings. Not run on a board.
  • build.py + smoke-test.js: "Simulator pages OK". check_changelog.py and check_shared_blocks.py pass.

Generated by Claude Code

…em before the program talks

The seed drill page drew only the sections the program had asked for since
the start (secTop), at least 16, so a module that had not heard AgOpenWeb
yet (or just restarted) showed 16 sections instead of the drill's 19.

A new setting on the Settings tab, "Sections on the seed drill" (0-64,
0 = as many as the program asks for, kept in flash as "secs"), tells the
page how many sections to draw from the start; a relay that would follow a
section past the last one does nothing, so the relay card now reads
"24 relays, 19 of them sections". /api/settings and /api/status carry
"secs"; /api/relays takes it with "first".

Simulator: the pretend module has the setting at 19; the smoke test checks
the Settings value, relay 20 idle and the 19 sections with the cable never
plugged in (?wifi=ap). READMEs: changelog rows and the setup step.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VKEBDHD5gzEhTiu3KLnBSx
@renatorgr renatorgr self-assigned this Nov 9, 2026
@renatorgr
renatorgr marked this pull request as ready for review November 9, 2026 14:15
@renatorgr
renatorgr merged commit c4c158e into main Nov 9, 2026
4 checks passed
@renatorgr
renatorgr deleted the seeder-sections-setting branch November 9, 2026 14:15
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