Using Homey script output in a flow

When i run the following code via the webapi: Homey.logic.getVariables();
I get a json back with all data i want to use in Homey.

How can i dump this data in a text card so i can write it into a log?

I installed Homey script and run that command but i get errors and i cannot get it into a text card to use in my flows.

Well basicly:

return JSON.stringify(await Homey.logic.getVariables());

image

[TEF:FLOWS:H4sIAAAAAAACA21QwWqEMBD9lWVOu2BEE9doemsplB5aqNBL6WHMjm7AVYmRroj/3phee5gZeO8xM++t4ECtoIdbjO7quy9aJm3NGIgeFLzsUPUHbVsECOprBeMZUSZIMuGsSKVmWZ4XrE6bnAl5FpgQFxILiMKS5zvexo4Oj8I6DxEoZ2eKQO9XBC/LIhU5kzI7s0zIjNWSlwypyXgjeSJS2nV3UHkSwQKq8GPwa8O7CsdR/W8hCn/auX8aLvRBbrb9VDlr+tZT3iGgdmboIbjac7jQrg/Cw2v1/hZPQW2a5Yg/aNwhpBF3Q2t03JL7RGuw7mg6nk4PPp5t+95+AX1E1zdVAQAA]

The Text-Tag from this card can be written how you would like.

1 Like

Here’s also a nice script.

Thx.

The script idea works, maybe someone can implement it in a logging (or other) app :slight_smile: so it can be used by everyone very easily using just flow cards…