Blockly export

Moderator: leecollings

Post Reply
User avatar
thecosmicgate
Posts: 188
Joined: Monday 06 April 2015 14:37
Target OS: Linux
Domoticz version: newest
Location: The Netherlands / Hoeven
Contact:

Blockly export

Post by thecosmicgate »

Is there a way to export only the blocky's ?
And a way to import them again?

Why: I've got a running Domo on these latest stable , but when export the db from the stable and want to import this on the beta test i'am running , this beta Domo instantly crashes . So I want to rebuild my invironment but i I don't want to redo the blocky's because there are some "complex" ones

Sent from my SM-G935F using Tapatalk

It's nice to be important, but it's more important to be nice
Scooter ;)
blauwebuis
Posts: 331
Joined: Wednesday 21 December 2016 9:11
Target OS: Raspberry Pi / ODroid
Domoticz version: current
Contact:

Re: Blockly export

Post by blauwebuis »

Yes there is. I recently built this functionality into the Aurora theme.

Here's an example of the export code it creates:

name=blockly%20export%20example&interpreter=Blockly&eventtype=All&xml=%3Cxml%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxhtml%22%3E%3Cblock%20type%3D%22domoticzcontrols_if%22%20id%3D%22%5DoV%2B%5DzVsU%7DO_G%5BON%5B-g%60%22%20x%3D%22295%22%20y%3D%2274%22%3E%3Cvalue%20name%3D%22IF0%22%3E%3Cblock%20type%3D%22logic_compare%22%20id%3D%22M6Wp*A1g1w%7B%25TorXyyN5%22%3E%3Cfield%20name%3D%22OP%22%3EEQ%3C%2Ffield%3E%3Cvalue%20name%3D%22A%22%3E%3Cblock%20type%3D%22switchvariablesAF%22%20id%3D%22R%3D6CRQ!*olicH9DK)A%3Bb%22%3E%3Cfield%20name%3D%22Switch%22%3E28%3C%2Ffield%3E%3C%2Fblock%3E%3C%2Fvalue%3E%3Cvalue%20name%3D%22B%22%3E%3Cblock%20type%3D%22logic_states%22%20id%3D%22%5El_%3D)%3D!EpUMj%3FN2O)%3A%7DJ%22%3E%3Cfield%20name%3D%22State%22%3EOn%3C%2Ffield%3E%3C%2Fblock%3E%3C%2Fvalue%3E%3C%2Fblock%3E%3C%2Fvalue%3E%3Cstatement%20name%3D%22DO0%22%3E%3Cblock%20type%3D%22logic_set%22%20id%3D%22s%2CgW%3D%7B8%2CaRSgjyM%3AEH_k%22%3E%3Cvalue%20name%3D%22A%22%3E%3Cblock%20type%3D%22switchvariablesSZ%22%20id%3D%22wv8p*%3Fv4Y%2Bsw%7Cf(V~K%3Bg%22%3E%3Cfield%20name%3D%22Switch%22%3E5%3C%2Ffield%3E%3C%2Fblock%3E%3C%2Fvalue%3E%3Cvalue%20name%3D%22B%22%3E%3Cblock%20type%3D%22logic_states%22%20id%3D%22zA%3Ap-kd%5EEbh2B%3Dp~Q3XN%22%3E%3Cfield%20name%3D%22State%22%3EOn%3C%2Ffield%3E%3C%2Fblock%3E%3C%2Fvalue%3E%3C%2Fblock%3E%3C%2Fstatement%3E%3C%2Fblock%3E%3C%2Fxml%3E
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest