From 7a4cc4bc7053b91e387cdd842ad08de4b4657902 Mon Sep 17 00:00:00 2001 From: mcguirepr89 Date: Wed, 2 Feb 2022 08:15:13 -0500 Subject: [PATCH] adding disclaimer to email_template --- scripts/birdweather_request.php | 2 +- scripts/email_template | 13 +++++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 scripts/email_template diff --git a/scripts/birdweather_request.php b/scripts/birdweather_request.php index b52c044..9795e9e 100644 --- a/scripts/birdweather_request.php +++ b/scripts/birdweather_request.php @@ -4,7 +4,7 @@ if (file_exists('/home/pi/BirdNET-Pi/thisrun.txt')) { } elseif (file_exists('/home/pi/BirdNET-Pi/firstrun.ini')) { $config = parse_ini_file('/home/pi/BirdNET-Pi/firstrun.ini'); } -$template = file_get_contents("email_template.html"); +$template = file_get_contents("email_template"); foreach($config as $key => $value) { diff --git a/scripts/email_template b/scripts/email_template new file mode 100644 index 0000000..7b08789 --- /dev/null +++ b/scripts/email_template @@ -0,0 +1,13 @@ +Hi, Tim, and thank you so much for BirdWeather.com! +%0A%0A +Below is the information I would like to use to request a BirdWeather ID +%0A%0A +Latitude={{ LATITUDE }}%0A +Longitude={{ LONGITUDE }}%0A +Location= [ Create a location name ]%0A +%0A%0A +Thank you so much!%0A +[ Your Name Here ] + +Disclaimer: By requesting this BirdWeather ID, I acknowledge that my location +and recording data will be made public.