Skip to content

Example configurations

kelvinhall05 edited this page Jun 1, 2021 · 1 revision

At minimum, your config.cfg needs a resolution, a scale factor, and a refresh time (set during initial setup). Here's what that basic config may look like:

# Refresh time (seconds): Higher is better to prevent API spam, lower gives more up-to-date info
60
# Use this area to set up output types. Start with the output resolution in the form 1920x1080s4, where 4 is the scale factor..
# On a new line, write the full file output path.
# On another line, write a command to run after generating the photo.
# On another line, write a command to run before generating the photo.
# If you only add one command, it will run after generating the photo.
# Finally, write 'delete' on another line at the end of your entry if you want the file to be deleted after the 'after' command is ran.
# Use a hashtag on a newline to seperate output entries.
# Ex:
# 1920x1080s4
# /home/RaddedMC/SmartFrame1080.png
# bash /home/RaddedMC/Scripts/SmartFrameOut.sh
# bash /home/RaddedMC/Scripts/SmartFrameIn.sh
# delete
# #
1080x1920s8
/home/raddedmc/smartframe1080.png
#

Here's a more advanced configuration that generates two images of differing resolution and scale factor, and that refreshes every 30 seconds:

# Refresh time (seconds): Higher is better to prevent API spam, lower gives more up-to-date info
30
# Use this area to set up output types. Start with the output resolution in the form 1920x1080s4, where 4 is the scale factor..
# On a new line, write the full file output path.
# On another line, write a command to run after generating the photo.
# On another line, write a command to run before generating the photo.
# If you only add one command, it will run after generating the photo.
# Finally, write 'delete' on another line at the end of your entry if you want the file to be deleted after the 'after' command is ran.
# Use a hashtag on a newline to seperate output entries.
# Ex:
# 1920x1080s4
# /home/RaddedMC/SmartFrame1080.png
# bash /home/RaddedMC/Scripts/SmartFrameOut.sh
# bash /home/RaddedMC/Scripts/SmartFrameIn.sh
# delete
# #
1920x1080s4
/home/raddedmc/smartframe1080.png
#
1280x720s2
/home/raddedmc/smartframe720.jpg
#

Lastly, this config refreshes every 45 seconds, runs before.sh first, then generates three images of differing resolution and scale factor, then runs after.sh, and finishes by deleting the three generated images:

# Refresh time (seconds): Higher is better to prevent API spam, lower gives more up-to-date info
60
# Use this area to set up output types. Start with the output resolution in the form 1920x1080s4, where 4 is the scale factor..
# On a new line, write the full file output path.
# On another line, write a command to run after generating the photo.
# On another line, write a command to run before generating the photo.
# If you only add one command, it will run after generating the photo.
# Finally, write 'delete' on another line at the end of your entry if you want the file to be deleted after the 'after' command is ran.
# Use a hashtag on a newline to seperate output entries.
# Ex:
# 1920x1080s4
# /home/RaddedMC/SmartFrame1080.png
# bash /home/RaddedMC/Scripts/SmartFrameOut.sh
# bash /home/RaddedMC/Scripts/SmartFrameIn.sh
# delete
# #
1920x1080s4
/home/raddedmc/smartframe1080.png
#
1280x720s2
/home/raddedmc/smartframe720.jpg
#
800x1280s6
/home/raddedmc/smartframe1280.png
/home/raddedmc/scripts/after.sh
/home/raddedmc/scripts/before.sh
delete
#