diff --git a/bundles/raspberrypi/files/config.txt b/bundles/raspberrypi/files/config.txt index 4c66bcc..00079b2 100644 --- a/bundles/raspberrypi/files/config.txt +++ b/bundles/raspberrypi/files/config.txt @@ -7,6 +7,8 @@ max_framebuffers=2 hdmi_drive=2 force_turbo=1 +gpu_mem=${node.metadata['raspberrypi'].get('gpu_mem', 128)} + % if node.os == 'debian': arm_64bit=1 % endif @@ -14,3 +16,7 @@ arm_64bit=1 % for item in sorted(node.metadata['raspberrypi'].get('config.txt', set())): ${item} % endfor + +% if node.metadata['raspberrypi'].get('camera', False): +start_x=1 +% endif diff --git a/nodes/home/octoprint-vielschichtigkeit.py b/nodes/home/octoprint-vielschichtigkeit.py index bc239f4..b16729b 100644 --- a/nodes/home/octoprint-vielschichtigkeit.py +++ b/nodes/home/octoprint-vielschichtigkeit.py @@ -35,6 +35,9 @@ nodes['home.octoprint-vielschichtigkeit'] = { }, }, }, + 'raspberrypi': { + 'camera': True, + }, 'vm': { 'cpu': 4, 'ram': 1,