File tree Expand file tree Collapse file tree 6 files changed +5
-14
lines changed
planktoscopehat/planktoscope
processing/segmenter/planktoscope
distro/setup/planktoscope-app-env/node-red-frontend Expand file tree Collapse file tree 6 files changed +5
-14
lines changed Original file line number Diff line number Diff line change 11# TODO: keep this as the default path, but allow changing it with an environment variable
2- MACHINE_NAME_PATH = '/var/lib/planktoscope /machine-name'
2+ MACHINE_NAME_PATH = '/run /machine-name'
33
44def load_machine_name (path = MACHINE_NAME_PATH ):
55 """Returns the machine name specified by the file at MACHINE_NAMEPATH.
Original file line number Diff line number Diff line change 11# TODO: keep this as the default path, but allow changing it with an environment variable
2- MACHINE_NAME_PATH = '/var/lib/planktoscope /machine-name'
2+ MACHINE_NAME_PATH = '/run /machine-name'
33
44def load_machine_name (path = MACHINE_NAME_PATH ):
55 """Returns the machine name specified by the file at MACHINE_NAMEPATH.
Original file line number Diff line number Diff line change 11# TODO: keep this as the default path, but allow changing it with an environment variable
2- MACHINE_NAME_PATH = '/var/lib/planktoscope /machine-name'
2+ MACHINE_NAME_PATH = '/run /machine-name'
33
44def load_machine_name (path = MACHINE_NAME_PATH ):
55 """Returns the machine name specified by the file at MACHINE_NAMEPATH.
Original file line number Diff line number Diff line change @@ -20,15 +20,6 @@ case "$hardware_type" in
2020 ;;
2121esac
2222
23- # Prepare tool to generate machine names based on serial numbers
24- # Note: the tool itself is deployed/managed by Forklift.
25- # TODO: remove this by updating the Node-RED frontend and Python backend:
26- # Add a symlink at /var/lib/planktoscope/machine-name for backwards-compatibility with the Node-RED
27- # frontend and Python backend, which are not yet updated to check /run/machine-name instead:
28- sudo mkdir -p /var/lib/planktoscope
29- sudo rm -f /var/lib/planktoscope/machine-name
30- sudo ln -s /run/machine-name /var/lib/planktoscope/machine-name
31-
3223# Install dependencies
3324# smbus is needed by some python3 nodes in the Node-RED dashboard for the Adafruit HAT.
3425# Since the Node-RED systemd service runs as the pi user by default (and we don't override that
Original file line number Diff line number Diff line change 78847884 "type" : " file in" ,
78857885 "z" : " 1371dec5.76e671" ,
78867886 "name" : " Get machine name" ,
7887- "filename" : " /var/lib/planktoscope /machine-name" ,
7887+ "filename" : " /run /machine-name" ,
78887888 "filenameType" : " str" ,
78897889 "format" : " utf8" ,
78907890 "chunk" : false ,
Original file line number Diff line number Diff line change 77437743 "type" : " file in" ,
77447744 "z" : " 1371dec5.76e671" ,
77457745 "name" : " Get machine name" ,
7746- "filename" : " /var/lib/planktoscope /machine-name" ,
7746+ "filename" : " /run /machine-name" ,
77477747 "filenameType" : " str" ,
77487748 "format" : " utf8" ,
77497749 "chunk" : false ,
You can’t perform that action at this time.
0 commit comments