Looks very good, your USB dongle is attachted to /dev/ttyUSB0
That was correct too, you are just missing the module minimalmodbus. Install it and run nilan.py again…
sudo apt-get -y install python-pip
sudo pip install pyserial minimalmodbus
./nilan.py
You should see something like that
TESTING Nilan Connection
__main__.Nilan<id=0xb6c779e0, address=30, mode=rtu, close_port_after_each_call=False, precalculate_read_size=True, debug=True, serial=Serial<id=0xb6c7b3b0, open=True>(port='/dev/ttyUSB0', baudrate=19200, bytesize=8, parity='E', stopbits=1, timeout=1.0, xonxoff=False, rtscts=False, dsrdtr=False)>
MinimalModbus debug mode. Writing to instrument (expecting 7 bytes back): '\x1e\x03\x03\xeb\x00\x01\xf6\x15'
MinimalModbus debug mode. No sleep required before write. Time since previous read: 1518207950131.8 ms, minimum silent period: 2.01 ms.
MinimalModbus debug mode. Response from instrument: '\x1e\x03\x02\x00\x01\xecF' (7 bytes), roundtrip time: 18.1 ms. Timeout setting: 1000.0 ms.
old userVentSet: 1
new userVentSet: 2
Connection to the Nilan instrument looks good!