week3Flask

This commit is contained in:
mohammedcifci78
2024-02-28 12:09:36 +01:00
parent ef18410631
commit fc76dc14a3
6 changed files with 67 additions and 43 deletions

View File

@@ -11,6 +11,8 @@ def database_connect():
database="goodgarden"
)
# Function for creating data in the database based on battery voltage information from the API
def create_data_from_api(url, access_token, repeat_count=5):
for _ in range(repeat_count):