Blockly Rule with database query

Free domotica! Forums How can I …? Synology NAS Blockly Rule with database query

This topic contains 1 reply, has 2 voices, and was last updated by  K.Rens 1 year, 11 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #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
    Keymaster

    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

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.