{"id":19098209,"url":"https://github.com/hydr0nium/waste_watcher_webserver","last_synced_at":"2025-04-18T16:32:14.222Z","repository":{"id":247759928,"uuid":"803229257","full_name":"hydr0nium/waste_watcher_webserver","owner":"hydr0nium","description":null,"archived":true,"fork":false,"pushed_at":"2024-07-10T14:47:29.000Z","size":104,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-22T09:24:23.722Z","etag":null,"topics":["arduino","bootstrap","django","python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hydr0nium.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-05-20T10:22:14.000Z","updated_at":"2024-08-07T16:08:18.000Z","dependencies_parsed_at":"2024-07-10T13:10:31.874Z","dependency_job_id":null,"html_url":"https://github.com/hydr0nium/waste_watcher_webserver","commit_stats":null,"previous_names":["hydr0nium/waste_watcher_webserver"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hydr0nium%2Fwaste_watcher_webserver","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hydr0nium%2Fwaste_watcher_webserver/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hydr0nium%2Fwaste_watcher_webserver/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hydr0nium%2Fwaste_watcher_webserver/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hydr0nium","download_url":"https://codeload.github.com/hydr0nium/waste_watcher_webserver/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249517959,"owners_count":21284866,"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":["arduino","bootstrap","django","python"],"created_at":"2024-11-09T03:44:29.646Z","updated_at":"2025-04-18T16:32:13.959Z","avatar_url":"https://github.com/hydr0nium.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Waste watcher\n\nAll of the server is located in the `watch_watcher` folder. The respective main files for the server are found in the subfolder with the same name. HTML and CSS files can be found in the `templates` and `static` folder respectively. The main functionality is found in the `views.py` file. `urls.py` implements the routes that can be accessed by the webbrowser and linkes them to the `views.py`. `models.py` contains the blueprints for the models that are used as database tables. The source code of the microcontroller can be found in the `src_microcontroller`.\n\nTo start the server run: `python manage.py runserver` or `python manage.py runserver 0.0.0.0:8000` for running it on all interfaces (You might need to install django via pip `pip install django`)\n\nAlso if the server doesn't work try running `python manage.py makemigrations` and `python manage.py migrate`\n\n# Testing\n\nYou can access a control panel at `/api/controls`. The access on the webserver is managed through Caddy and thus not part of this repo.\n\n# Githooks\n\nTo use the githooks to run tests before push please use this command:\n\n`git config core.hooksPath .githooks/windows` for Windows\n\n`git config core.hooksPath .githooks/linux` for linux\n\n# Dependencies:\n\n`pip install -r requirements.txt`\n\nIf you are running the server locally then push notifications only work on chromium based browsers and need to be added under chrome://flags and \"Insecure origins treated as secure\" needs to be enabled.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhydr0nium%2Fwaste_watcher_webserver","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhydr0nium%2Fwaste_watcher_webserver","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhydr0nium%2Fwaste_watcher_webserver/lists"}