Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 5a737c931c | |||
| 181a395b4d |
+1
-1
@@ -4,7 +4,7 @@ FROM python:3.11-slim
|
||||
WORKDIR /cloud
|
||||
|
||||
# DEBUG
|
||||
RUN apt update && apt install -y dnsutils iputils-ping
|
||||
# RUN apt update && apt install -y dnsutils iputils-ping
|
||||
|
||||
# Copy the requirements file and install dependencies
|
||||
COPY cloud/requirements.txt .
|
||||
|
||||
+2
-1
@@ -4,6 +4,7 @@ import uuid
|
||||
from flask import Flask, request, jsonify
|
||||
from pymongo import MongoClient
|
||||
from tools.aichat import generate
|
||||
from shared import config
|
||||
|
||||
app = Flask(__name__)
|
||||
|
||||
@@ -95,4 +96,4 @@ def device_network():
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
app.run(debug=True)
|
||||
app.run(debug=config.DEBUG)
|
||||
@@ -15,8 +15,9 @@
|
||||
import time,sys
|
||||
import RPi.GPIO as GPIO
|
||||
import smbus
|
||||
from shared import config
|
||||
|
||||
debug = 0
|
||||
debug = config.DEBUG
|
||||
# use the bus that matches your raspi version
|
||||
rev = GPIO.RPI_REVISION
|
||||
if rev == 2 or rev == 3:
|
||||
|
||||
Reference in New Issue
Block a user