Change url for fetch image

This commit is contained in:
Gal 2024-04-06 00:15:05 +02:00
parent 83ebf548f5
commit c19d301119
Signed by: gal
GPG Key ID: F035BC65003BC00B
2 changed files with 7 additions and 1 deletions

View File

@ -1,7 +1,11 @@
import requests
from dotenv import load_dotenv
import os
load_dotenv()
def fetch_image():
api_url = "https://st2.depositphotos.com/22162388/50231/i/450/depositphotos_502316854-stock-photo-api-application-programming-interface-function.jpg" # Replace this with the actual API URL
api_url = os.getenv("IMG_HOST_URL")
try:
response = requests.get(api_url)

2
rpi/requirements.txt Normal file
View File

@ -0,0 +1,2 @@
requests
python-dotenv