{"id":23010058,"url":"https://github.com/dmdhrumilmistry/iot-cloud-platform","last_synced_at":"2025-07-26T16:11:15.408Z","repository":{"id":42084713,"uuid":"469344181","full_name":"dmdhrumilmistry/IOT-Cloud-Platform","owner":"dmdhrumilmistry","description":"IOT cloud application to save and fetch data ","archived":false,"fork":false,"pushed_at":"2022-08-06T19:08:14.000Z","size":40,"stargazers_count":0,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-08T07:08:50.070Z","etag":null,"topics":["api","flask","flask-application","iot"],"latest_commit_sha":null,"homepage":"","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dmdhrumilmistry.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-03-13T10:58:00.000Z","updated_at":"2023-10-10T14:16:28.000Z","dependencies_parsed_at":"2022-08-12T04:50:33.577Z","dependency_job_id":null,"html_url":"https://github.com/dmdhrumilmistry/IOT-Cloud-Platform","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmdhrumilmistry%2FIOT-Cloud-Platform","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmdhrumilmistry%2FIOT-Cloud-Platform/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmdhrumilmistry%2FIOT-Cloud-Platform/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmdhrumilmistry%2FIOT-Cloud-Platform/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dmdhrumilmistry","download_url":"https://codeload.github.com/dmdhrumilmistry/IOT-Cloud-Platform/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246847137,"owners_count":20843444,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api","flask","flask-application","iot"],"created_at":"2024-12-15T09:16:49.956Z","updated_at":"2025-04-02T16:15:11.322Z","avatar_url":"https://github.com/dmdhrumilmistry.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# IOT-Cloud-API\n\nCustom Cloud RESTful API written in Python using Flask Framework to save data from the sensors on the server in json format and fetch it later for analysis.\n\n## Installation\n- Clone/Download Project\n  ```bash\n  git clone https://github.com/dmdhrumilmistry/IOT-Cloud-API.git\n  ```\n  \n- Install requirements\n  ```bash\n  pip install -r requirements.txt\n  ```\n  \u003e Note : use `pip3` instead of `pip` on Ubuntu Distro \n  \n- Change Auth key in config.py module\n  ```python\n  # AUTH_KEY = \"Test_Key\"\n  AUTH_KEY = \"S0m3T#1n9_5tr0ng\u002653cR3T\"\n  ```\n  \u003e Note: `AUTH_KEY` will be required to authenticate data publisher and fetcher on the server\n\n- Run the test server using\n  ```bash\n  flask run\n  ```\n \n## Endpoints\n|endpoint|description|\n|:------:|:----------|\n|/|returns Home Page html code|\n|/AUTH_KEY/push_data|authenticates user, saves pushed data on the server and returns the status in json format|\n|/AUTH_KEY/get_data|authenticates user and returns the data on the server in json format|\n\n## Example Test Programs\n- Requirements:\n  - requests\n\n- Push Data to server using python for testing\n  ```python\n  import requests\n  key = \"Test_Key\"\n\n  url = f\"http://127.0.0.1:5000/{key}/push_data\"\n  command = \"push_data\"\n  data = {\n      'node' : \"1\",\n      'sensor' : \"mq135\",\n      'sen_data' : '120',\n  }\n  response = requests.post(url=url, json=data)\n  print(response.content.decode('utf-8'))\n  ```\n- Get data from the server using python for testing\n  ```python\n  import requests\n  key = \"Test_Key\"\n  \n  url = f\"http://127.0.0.1:5000/{key}/get_data\"\n  response = requests.post(url={url}, json=data)\n  print(response.content.decode('utf-8'))\n  ```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdmdhrumilmistry%2Fiot-cloud-platform","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdmdhrumilmistry%2Fiot-cloud-platform","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdmdhrumilmistry%2Fiot-cloud-platform/lists"}