API-StevenThomi-0.0.1
توضیحات
A temperature and luminosity sensor API package designed for Raspberry Pi
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | API-StevenThomi-0.0.1 |
| نام | API-StevenThomi |
| نسخه کتابخانه | 0.0.1 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Steven Thomi |
| ایمیل نویسنده | stevenkthomi@gmail.com |
| آدرس صفحه اصلی | https://github.com/StevenThomi/eee3097s_project |
| آدرس اینترنتی | https://pypi.org/project/API-StevenThomi/ |
| مجوز | - |
## API Overview
The API contains the following files:
- **Setup.py** - creates the ADC (MCP3008) channel object
- **Sensor.py** - handles the sensor package's activities, qualities, and functionality
The following files illustrate the functioning of the API:
- application_console.py - prints the sensor output to the screen
- application_file.py - prints the sensor output to a text file (data.txt)
The API's functionality is interfaced with the Flask Web Application using **Samba file sharing**.
The API requires the following libraries to run:
- busio
- digitalio
- board
- adafruit_mcp3xxx.mcp3008
- adafruit_mcp3xxx.analog_in
These libraries can be installed on the Raspberry Pi using the following command:
- pip3 install adafruit-circuitpython-mcp3xxx
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.6 | Python |
نحوه نصب
نصب پکیج whl API-StevenThomi-0.0.1:
pip install API-StevenThomi-0.0.1.whl
نصب پکیج tar.gz API-StevenThomi-0.0.1:
pip install API-StevenThomi-0.0.1.tar.gz