Page 3 of 3
Re: Math operators and Blocking
Posted: Sunday 28 October 2018 21:06
by ebretteville
Re: Math operators and Blocking
Posted: Monday 29 October 2018 7:49
by misko903
Thanks
Why it is not supported native in Dz? It is a must in a programming language!
Re: Math operators and Blocking
Posted: Monday 29 October 2018 8:35
by ebretteville
Yes, true, especially if you wan't to build a software thermostat and you need to make average and mathematical operations.
Re: Math operators and Blocking
Posted: Saturday 10 November 2018 9:36
by StasDemydiuk
Math operators should became available by default in this PR (
https://github.com/domoticz/domoticz/pull/2857)
Re: Math operators and Blocking
Posted: Saturday 05 January 2019 21:09
by dziadzi
I still don't see Math operations in Blockly after update. My current version is Beta version: 4.10317 Build Hash: 2ccf9db7 Compile Date: 2019-01-05 15:54:06
Re: Math operators and Blocking
Posted: Saturday 12 January 2019 13:42
by domoticzag1
Bump! would also love to see this functionality in blockly!
Re: Math operators and Blocking
Posted: Saturday 12 January 2019 18:36
by salopette
not with me either
Re: Math operators and Blocking
Posted: Sunday 19 April 2020 14:45
by microchip1974
please add math operations in blockly by default!
Re: Math operators and Blocking
Posted: Sunday 03 May 2020 11:46
by Pegozz
Please add math operations in block programming.
additions, subtractions and hysteresis with the result insertion in a variable or counter cell, would be a good starting point.
Re: Math operators and Blocking
Posted: Sunday 03 May 2020 11:48
by salopette
Please! Please! Please!
Re: Math operators and Blocking
Posted: Tuesday 05 May 2020 14:13
by jvrr
Maybe it is not cool to use Blockly...
I'm a new to Domoticz and I just want to quit because the standard function of Domoticz was not great and I haven't got the time to learn a scripting language.
Then I found out there was Blockly , easy and fast to use.
So I sticked with Domoticz
I think if blocky was more power, more users will come.
Re: Math operators and Blocking
Posted: Tuesday 05 May 2020 15:01
by salopette
bei Iobroker people mainly use Blockly!
And that's really cool!
Re: Math operators and Blocking
Posted: Sunday 05 July 2020 16:08
by Patricen
@ Gizmocuz
I'm also eager getting natively within domoticz for people who are not friendly with lua coding ! What about adding this ?
Re: Math operators and Blocking
Posted: Sunday 05 July 2020 20:49
by Patricen
hello @ebretteville,
I tried adding toolbox.xml and eventsframe.xml in www folder but it looks like I've missed something. Can you please guide me through the setup procedure?
Thanks a lot!
Re: Math operators and Blocking
Posted: Friday 24 July 2020 22:22
by Alain
I've added toolbox.xml and eventsframe.html to the www folder, restarted Domoticz and cleared browser cache, but not seeing anything show up. I would love to see Math functions too. I'm wanting to control devices by temperature setpoints. Even the big name building automation systems like Johnson Controls, Trend, Sauter, etc use function blocks to write software. They don't program in scripts.
Re: Math operators and Blocking
Posted: Saturday 08 October 2022 13:23
by mjray
I was looking for the math blocks to do some simple maths with temperatures too, so I found this discussion.
It looks from the end of
https://github.com/domoticz/domoticz/issues/3724 that this is stuck because Domoticz needs code added to support the maths blocks. I think it might be to translate the math blocks into some scripting language. I'm not sure why that's needed because I thought Blockly already had translations for the core blocks like Math into Lua and Python which Domoticz can be scripted in, so I wonder if Domoticz is using Blockly to generate dzVents, but that seems like a lot of hard work and I'm not sure what benefit it would give.
Anyway, a naïve attempt to replace the blockly folder with a copy of the latest version of blockly fails messily, so I think we have to wait for the core devs to upgrade it.
Re: Math operators and Blocking
Posted: Monday 28 August 2023 22:56
by ssk17051980
i want to do this
i do not have math on blocky.
if i gone change that xml file, i gone lose device TAB, etc
any ideea ?
Re: Math operators and Blocking
Posted: Monday 28 August 2023 23:22
by waltervl
Math in blocky is not supported. Is too difficult to implement. If you need math switch over to dzvents scripting.
Re: Math operators and Blocking
Posted: Tuesday 29 August 2023 16:45
by ssk17051980
i do not know dzvents
Re: Math operators and Blocking
Posted: Tuesday 29 August 2023 16:57
by waltervl
ssk17051980 wrote: ↑Tuesday 29 August 2023 16:45
i do not know dzvents
check
viewtopic.php?t=18143