maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   [Announce] Lanterne - an all-purpose flashlight app (https://talk.maemo.org/showthread.php?t=90229)

pichlo 2014-04-08 05:55

Re: [Announce] Lanterne - an all-purpose flashlight app
 
Quote:

Originally Posted by nokiabot (Post 1420338)
one more feature that can be optionaly added to lalterne can be quick double tap to turn off backlight and turning troch on and off by toching the centere area of the screen.
let others comment what they think:)

That actually sounds rather useful. Espexcially in combination with the red LED. Night vision completely unaffected.

Copernicus 2014-04-08 10:26

Re: [Announce] Lanterne - an all-purpose flashlight app
 
Quote:

Originally Posted by nokiabot (Post 1420338)
one more feature that can be optionaly added to lalterne can be quick double tap to turn off backlight and turning troch on and off by toching the centere area of the screen.

I will take another look at controlling the backlight. :) (It was backlight control that got me crossed up before in Lanterne, though, so I'm a little nervous about starting that up again...)

nokiabot 2014-04-08 10:44

Re: [Announce] Lanterne - an all-purpose flashlight app
 
Quote:

Originally Posted by Copernicus (Post 1420376)
I will take another look at controlling the backlight. :) (It was backlight control that got me crossed up before in Lanterne, though, so I'm a little nervous about starting that up again...)

ok also include a popup info about the new feature with a image describing it first time and if it goes all ok and people appreciate it:) i will make another nonsence request to celebrate it:D

xes 2014-04-09 10:58

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)

Estel 2014-04-09 11:36

Re: [Announce] Lanterne - an all-purpose flashlight app
 
Big "yay" for GUI-less command line possibilities.

sixwheeledbeast 2014-04-09 14:28

Re: [Announce] Lanterne - an all-purpose flashlight app
 
Surely you can start the torch via CLI without Lanterne anyway?

Estel 2014-04-10 00:21

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

Copernicus 2014-04-10 04:42

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! :)

Estel 2014-04-10 15:43

Re: [Announce] Lanterne - an all-purpose flashlight app
 
Morse parser incoming soon for CLI, I hope :) Thanks, anyway!

Copernicus 2014-04-10 15:49

Re: [Announce] Lanterne - an all-purpose flashlight app
 
Quote:

Originally Posted by Estel (Post 1420710)
Morse parser incoming soon for CLI, I hope :) Thanks, anyway!

Torchio has all the underlying support for Morse that Lanterne does, but I'm not 100% sure how to fashion a CLI interface for it. I suppose it'd be easy enough to read data from a text file; but it might be more useful to allow the user direct interaction from the keyboard... Maybe even some sort of API to allow data to be piped in from another process?

I guess I really should ask, what kind of use-cases for Morse parsing are you most interested in? :)


All times are GMT. The time now is 14:54.

vBulletin® Version 3.8.8