Skip to content

Commit

Permalink
Support for LCD display added
Browse files Browse the repository at this point in the history
  • Loading branch information
Kumar-laxmi committed Feb 20, 2024
1 parent 60af5df commit 0efb834
Show file tree
Hide file tree
Showing 418 changed files with 6,582 additions and 27,854 deletions.
Binary file modified db.sqlite3
Binary file not shown.
13 changes: 12 additions & 1 deletion manage.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"""Django's command-line utility for administrative tasks."""
import os
import sys
import subprocess


def main():
Expand All @@ -19,4 +20,14 @@ def main():


if __name__ == '__main__':
main()
try:
from rpi_lcd import LCD
import subprocess
lcd = LCD()
ip_addr = str(subprocess.check_output(['hostname', '-I'])).split(' ')[0].replace("b'", "")
lcd.clear()
lcd.text("Server Running on", 1)
lcd.text(ip_addr, 2)
main()
except:
main()
20 changes: 20 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
Adafruit-CharLCD==1.1.1
Adafruit-GPIO==1.0.3
Adafruit-PureIO==1.1.11
ansi2html==1.9.1
appnope==0.1.3
asgiref==3.7.2
asttokens==2.4.1
attrs==23.2.0
blinker==1.7.0
cachelib==0.9.0
cachetools==5.3.2
certifi==2023.11.17
cffi==1.16.0
channels==4.0.0
Expand All @@ -16,15 +22,19 @@ dash-bootstrap-components==1.5.0
dash-core-components==2.0.0
dash-html-components==2.0.0
dash-table==5.0.0
dataclass-wizard==0.22.3
debugpy==1.8.0
decorator==5.1.1
Django==4.2.9
django-crispy-forms==2.1
django-plotly-dash==2.2.2
dpd-components==0.1.0
EditorConfig==0.12.4
executing==2.0.1
Flask==3.0.0
Flask-Caching==2.1.0
fonttools==4.47.0
h11==0.14.0
idna==3.6
importlib-metadata==7.0.1
ipykernel==6.29.0
Expand All @@ -33,15 +43,18 @@ itsdangerous==2.1.2
jedi==0.19.1
Jinja2==3.1.2
joblib==1.3.2
jsbeautifier==1.15.0
jupyter_client==8.6.0
jupyter_core==5.7.1
kiwisolver==1.4.5
MarkupSafe==2.1.3
matplotlib==3.8.2
matplotlib-inline==0.1.6
more-itertools==9.1.0
nest-asyncio==1.6.0
neurokit2==0.2.7
numpy==1.26.3
outcome==1.3.0.post0
packaging==23.2
pandas==2.1.4
parso==0.8.3
Expand Down Expand Up @@ -215,14 +228,18 @@ pyobjc-framework-Vision==10.1
pyobjc-framework-WebKit==10.1
pyorbital==1.8.2
pyparsing==3.1.1
PySocks==1.7.1
python-dateutil==2.8.2
pytz==2023.3.post1
pyzmq==25.1.2
requests==2.31.0
retrying==1.3.4
scikit-learn==1.3.2
scipy==1.11.4
selenium==4.17.2
six==1.16.0
sniffio==1.3.0
sortedcontainers==2.4.0
SoundCard==0.4.2
sounddevice==0.4.6
soundfile==0.12.1
Expand All @@ -232,9 +249,12 @@ tenacity==8.2.3
threadpoolctl==3.2.0
tornado==6.4
traitlets==5.14.1
trio==0.24.0
trio-websocket==0.11.1
typing_extensions==4.9.0
tzdata==2023.4
urllib3==2.1.0
wcwidth==0.2.13
Werkzeug==3.0.1
wsproto==1.2.0
zipp==3.17.0
24 changes: 11 additions & 13 deletions virtualenv/lib/python3.11/site-packages/_distutils_hack/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,9 @@
import os


is_pypy = '__pypy__' in sys.builtin_module_names


def warn_distutils_present():
if 'distutils' not in sys.modules:
return
if is_pypy and sys.version_info < (3, 7):
# PyPy for 3.6 unconditionally imports distutils, so bypass the warning
# https://foss.heptapod.net/pypy/pypy/-/blob/be829135bc0d758997b3566062999ee8b23872b4/lib-python/3/site.py#L250
return
import warnings

warnings.warn(
Expand Down Expand Up @@ -90,15 +83,15 @@ def find_spec(self, fullname, path, target=None):
# optimization: only consider top level modules and those
# found in the CPython test suite.
if path is not None and not fullname.startswith('test.'):
return
return None

method_name = 'spec_for_{fullname}'.format(**locals())
method = getattr(self, method_name, lambda: None)
return method()

def spec_for_distutils(self):
if self.is_cpython():
return
return None

import importlib
import importlib.abc
Expand All @@ -115,7 +108,7 @@ def spec_for_distutils(self):
# setuptools from the path but only after the hook
# has been loaded. Ref #2980.
# In either case, fall back to stdlib behavior.
return
return None

class DistutilsLoader(importlib.abc.Loader):
def create_module(self, spec):
Expand All @@ -142,7 +135,7 @@ def spec_for_pip(self):
Ensure stdlib distutils when running under pip.
See pypa/pip#8761 for rationale.
"""
if self.pip_imported_during_build():
if sys.version_info >= (3, 12) or self.pip_imported_during_build():
return
clear_distutils()
self.spec_for_distutils = lambda: None
Expand Down Expand Up @@ -208,15 +201,20 @@ def __enter__(self):
insert_shim()

def __exit__(self, exc, value, tb):
remove_shim()
_remove_shim()


def insert_shim():
sys.meta_path.insert(0, DISTUTILS_FINDER)


def remove_shim():
def _remove_shim():
try:
sys.meta_path.remove(DISTUTILS_FINDER)
except ValueError:
pass


if sys.version_info < (3, 12):
# DistutilsMetaFinder can only be disabled in Python < 3.12 (PEP 632)
remove_shim = _remove_shim
Binary file not shown.
Binary file not shown.
Loading

0 comments on commit 0efb834

Please sign in to comment.