• Re: how to avoid buffering?

    From Mr. Man-wai Chang@3:633/10 to All on Thu Jul 16 18:16:06 2026
    On 7/12/2026 11:25 PM, Wendelin Uez wrote:
    On my android smartphone I have assigned following Tasmota commands http://192.168.178.91/cm?cmnd=Power%20on http://192.168.178.91/cm?cmnd=Power%20off
    to 2 icons namen ON and OFF to switch a Tasmota device on and off by a
    single icon touch only.

    This works very fine, except that the device's answer page is buffered in Firefox, and when I switch ON and OFF and again to ON ....

    Try appending a time-stamp to the URL, led by a question
    mark. It's a typical web programming trick.

    http://192.168.178.91/cm?cmnd=Power%20off?2026071612121211

    Notice the part "?yyyymmddhhmmss": yyyymmdd is date,
    followed by "hhmmss" which is time.




    --

    @~@ Simplicity is Beauty! Remain silent! Drink, Blink, Stretch!
    / v \ May the Force and farces be with you! Live long and prosper!!
    /( _ )\ https://sites.google.com/site/changmw/
    ^ ^ https://github.com/changmw/changmw
    The game is afoot... Meow...

    --- PyGate Linux v1.5.18
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From Wendelin Uez@3:633/10 to All on Fri Jul 17 19:20:22 2026
    Try appending a time-stamp to the URL, led by a question
    mark. It's a typical web programming trick.

    I know this trick, but I don't know how to implement in a one-liner.

    Getting this timer value needs a javascript function, but this can't be
    called in the command line, and even ChatGPT could not serve with a few
    lines html-code solution without additional dependencies. In Wndows I could construct such a command line even simply in .bat files, but AFAIK Android
    has not such ones.


    --- PyGate Linux v1.5.18
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)