-
Notifications
You must be signed in to change notification settings - Fork 638
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
Schedules - UI should warn when one or more schedules have incorrect syntaxes #2626
Comments
Internally, yes, but only as a yes / no answer. Can point to the specific space-separated chunk, but would have to update the returned struct in that case to replace espurna/code/espurna/scheduler_time.re Lines 973 to 977 in 79fa004
espurna/code/espurna/scheduler_time.re Lines 1016 to 1036 in 79fa004
Otherwise, as a temporary workaround, systemd-analyze calendar ... would do the trick. Obviously, excluding the extensions added here
As mentioned in the previous issue - you'd have to build it locally first with this option enabled espurna/code/espurna/config/general.h Line 1419 in 79fa004
|
This would be perfect ! I could have noticed by myself that
I guessed that this morning when I seen that the scheduler wasn't working. But I thought the source of truth was in the doc: https://github.com/xoseperez/espurna/wiki/Scheduler "Build scheduler module, 1 by default (0 to disable)" Usually (I mean in all firmwares and softwares I've seen) the assets are built with the default provided configuration. And users who wants to activate/deactivate some functionalities can do it in their own copies of the configuration. |
Looks like the same issue as NTP one, wrong column used for runtime and build settings? Adjusted rn
True, but .bin are provided as a convenience for existing devices with sort-of default fits-all config. I hope it is understandable that any code added is not free, and takes more and more space, the more things are added. I would (very) strongly suggest to take a look at PIO (CLI or through VSCode extension) and just build locally. This also simplifies configuration on per-site basis by a lot |
amend d818be690261ffebee7164ba0cc76ded53b95494 verify and use schedule type before parsing ref. #2626
de-hardcode sch and led enumeration types from .html publish raw type & pretty-string from .cpp indexed settings de-fpstr string view references, use the object directly publish 'faulty' schedule specs indexes, focus & report elems ref. #2626 should fix faulty enum<->number references in selects ref. #2628 - schedule types were numeric, while websocket delivered strings
^ chain of commits above, plus c8ebbbd to cancel validity Experimenting with possible checks & notifications.
But, unless I am missing some obvious web api call, js cannot display any pre-localized string from the built-in set of translations. e.g. I cannot tell it to say 'value is invalid' in UI language. Which is pretty annoying, considering every other validity message is translated |
Sound great :) Thank you, I'll play with it when I've time ! |
Device
itead-sonoff-dual-r2
Version
1.18.0-gita518080a+github240830
Bug description
I was very happy to see that #2417 have been implemented 🥳
Today it's the day when I have to review my automatic door schedules. So I read the doc and tried to use combinations of months and
SUNSET
andSUNRISE
keywords.But I've absolutely no idea if my schedules strings are correct or not. The only way to have an answer is to wait for ... months :s
I presume that the string is parsed internally and if there are errors the information is available somewhere ?
It would be really useful to let user be aware of errors on save. At least instead of the "Changes saved" alert, it would be great to have "At least one schedule have an error". Then user can search and find the error.
Thanks !
Steps to reproduce
No response
Build tools used
No response
Any relevant log output (when available)
No response
Decoded stack trace (when available)
No response
The text was updated successfully, but these errors were encountered: