I believe it was because the home directory was not empty. I went back to the BrewPI instructions to create the fuscus user using /dev/nul as the skeleton home directory:
Not sure whether it needed to be a member of the groups www-data,dialout brewpi but I figured it would not hurt. Anyway, when I did that I was able to pull the repository. Now I am having the following issue/errors:Code:sudo useradd -m -k /dev/null -G www-data,dialout brewpi
I suspect it's because the calibration code is there now and I don't have calibration.ini set up? I am not sure of the syntax of calibration.ini but I'll wing it and see what happens.Code:Using config file 'fuscus.ini' Using calibration file 'calibrate.ini' Network port: 25518 (not implemented) No rotary encoder specified. No LCD module specified. Hot relay on pin 16 (inverted) Cold relay on pin 18 (inverted) Fridge sensor : 28-0015230d74ee Beer sensor : 28-00152d139cee Ambient sensor: None No door switch. lcd object 6 x 20 created Exception in thread Thread-4: Traceback (most recent call last): File "/usr/lib/python3.4/threading.py", line 920, in _bootstrap_inner self.run() File "/home/fuscus/fuscus/DS18B20.py", line 119, in run self.temperature = temperature + self.calibrationOffset TypeError: unsupported operand type(s) for +: 'NoneType' and 'float' Traceback (most recent call last): File "/home/fuscus/fuscus/fuscus.py", line 37, in <module> import ui File "/home/fuscus/fuscus/ui.py", line 23, in <module> import displayLCD as display File "/home/fuscus/fuscus/displayLCD.py", line 25, in <module> from constants import * File "/home/fuscus/fuscus/constants.py", line 200, in <module> tempControl.fridgeSensor.calibrationOffset = calibrate['offset'].getfloat(ID_fridge,0.0) NameError: name 'calibrate' is not defined
ETA: There is a calibrate.sample.ini that I copied in and edited. Still getting a couple of errors:
Code:Using config file 'fuscus.ini' Using calibration file 'calibrate.ini' Network port: 25518 (not implemented) No rotary encoder specified. No LCD module specified. Hot relay on pin 16 (inverted) Cold relay on pin 18 (inverted) Fridge sensor : 28-0015230d74ee Beer sensor : 28-00152d139cee Ambient sensor: None No door switch. lcd object 6 x 20 created Exception in thread Thread-4: Traceback (most recent call last): File "/usr/lib/python3.4/threading.py", line 920, in _bootstrap_inner self.run() File "/home/fuscus/fuscus/DS18B20.py", line 119, in run self.temperature = temperature + self.calibrationOffset TypeError: unsupported operand type(s) for +: 'NoneType' and 'float' Traceback (most recent call last): File "/home/fuscus/fuscus/fuscus.py", line 37, in <module> import ui File "/home/fuscus/fuscus/ui.py", line 23, in <module> import displayLCD as display File "/home/fuscus/fuscus/displayLCD.py", line 25, in <module> from constants import * File "/home/fuscus/fuscus/constants.py", line 200, in <module> tempControl.fridgeSensor.calibrationOffset = calibrate['offset'].getfloat(ID_fridge,0.0) NameError: name 'calibrate' is not defined
This is a bug. Sorry. If there is no calibration value for a particular sensor it's supposed to default to zero. Looks like I didn't catch that properly. Sorry.