[Screeninvader] [Janosh] ZMQ Support

Amir Hassan amir at viel-zu.org
Mon Mar 16 16:42:20 CET 2015


i implemented zeromq support for janosh. that means scripts can now  
subscribe to key changes.

The following script waits for changes to the key /val and prints "hello"  
everytime it changes:

<code>
#!/usr/local/bin/janosh -f

function hello()
	print("hello")
end

Janosh:subscribe("/val", hello)
</code>

Note: you can subscribe to several keys in the same script.

greets,
amir



More information about the Screeninvader mailing list