![]() |
Re: [Announce] Lanterne - an all-purpose flashlight app
Quote:
|
Re: [Announce] Lanterne - an all-purpose flashlight app
Quote:
|
Re: [Announce] Lanterne - an all-purpose flashlight app
Quote:
|
Re: [Announce] Lanterne - an all-purpose flashlight app
Just one suggestion...
Adding some command line option to access the lanterne functions (strobe, ambient light + torch would allow some funny integration into other apps or scripting) |
Re: [Announce] Lanterne - an all-purpose flashlight app
Big "yay" for GUI-less command line possibilities.
|
Re: [Announce] Lanterne - an all-purpose flashlight app
Surely you can start the torch via CLI without Lanterne anyway?
|
Re: [Announce] Lanterne - an all-purpose flashlight app
...which can't be said about morse parsing, and, after all, why to reinvent the wheel for other things (like, write manual scripts for strobe, etc), if Lanterne already did that? It would just need to expose it for CLI, and everyone is happy :)
/Estel |
Re: [Announce] Lanterne - an all-purpose flashlight app
Alright, alright. :) I've been meaning to add command-line interfaces to my apps for a while now; particularly, Pierogi would be nice to do, but it would require an awfully complex CLI interface. Lanterne is much much simpler. Unfortunately, there's a fairly significant stumbling block: Qt does not at all like to create a single executable with both GUI and CLI interfaces. There are various explanations for this, but they all eventually seem to boil down to the fact that a GUI app has an enormous amount of baggage that is completely unnecessary in a command-line app. (For obvious reasons!) And so, they really don't make it easy for you to house both UIs in one program.
So, I gave up. Instead, please check out the brand new app, Torchio. This is a console-only Qt app, containing a subset of the existing Lanterne functionality. It supports sustained, pulsed, and SOS mode use of the LEDs, both white and red. Also, you can set a timeout, and you can tell it to ignore the camera cover. (Run "torchio -h" to see all the currently available options.) By default, Torchio will start running the LEDs the moment that you run it, and will continue to do so until the timer runs out (at which point it will quit) or you kill the app. Torchio will exit cleanly if you stop it with a SIGINT (via control-c or whatever), but I should warn that if it dies without cleaning up (say, from a SIGKILL signal or whatever), the LED hardware can get into an odd state. (On my N900, the LEDs would be turned off after the app was killed, but they would immediately turn on whenever any LED-aware app was started up -- Torchio, Lanterne, the camera app, etc.) So beware! :) |
Re: [Announce] Lanterne - an all-purpose flashlight app
Morse parser incoming soon for CLI, I hope :) Thanks, anyway!
|
Re: [Announce] Lanterne - an all-purpose flashlight app
Quote:
I guess I really should ask, what kind of use-cases for Morse parsing are you most interested in? :) |
Re: [Announce] Lanterne - an all-purpose flashlight app
Quote:
Linux 'espeak' comes to mind, for example. |
Re: [Announce] Lanterne - an all-purpose flashlight app
Quote:
Code:
torchio 'hello world' |
Re: [Announce] Lanterne - an all-purpose flashlight app
Admittedly there is a teeny-weeny difference: espeak's primary purpose is to interpret the string. As is echo's, which has a similar syntax. Perhaps not so much for torchio, but I think we can overlook that :) Or, if we want to be really fussy, we can use use something like torchio -m "hello world" (-m for Morse, or some other switch if -m is already used (sorry, haven't tried it yet)).
|
Re: [Announce] Lanterne - an all-purpose flashlight app
...where argument for "m" would be either string to send, or file to parse and send. But, frankly, it would be goot enough to also allow continuous morse'ing content from other thing's stdout, and a icing on the top would be a keyboard-interactive code, where, message is transferred as soon as we push keyboard buttons (if we write faster than it sends, then, it would flash till it send everything or gets interrupted by ctrl-c etc.)
Could be something like -m -i (interactive) /Estel |
Re: [Announce] Lanterne - an all-purpose flashlight app
Ok, it looks like I've got a working implementation of Morse code in Torchio now. I've got it either reading from a file or from the STDIN stream. I'll put more details into the Torchio thread.
(And, man, espeak on the N900 really is fun to play around with. :) ) |
Re: [Announce] Lanterne - an all-purpose flashlight app
Quote:
|
Re: [Announce] Lanterne - an app for experimenting with the flash LEDs
I agree with sixwheeledbeast for pretty much the same reasons; the camera button is overloaded right now. Not that I mind that the option is there - thankfully, it can be turned off - but I cannot use it and would love to be able to use volume keys instead.
Quote:
|
Re: [Announce] Lanterne - an all-purpose flashlight app
Quote:
At least, that's how it has been working for me. :) (For example, set the timeout to 1 minute, set up the light sensor, take the N900 into a dark room, and wait; the light should turn off after a minute. If this isn't working, please let me know!) It's true, though, that the UI does not make this obvious. :) I need to put some more work into it. |
Re: [Announce] Lanterne - an app for experimenting with the flash LEDs
Quote:
I will try to give the volume rocker switch a try instead; it'd be really nice to trigger the torch ability without turning on the screen. (Especially when using the red LED.) |
Re: [Announce] Lanterne - an all-purpose flashlight app
Quote:
|
Re: [Announce] Lanterne - an all-purpose flashlight app
Quote:
So, the example I used: I go to the preferences panel, check the "Enable Torch Timer" box, and then set the "Time Torch stays lit" to 1. Then, I exit the preferences panel, switch to the Light Sensor panel, check the "Start torch at specified sensor value" box, and set the "Minimum Sensor Value" to some number that is larger than what the ambient light sensor is reporting. The LED should then turn on. Now, if I wait for one minute, the LED should turn itself off. (I should note that If the ambient light level should go back above the specified target level, and then drop down again, the LED will turn itself back on...) |
Re: [Announce] Lanterne - an all-purpose flashlight app
I see, thanks for the explanation. The above implies that:
a) the timer is restarted when the room light level goes above the specified, so your 1 minute starts from zero if you turn the ceiling light on in the room. b) suppose the LED is off, the ceiling light is on, and the target light level is very low. Once you exit the Light Sensor panel, Lanterne will not turn the LED on even if you turn off the ceiling light. At least this is what I'm observing. Correct? |
Re: [Announce] Lanterne - an all-purpose flashlight app
P. S. It doesn't seem to be possible to set a target light level that has more than two digits, at least not by typing it in. If I type in three digits with the on-screen keyboard, one disappears, and with the physical keyboard the third digit doesn't even appear.
|
Re: [Announce] Lanterne - an all-purpose flashlight app
Quote:
Quote:
Quote:
|
Re: [Announce] Lanterne - an all-purpose flashlight app
Quote:
|
Re: [Announce] Lanterne - an all-purpose flashlight app
Dear buddy got a nasty idea again :D if you succed in the double tap to turn of screen and using a part of the touchscreen to toggle the flashlight then it would be handy if the volume - could increase and decrease the flashlight power.
|
Re: [Announce] Lanterne - an all-purpose flashlight app
Quote:
|
Re: [Announce] Lanterne - an all-purpose flashlight app
If i remember correctly i have used brightness setting in pierogi tough it is considerd dangerous for torch it can be an option to enable by user to step by step increase and decrease by volume buttons it can be useful as i used torch in lowest setting and many a times felt the need to increase the brightness momenterily to have a clearer and far vison in the dark room or alley and as for backlight i used to turn it off via a command when sunbathing outdoors so maybe if the program is made to recognise double tapping then it can trigger the command to turn off backlight and lock the app ui partialy to use half of the digitizer as a toggle . Whatever the case the program is still heavily useful and adding features would just increase a tad of bloat and a bit of feature rich or say minor enancements in some caces....................................also good luck with your android phone hope to see the ir beast in action . I might get a irdroid finally:)
|
Re: [Announce] Lanterne - an all-purpose flashlight app
Quote:
But yeah, I do need to try and play around with the backlight again. :) Quote:
|
Re: [Announce] Lanterne - an all-purpose flashlight app
Whats up on irandroid :)
|
Re: [Announce] Lanterne - an all-purpose flashlight app
Quote:
Lots of pieces of the Qt UI are working; most of Qt Widgets work just fine (and even support Android theming to a limited extent); and QML is getting close to complete functionality. But Qt is still isolated from the standard Android UI components: you can't use the layout system, you can't access the Action Bar, you can't create standard Android dialog boxes or use the "toast" mechanism. For me, the most annoying item is that Android's screen hierarchy works in a manner almost identical to Maemo's stackable windows, which is something I use pretty heavily in Pierogi. I hate having to ditch that part of the UI when it should be able to work right out of the box... I've been trying to squeeze Pierogi into a new UI, with one main window and a lot of dialog boxes. I've managed to cobble together a Qt dialog box that looks a little like an actual Android dialog box, and put together a fake action bar at the bottom of the window. Hopefully, I'll be able to get something usable put together soon... :) |
Re: [Announce] Lanterne - an all-purpose flashlight app
Quote:
|
Re: [Announce] Lanterne - an all-purpose flashlight app
Quote:
|
Re: [Announce] Lanterne - an all-purpose flashlight app
Quote:
can we get a sneak peak on .11 :D |
Re: [Announce] Lanterne - an all-purpose flashlight app
Quote:
|
Re: [Announce] Lanterne - an all-purpose flashlight app
light sensor works as excepted well serving my usecase:) though its slow/sensitive cant figure out now:D
|
Re: [Announce] Lanterne - an all-purpose flashlight app
Quote:
|
Re: [Announce] Lanterne - an all-purpose flashlight app
Quote:
|
Re: [Announce] Lanterne - an all-purpose flashlight app
moo moo mooo mooo moooo
|
Re: [Announce] Lanterne - an all-purpose flashlight app
Quote:
|
All times are GMT. The time now is 15:22. |
vBulletin® Version 3.8.8