Skip to content

Commit

Permalink
Merge branch 'main' into prod-lambda
Browse files Browse the repository at this point in the history
  • Loading branch information
Fruittips committed Nov 25, 2023
2 parents c232965 + 5bcc525 commit 9cea5fa
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions lambda/lambda_function.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,13 @@ def lambda_handler(event, context):
except Exception as e:
print(f"Error updating row in supabase: {e}")

return json.dumps({
return {
'statusCode': 200,
'body': json.dumps({
'fire_probability': fire_probability,
'r_value': r_value,
})
})
}

def get_fire_probability (temp, aq_arr , flame_presence, r_value):
p_flame = flame_presence
Expand Down Expand Up @@ -108,7 +108,5 @@ def get_r_value(temp_arr, humidity_arr):
# lambda_handler({
# "rowId":646,
# "temp":30.9,
# "humidity": 72.4,
# "flame": 0,
# "airQuality": 526.858
# }, None)

0 comments on commit 9cea5fa

Please sign in to comment.