rpi-eink-picture-frame/deploy/templates/eink-show.service.j2

18 lines
615 B
Django/Jinja

[Unit]
Description=Show new photo onto the eink display
[Service]
Type=oneshot
User={{ ansible_user }}
WorkingDirectory={{ code_dest }}
ExecStart=python main.py
Environment="OWN_IMAGE_PERCENT={{ program_variables.OWN_IMAGE_PERCENT }}"
Environment="RECIPIENT={{ program_variables.RECIPIENT }}"
Environment="IMMICH_API_URL={{ program_variables.IMMICH_API_URL }}"
Environment="IMMICH_API_KEY={{ program_variables.IMMICH_API_KEY }}"
Environment="IMMICH_ALBUM_ID={{ program_variables.IMMICH_ALBUM_ID }}"
[Install]
WantedBy=multi-user.target
# this ensures that the service is started after the network is up (@reboot)