Skip to content

WebQuery HTTP response code #23106

Answered by sfromis
makedir asked this question in Q&A
Mar 4, 2025 · 2 comments · 33 replies
Discussion options

You must be logged in to vote

As I already posted:

The docs for Berry does include basic examples for how to do triggers and code in Berry.
https://tasmota.github.io/docs/Berry/#rules

A direct match for your rule now would be:

tasmota.add_rule('SSerialReceived#Nachricht',
  def (value,trigger,data)
    tasmota.cmd(f'Backlog WebQuery https://ntfy.sh/MYTOPIC POST {value}')
  end)

Sure, this is not shorter; where Berry wins is when starting to combine things, without weird workaround for limitations with rules.

A fuller implementation would be to replace the use of WebQuery, something along the lines of:

tasmota.add_rule('SSerialReceived#Nachricht',
  def (value,trigger,data)
    var wc = webclient()
    wc.begin('htt…

Replies: 2 comments 33 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
33 replies
@makedir
Comment options

@sfromis
Comment options

@makedir
Comment options

@sfromis
Comment options

Answer selected by makedir
@makedir
Comment options

@makedir
Comment options

@sfromis
Comment options

@sfromis
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants