FrSky icon indicating copy to clipboard operation
FrSky copied to clipboard

FrSky Ethos LUA grapher

Open mmasch opened this issue 2 years ago • 13 comments

Hi. Posted this question in RCGroups/Radios/Ethos LUA thread and a person there suggested you allready had developed a similar LUA for OpenTX. Any chance for a port to the Ethos OS?

Below is my query at RCGroups: Wondering if someone has considered creating a LUA to display logged content on the transmitter? Ie. RSSI/VFR/Vario height et.al. from the logs from the current or another specified (selectable) flight? I am not able to create LUA content, but thought I'd plant the idea. Had visualized a full-screen where you could pick the log-file you wanted, and perhaps a dialogue box where you could select one or several of the logged telemetry values and get it displayed graphically on the radio. A little like the way OTX Companion does it. Had been cool to have the ability to check for example the VFR and/og RSSI right after a flight.

Br. Morten Masch, Norway.

mmasch avatar Jan 17 '23 14:01 mmasch

Hi Morton,

I am working on it but ETHOS lacks some things i need. See this request: https://github.com/FrSkyRC/ETHOS-Feedback-Community/issues/2243

When that part is implemented in ETHOS i will continue. I don't have a TX with ETHOS at the moment but that might change.

Kind regards, Herman

RealTadango avatar Jan 17 '23 14:01 RealTadango

Hi Herman

Perhaps a great first step would be for the user to browse to and select the log file to be viewed?

Kind regards, Lothar

lthole avatar Jan 17 '23 21:01 lthole

Hi Herman

Perhaps a great first step would be for the user to browse to and select the log file to be viewed?

Kind regards, Lothar

Sure, but how?

RealTadango avatar Jan 18 '23 06:01 RealTadango

I suppose I assumed that the standard io library might handle this.

I am no expert in Lua. I have written a simple status widget (it’s in the Ethos Lua thread) and I also helped Mike Shellim to port his adaptive trim script to a Horus widget.

On 18 Jan 2023, at 4:46 pm, Herman Kruisman @.***> wrote:

Hi Herman

Perhaps a great first step would be for the user to browse to and select the log file to be viewed?

Kind regards, Lothar

Sure, but how?

— Reply to this email directly, view it on GitHub https://github.com/RealTadango/FrSky/issues/21#issuecomment-1386545617, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGILEE2CSV7C5NZUDH5AYX3WS6DDNANCNFSM6AAAAAAT56I7MU. You are receiving this because you commented.

lthole avatar Jan 18 '23 08:01 lthole

I suppose I assumed that the standard io library might handle this. I am no expert in Lua. I have written a simple status widget (it’s in the Ethos Lua thread) and I also helped Mike Shellim to port his adaptive trim script to a Horus widget. On 18 Jan 2023, at 4:46 pm, Herman Kruisman @.***> wrote: Hi Herman Perhaps a great first step would be for the user to browse to and select the log file to be viewed? Kind regards, Lothar Sure, but how? — Reply to this email directly, view it on GitHub <#21 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGILEE2CSV7C5NZUDH5AYX3WS6DDNANCNFSM6AAAAAAT56I7MU. You are receiving this because you commented.

No, IO lib does not have this feature. Every example you see with file itteration relies on the operating system build in functions and the IO lib only has a passthrough option to interact with those. So nothing for ETHOS.

I don't consider myself a lua expert but i have found the limits very often. For my need there is no workaround at the moment. ETHOS needs to implement something for this.

RealTadango avatar Jan 18 '23 08:01 RealTadango

I will use what little influence I have with Bertrand to push for this.

On 18 Jan 2023, at 6:52 pm, Herman Kruisman @.***> wrote:

 I suppose I assumed that the standard io library might handle this. I am no expert in Lua. I have written a simple status widget (it’s in the Ethos Lua thread) and I also helped Mike Shellim to port his adaptive trim script to a Horus widget. … On 18 Jan 2023, at 4:46 pm, Herman Kruisman @.***> wrote: Hi Herman Perhaps a great first step would be for the user to browse to and select the log file to be viewed? Kind regards, Lothar Sure, but how? — Reply to this email directly, view it on GitHub <#21 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGILEE2CSV7C5NZUDH5AYX3WS6DDNANCNFSM6AAAAAAT56I7MU. You are receiving this because you commented.

No, IO lib does not have this feature. Every example you see with file itteration relies on the operating system build in functions and the IO lib only has a passthrough option to interact with those. So nothing for ETHOS.

I don't consider myself a lua expert but i have found the limits very often. For my need there is no workaround at the moment. ETHOS needs to implement something for this.

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.

lthole avatar Jan 18 '23 09:01 lthole

Hi Herman,This issue has been implemented, and is in the nightly release: https://github.com/FrSkyRC/ETHOS-Feedback-Community/issues/2091RegardsLothar On 18 Jan 2023, at 8:00 pm, Lothar Thole @.> wrote:I will use what little influence I have with Bertrand to push for this.On 18 Jan 2023, at 6:52 pm, Herman Kruisman @.> wrote:

I suppose I assumed that the standard io library might handle this. I am no expert in Lua. I have written a simple status widget (it’s in the Ethos Lua thread) and I also helped Mike Shellim to port his adaptive trim script to a Horus widget. … On 18 Jan 2023, at 4:46 pm, Herman Kruisman @.***> wrote: Hi Herman Perhaps a great first step would be for the user to browse to and select the log file to be viewed? Kind regards, Lothar Sure, but how? — Reply to this email directly, view it on GitHub <#21 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGILEE2CSV7C5NZUDH5AYX3WS6DDNANCNFSM6AAAAAAT56I7MU. You are receiving this because you commented.

No, IO lib does not have this feature. Every example you see with file itteration relies on the operating system build in functions and the IO lib only has a passthrough option to interact with those. So nothing for ETHOS. I don't consider myself a lua expert but i have found the limits very often. For my need there is no workaround at the moment. ETHOS needs to implement something for this.

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: @.***>

lthole avatar Feb 14 '23 06:02 lthole

I don't see it in the change logs or lua documentation? Or is it in the lua samples somewhere?

RealTadango avatar Feb 14 '23 07:02 RealTadango

I found it in the assets for the nightly release here https://github.com/FrSkyRC/ETHOS-Feedback-Community/releases/tag/nightly https://github.com/FrSkyRC/ETHOS-Feedback-Community/releases/tag/nightly

Look in lua-doc.zip

To test it you would have to install the nightly release, which must be done manually for the time being, because Ethos Suite will only support nightlies from Suite 1.4.7.

On 14 Feb 2023, at 5:36 pm, Herman Kruisman @.***> wrote:

I don't see it in the change logs or lua documentation? Or is it in the lua samples somewhere?

— Reply to this email directly, view it on GitHub https://github.com/RealTadango/FrSky/issues/21#issuecomment-1429230801, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGILEE4BKVSIT2M4DJJFQNLWXMVGZANCNFSM6AAAAAAT56I7MU. You are receiving this because you commented.

lthole avatar Feb 14 '23 08:02 lthole

Ah yes, function listFiles in class system. When there is a simulator that supports this i will check it. I don't have an ETHOS transmitter at the moment.

RealTadango avatar Feb 14 '23 08:02 RealTadango

I will let you know. At the moment the simulator is at 1.4.4.

On 14 Feb 2023, at 7:11 pm, Herman Kruisman @.***> wrote:

Ah yes, function listFiles in class system. When there is a simulator that supports this i will check it. I don't have an ETHOS transmitter at the moment.

— Reply to this email directly, view it on GitHub https://github.com/RealTadango/FrSky/issues/21#issuecomment-1429336015, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGILEE4VUGYFTWCWFRIOATLWXNAK7ANCNFSM6AAAAAAT56I7MU. You are receiving this because you commented.

lthole avatar Feb 14 '23 08:02 lthole

FYI  https://www.rcgroups.com/forums/showpost.php?p=50548047&postcount=22710On 14 Feb 2023, at 7:21 pm, Lothar Thole @.> wrote:I will let you know. At the moment the simulator is at 1.4.4.On 14 Feb 2023, at 7:11 pm, Herman Kruisman @.> wrote:Ah yes, function listFiles in class system. When there is a simulator that supports this i will check it. I don't have an ETHOS transmitter at the moment.—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: @.***>

lthole avatar Feb 15 '23 21:02 lthole

Ah, even better. They finally woke up :)

RealTadango avatar Feb 16 '23 06:02 RealTadango