Blockly Rule with database query

Domotica gratuit Forums How can I …? Synology NAS Blockly Rule with database query

Mots-clés : 

Ce sujet a 1 réponse, 2 participants et a été mis à jour par  K.Rens, il y a 1 an et 7 mois.

2 sujets de 1 à 2 (sur un total de 2)
  • Auteur
    Messages
  • #2068

    coldbringer
    Participant

    Hi,

    I would like to use the last time of detected motion (from my Fibaro Motion Sensor) in a blockly rule. Therefore, I have created a custom php block with the respective mySQL query. What do I need to do in order to have the custom-php-block return the query result to another funktion (e.g. the pushover message function)

    Thanks!
    Carlos

    #2069

    K.Rens
    Admin bbPress

    Hi Carlos,

    I think you can put the outcome of your query in the $item variable.
    Then inside blocky you can add the variable “item” as en element inside pushover.

    Kind regards,
    K.Rens

2 sujets de 1 à 2 (sur un total de 2)

Vous devez être connecté pour répondre à ce sujet.