Uploading: 231047BD-7179-43DF-9180-C6319F49B3C9.JPG…
Yep, you’re right. A pressurestat controls LMLM steam.
Thanks for your clear instructions - I’m still relatively new to managing my own python environment, so still getting snagged on a few things (but I don’t want to bog down this discussion with that).
- Mac BigSur python3 uses version 3.6.3 - had issues with
venv
so instead using python3.9 (I think I may have installed this some other time while bashing the keyboard);
- needed to install
wheel
to get pip install
working correctly.
I was able to run python3.9 test.py
but about the only thing working for me (or at least returning values) was 2:Status
.
(venv) CMM-C02T722QGTFM:lmdirect ccq$ python3.9 test.py
1=Power, 2=Status, 3=Coffee Temp, 4=Steam Temp, 5=PB on/off, 6=Auto on/off enable/disable, 7=Dose, 8=Tea Dose, 8=PB on/off:
2
{}
1=Power, 2=Status, 3=Coffee Temp, 4=Steam Temp, 5=PB on/off, 6=Auto on/off enable/disable, 7=Dose, 8=Tea Dose, 8=PB on/off:
2
{'FIRMWARE': '2.07', 'MODULE_SER_NUM': 'Sn2010009957', 'POWER': 1, 'TSET_COFFEE': 93.0, 'TSET_STEAM': 0.0, 'ENABLE_PREBREWING': 0, 'TON_PREBREWING_K1': 2.1, 'TON_PREBREWING_K2': 0.0, 'TON_PREBREWING_K3': 0.0, 'TON_PREBREWING_K4': 0.0, 'TOFF_PREBREWING_K1': 2.0, 'TOFF_PREBREWING_K2': 0.0, 'TOFF_PREBREWING_K3': 0.0, 'TOFF_PREBREWING_K4': 0.0, 'DOSE_K1': 0, 'DOSE_K2': 0, 'DOSE_K3': 0, 'DOSE_K4': 0, 'DOSE_K5': 0, 'DOSE_TEA': 0, 'GLOBAL_AUTO': 'Enabled', 'MON_AUTO': 'Enabled', 'TUE_AUTO': 'Enabled', 'WED_AUTO': 'Enabled', 'THU_AUTO': 'Enabled', 'FRI_AUTO': 'Enabled', 'SAT_AUTO': 'Enabled', 'SUN_AUTO': 'Enabled', 'SUN_ON': 5, 'SUN_OFF': 12, 'MON_ON': 5, 'MON_OFF': 12, 'TUE_ON': 5, 'TUE_OFF': 12, 'WED_ON': 5, 'WED_OFF': 12, 'THU_ON': 5, 'THU_OFF': 12, 'FRI_ON': 5, 'FRI_OFF': 12, 'SAT_ON': 5, 'SAT_OFF': 12}
1=Power, 2=Status, 3=Coffee Temp, 4=Steam Temp, 5=PB on/off, 6=Auto on/off enable/disable, 7=Dose, 8=Tea Dose, 8=PB on/off:
1
Traceback (most recent call last):
File "/Users/ccq/Documents/GitHub/lmdirect/test.py", line 134, in <module>
asyncio.run(lm.main())
File "/usr/local/Cellar/[email protected]/3.9.1_2/Frameworks/Python.framework/Versions/3.9/lib/python3.9/asyncio/runners.py", line 44, in run
return loop.run_until_complete(main)
File "/usr/local/Cellar/[email protected]/3.9.1_2/Frameworks/Python.framework/Versions/3.9/lib/python3.9/asyncio/base_events.py", line 642, in run_until_complete
return future.result()
File "/Users/ccq/Documents/GitHub/lmdirect/test.py", line 98, in main
await self.lmdirect.set_power(args[1] == "on")
IndexError: list index out of range
(venv) CMM-C02T722QGTFM:lmdirect ccq$
My repo was a few days old, so did a git pull, and now test.py
is erroring. FYI:
(venv) CMM-C02T722QGTFM:lmdirect ccq$ python3.9 test.py
Traceback (most recent call last):
File "/Users/ccq/Documents/GitHub/lmdirect/test.py", line 142, in <module>
asyncio.run(lm.main())
File "/usr/local/Cellar/[email protected]/3.9.1_2/Frameworks/Python.framework/Versions/3.9/lib/python3.9/asyncio/runners.py", line 44, in run
return loop.run_until_complete(main)
File "/usr/local/Cellar/[email protected]/3.9.1_2/Frameworks/Python.framework/Versions/3.9/lib/python3.9/asyncio/base_events.py", line 642, in run_until_complete
return future.result()
File "/Users/ccq/Documents/GitHub/lmdirect/test.py", line 64, in main
creds = await loop.run_in_executor(None, self.read_config)
File "/usr/local/Cellar/[email protected]/3.9.1_2/Frameworks/Python.framework/Versions/3.9/lib/python3.9/concurrent/futures/thread.py", line 52, in run
result = self.fn(*self.args, **self.kwargs)
File "/Users/ccq/Documents/GitHub/lmdirect/test.py", line 30, in read_config
HOST: data["host"],
KeyError: 'host'
(venv) CMM-C02T722QGTFM:lmdirect ccq$
I’m not sure if these errors are specific to the Linea Mini or something else I need to fix in my python environment. I’m not looking for answers - just thought the output may be of interest to you.