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

Add web page control #30

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

Add web page control #30

wants to merge 103 commits into from

Conversation

cmcornish
Copy link

Hello Andre,

Here is my code for a web page to control the clocking functions. I think I've now completed all my code changes. The code does what I wanted it to do.
I know you have some local changes, so I thought I'd send over these changes to give you the option of incorporating them before the code diverges too far and makes the merge even harder.
If this isn't useful, the please feel free to ignore or close it. I won't be offended.

Regards,
Chris.

cmcornish and others added 30 commits January 30, 2024 14:29
…m flash memory for the Pico W platform. Use SSID code and extend for Hostname support.
…rms. Looks nasty.

Rework ssi and cgi to split into .h and .c files. Add Pico-Green-Clock.h file to pass over variable set/clear routines into the main code space.
…ons to the start of code outside of the debug settings. This allows them to be compiled in.

Set the passive buzzer support to enabled.
…m to be shared with the web page handlers and passed by value to/from handler functions.

Add top level support for Andre's custom calendar and reminder files so others can build debug and test builds.
Alter serial debug baud rate to 230400bps for Visual code support.
Remove debugging flags by default so that this can be set as needed.
…tructure so we only have one value - is this atomic? I hope so.
…place with a fetch name function. Now have an atomic read of the current time. Don'tr know if it's UCT or local time - will need to check this further.
…ants for min/max and step size - no longer a % duty cycle of 0 to 100 but a step of between 0 and 1000.

Add a first CGI form and handler to perform a multiplication and output it to the UART as a test. Save this step.
…ltage. Need LED pin set via cyw43_arch_gpio_put function.
…. Hit text buffer corruption on the 3rd item (day of week buttons). Save as a checkpoint before trying individual data returns.
…s, though days and alarm text have hiccups. Runs.
… features.

The CurrentHour takes values of between 1-12 when running in 12Hr mode.
The alarm, hour chime and night light hours are stored in FlashConfig in 24 hr mode with values of 0-23. Use the 24hr values in CurrentHourSetting for the comparisons.
This corrects the failures of afternoon alarmsand double triggering when running in 12Hr mode.
Merge commit '67f1fa275a834d81249167439e796dbac44c27f0' into WebControl
…urrently updated into flash every 5 minutes, so delayed. Can't apply them immediately as the web control is running as an interrupt an will crash if LwIP networking is restarted.
cmcornish and others added 13 commits March 8, 2024 19:21
… pending jingles have completed via sound queue buffer management. Also add an instant stop when the cancel key is pressed.

Add sound queue status query and clear command.
…nclude a windows only py launcher. Use python instead which should work on windows and linux.
Discover that the DST summertime values weren't staying set in the afternoon when in 12hr mode.
The clock logic works in 24hr modes so make the 12hr just a display mode.
The summertime DSt is actually a change to the timezone, so add extra code to hide this from the web settings (what about manual setup?).
Fix error with the web DST summertime flag clearing.
…o the timezone setting. This is to avoid confusion when reading values.

NTP synchronisation to EPOC time includes timezone and DST offsets.
Patch to make Pico-Green-Colck compile under Windows using VS
@ian-hargreaves
Copy link

ian-hargreaves commented Dec 9, 2024

@cmcornish I'm interested to try your web interface.
I've been able to re-compile the original 9.03 source on my RP 5 with the latest Pico SDK
How do I pull your code ?

@cmcornish
Copy link
Author

cmcornish commented Dec 9, 2024 via email

cmcornish and others added 15 commits December 26, 2024 19:54
…. Add different modes under web page control.
…nd count exceeding 1000. Update built code versions.
…ersion 10.10. Regenerate a word document from the PDF so some formatting changes have been made, but content has been retained.
…date the WiFi entry to include setting the hostname.
…ials.cpp example text to remove the comments.
… be made to work with the Raspberry Pi Pico extension.
Fix a few typos and try and make the text easier to understand.
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.

4 participants