Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show current values when creating a blockly script #1498

Closed
Stroell opened this issue Feb 8, 2024 · 3 comments
Closed

Show current values when creating a blockly script #1498

Stroell opened this issue Feb 8, 2024 · 3 comments

Comments

@Stroell
Copy link

Stroell commented Feb 8, 2024

When creating/troubleshooting a blockly script, it would be super helpful to see the current values of states and e.g. current results of "if" statements at a glance.
Here a basic mockup of what I mean:
BlocklyMockup

You can see directly that current value of "Anwesenheit" is "wahr", the result of the "=" statement is "wahr", the result of the second "=" statement is "falsch" and that the first statement "mache Do something" will be executed.

This could be implemented for a lot of blocks, but I don´t know how complicated that would be.
Also a button would make sense to enable/disable this

@klein0r
Copy link
Collaborator

klein0r commented Feb 8, 2024

In 99% of the cases it is not necessary to use those blocks (e.g. in triggers where you use the given value).

And: Your Blockly script is too complex. A comparison with true or false is redundant code and "sonst falls" should be a normal "sonst". See https://www.youtube.com/watch?v=J9j3K0X9vlc

@Stroell
Copy link
Author

Stroell commented Feb 8, 2024

Hey,
I know your Videos. Thanks for them 👍
This was just one example to show what I mean with the feature request.

So let me take this one. It would be nice if you could see the current value of the variable IAQ, which "und" is currently "true" and which "falls"/"sonst falls" will be executed.

image

PS: After a brave migration to RedisDB (I don´t need instructions for that!!!) I know that a boolean value can be "true", "false" or "NULL", so my bad example from above covers this scenario ;)

@klein0r
Copy link
Collaborator

klein0r commented Feb 9, 2024

It would be nice if you could see the current value of the variable IAQ

That's even harder. Since there is no interface to the variables in a specific script. And those variable blocks are defined by Google.

@klein0r klein0r closed this as not planned Won't fix, can't repro, duplicate, stale May 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants