I want to send a command line by MQTT from raspberry pi to my laptop. After search i found MQTT launcher 1 ,i want to send python simple_stream.py
to run simple_stream script in windows ,but i don't know how to put the program and arguments of my command line ( python simple_stream.py) in launcher.conf file instead of the examples of author , this is launcher.conf file of author
logfile = 'logfile'
mqtt_broker = 'localhost' # default: 'localhost'
mqtt_port = 1883 # default: 1883
mqtt_clientid = 'mqtt-launcher-1'
# mqtt_username = 'jane'
# mqtt_password = 'secret'
topiclist = {
# topic payload value program & arguments
"sys/file" : {
'create' : [ '/usr/bin/touch', '/tmp/file.one' ],
'false' : [ '/bin/rm', '-f', '/tmp/file.one' ],
'info' : [ '/bin/ls', '-l', '/tmp/file.one' ],
},
"prog/pwd" : {
None : [ 'pwd' ],
},
"dev/1" : {
None : [ 'ls', '-l', '/' ],
},
"dev/2" : {
None : [ "/bin/echo", "111", "*", "@!@", "222", "@!@", "333" ],
},
}
can you please help me