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-10 16:56

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

Originally Posted by Copernicus (Post 1420713)
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.

How about getting an inspiration from tried-and-tested software? :)
Linux 'espeak' comes to mind, for example.

sixwheeledbeast 2014-04-10 17:25

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

Originally Posted by pichlo (Post 1420722)
'espeak' comes to mind, for example.

I agree

Code:

torchio 'hello world'

pichlo 2014-04-10 19:49

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)).

Estel 2014-04-10 20:13

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

Copernicus 2014-04-10 22:00

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

chill 2014-04-10 23:16

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

Originally Posted by Copernicus (Post 1420321)
Ok, Lanterne 0.5.11 is now heading up to extras-devel. This is just a minor update, adding the new light sensor to the set of startup options, and tying it into the torch timeout mechanism. (Also, there's a little bit of cleanup of the light sensor's UI.) Still not sure if this is a usable feature, but it is kind of fun to see what the ambient light sensor is detecting... :)

I can see how the light sensor is in the startup options (Light Sensor button in the drop down menu), but how is tied to the torch timeout mechanism?

chill 2014-04-10 23:26

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:

Originally Posted by sixwheeledbeast (Post 1348483)
A personally I hope the use of the camera button doesn't come to Lanterne :)

I have all sorts of hacks on this button.

I use shortcutd to have short focus press as lock and long focus press is skip track.
I use vi's cam_focus chmod trick to keep the cam_focus unlocked when the device is locked.
This means I can skip track with the cam key.

Maybe the volume keys like pierogi, up for on down for off and remember that landscape can be opposite (well the volume is).

See below for my personal N900 tweaks page.
http://wiki.maemo.org/User:Sixwheeledbeast/Scripts


Copernicus 2014-04-11 01:17

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

Originally Posted by chill (Post 1420771)
I can see how the light sensor is in the startup options (Light Sensor button in the drop down menu), but how is tied to the torch timeout mechanism?

Right now, the torch timeout pretty much effects all the Lanterne modes in the same manner; if the light stays on continuously for the specified amount of time, it will be turned off. (And the indicator light will be set to flashing, if that preference is set.)

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.

Copernicus 2014-04-11 01:22

Re: [Announce] Lanterne - an app for experimenting with the flash LEDs
 
Quote:

Originally Posted by chill (Post 1420773)
...I cannot use it and would love to be able to use volume keys instead.

Yeah, I pretty much gave up on the camera button last year, once I realized I couldn't do anything with it when the screen backlight was off. I'm not sure why that was; I know that other apps do use it when the screen is dark.

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.)

chill 2014-04-11 02:53

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

Originally Posted by Copernicus (Post 1420781)
Right now, the torch timeout pretty much effects all the Lanterne modes in the same manner; if the light stays on continuously for the specified amount of time, it will be turned off. (And the indicator light will be set to flashing, if that preference is set.)

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.

Hmmm, can you be a little bit more specific (I may be missing something, sorry)? The light turns off when the specified time has elapsed AND the light sensor indicates "darkness"?


All times are GMT. The time now is 02:19.

vBulletin® Version 3.8.8