ClimateNetTumoLabs / ClimateNetTumoLabs/lambda-functions

Fix API Gateways

Open
#3 1 comment 0 reactions 1 assignee Assigned to @areviksol View on GitHub
Dominant language
Python
Stars
0
Forks
0
PR merge metrics
No merged PRs in 30d

Description

API Endpoint:
https://mrecurtz89.execute-api.us-east-1.amazonaws.com/getData
Parameters:
device_id (required): Unique identifier for the device.
start_time (Not required): Start date and time for the weather data retrieval (format: YYYY-MM-DD).
end_time (Not required): End date and time for the weather data retrieval (format: YYYY-MM-DD).
Example Requests:
GET https://mrecurtz89.execute-api.us-east-1.amazonaws.com/getData?device_id=8&start_time=2023-11-10&end_time=2024-1-8
Retrieve Last 24 Hours Data:
If you use the following link without specifying start_time and end_time, you will receive the weather data for the last 24 hours.

https://mrecurtz89.execute-api.us-east-1.amazonaws.com/getData?device_id=8
Response:
The API returns weather data in JSON format, containing relevant information based on the provided parameters.

Usage:
Make a GET request to the API endpoint (https://mrecurtz89.execute-api.us-east-1.amazonaws.com/getData) with the parameters (device_id, start_time, end_time).
Parse the JSON response to extract the weather data.
Utilize the retrieved weather data in your application as needed, such as displaying it to users, performing analysis, or integrating it with other services.
Note: Ensure that you handle any errors gracefully, such as invalid parameters or network issues, to provide a seamless experience for your users.

Please use this doc and create same functionality

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.