![]() |
Re: Sonoff basic switch with SailfishOS
I also found another app in Jolla Store which works well with Tasmota/Sonoff; that app is 'd1webclient' by jsm.
With a few minor changes made in the UI, it is very usable. With this app, you can combine all functions to its 'main page', so no need to see the full Tasmota UI every time, quite handy I thought. Functions can be added to the cover; example: I can turn off my desk lamp from the cover - very handy indeed if you have one particular function you use regularly. |
Re: Sonoff basic switch with SailfishOS
I need some help with the following;
I'm making a webview app for tasmota, it has 2 preset cover actions; 1 for toggling power of my 'sonoff basic' and the other for my main desk lamp via 'sonoff RF bridge'. When I press either of my cover action buttons, I get the desired result (light off or on; power off or on), the first press of either button returns the http response data and displays it on the cover, but pressing either of the cover actions after the initial press, the response message is not displayed - why is this response text not repeatable?, what do i need to do so that each time a cover action is pressed, I get the response text displayed. I think Timer may have something to do with the problem, or does it?, Here's my code so far; Code:
CoverAction { |
Re: Sonoff basic switch with SailfishOS
Quote:
|
Re: Sonoff basic switch with SailfishOS
your timer hides label after 5 seconds
|
Re: Sonoff basic switch with SailfishOS
What @coderus said and to explain further the opacity is never set back to 1.0 so it will never return to be visible.
|
Re: Sonoff basic switch with SailfishOS
Quote:
|
Re: Sonoff basic switch with SailfishOS
Quote:
|
Re: Sonoff basic switch with SailfishOS
set text, set opacity to 1, start timer
|
Re: Sonoff basic switch with SailfishOS
Quote:
|
Re: Sonoff basic switch with SailfishOS
assign id for your TImer, remove running: true, after mainText.text = line add mainText.opacity = 1.0 and yourTImerId.start()
|
All times are GMT. The time now is 04:54. |
vBulletin® Version 3.8.8