-
Notifications
You must be signed in to change notification settings - Fork 11
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
Enhancement request: Busy signal on HTTP server #45
Comments
Ah, awesome - thanks for the promotion @fribse! I'm definitely still working on it, just taking some time to work on some other projects at the moment - I'm trying to fine-tune my motion-sensor camera system (ha, which is the reason I wanted to write NL-P in the first place), which is a a little Pi-hat board I designed using an ATTiny85 chip, running on a Pi Zero (both the AT chip and Pi run code that I wrote) - kind of a badge of honor that I designed all of that, although I also have to work the kinks out when they don't quite work 100% the way they should 😁 Ha, duly noted - the log does give a kind of "we're doing something at the moment, so we're ignoring this!" kind of response when it's busy searching, although if you're running it headless, the web interface admittedly doesn't - so that's a good idea for the next one! |
OK, this commit affects the following issues: #45, #83 and #84 - this commit adds: - A busy indicator (including current status message, if the action takes more than a few seconds) to the HTTP server - this has been a request for a little while... - Adds the FX functionality of the Infinity lights to the HTTP server (and it should also take care of the CLI, but I haven't tested the CLI extensively yet) - Rewrote the JavaScript re-loading mechanic to use .replace instead of .assign, so there isn't a new history entry in your browser every time a page reloads - Adds a "pause delay" if you click out of the HTTP server webpage, like clicking on the URL: bar of your browser - this will make typing light parameters in easier - Adds the following parameters to the HTTP and CLI interfaces - bright_min, bright_max, temp_min, temp_max, hue_min, hue_max, speed, sparks, specialOptions - Reworked the getLightSpecs() function to return light parameters with less work (re-alphabetized the list of lights, refined the procedure for finding the current light, etc.)
Hi again
|
Hmm... interesting... The 3rd one makes sense, because when you restart NL-P, it's probably reporting the other copy is still running (the lock file exists), so it won't launch a new copy without 1 - I'm curious... if you launch NeewerLite-Python as a normal program (not a daemon, just One other change I made to the HTTP page in the new update, if you scroll away from the page (click on the address bar for example, or browse away from the page), the JavaScript timer that refreshes the page freezes until you click back on the page. I did this for anyone that wanted to enter a URL in the address bar after lights were detected to test setting params on a light without the page refreshing and kicking them out of entering an address, but that also might be holding things up here, so I can take that out. 2 - this one is a bit confusing (to me) because I wrote a conversion procedure to convert the old presets to new presets internally, and it doesn't seem to be working... could you send me the old presets again that you had saved from before? This is the list you sent me earlier:
|
This is what should be showing up for the list of presets, based on what you sent me before: |
Also, one other possibility (just spitballing here), there could be a permissions issue with the file in the |
Hi Zach I finally got some time, I just fetched the latest (4 months old) to test again.
At first it complained about the Bleak missing, so that might have been an issue as well, don't know how the old version would work without it though? Oh, btw. if I remove the light prefs file, the webserver starts up, responds, finds the light and all... |
Hmm, that's definitely odd @fribse - I'll have to check into why the prefs folder might be screwing things up. |
Hi @taburineagle
I hope you still work on this from time to time, it's a much appreciated project, and I promote is in my videos :-)
It would be great if you could get a 'busy' signal implemented on the webinterface, so that when it is searching for lights, it tells somebody about it, so you wouldn't just click away on all the buttons when being impatient :-)
The text was updated successfully, but these errors were encountered: