Added requirements, the main python file and a nix shell; Updated readme

This commit is contained in:
mia 2025-05-14 13:53:41 +00:00
parent ad1ebace5f
commit b37dc19311
4 changed files with 37 additions and 7 deletions

View file

@ -6,22 +6,42 @@ The Goal is to display and visualize data received/measured from a Raspberry Pi
## Milestone 2
The Raspberry Pi shoul send be integratable to a Home Assistant Server and be used as as sensor input.
The Raspberry Pi should be integratable to a Home Assistant Server and be used as as sensor input and opitionally logic level output.
## Milestone 3
Data should be sent and received via MQTT to an ESP32. The Pi acts as a sensor gateway
Data should be sent and received via MQTT to an ESP32. The Pi acts as a sensor gateway.
# Ausführung
- **Programmiersprache**: Python
- **Libraries**:
# Arbeitsaufträge
# Docs
1. Präsentation, GitHub Einrichtung ()
2.
- `requirements.txt`
This file holds the requirements for pip
- `shell.nix`
This file is only used on nixos and for the nix packagemananger
- `main.py`
The main file for the project
# Arbeitsaufträge / Aufgabeneinteilung
## Zu Vergeben
- Präsentation
- Programme:
- Daten von RPI erfassen und sauber abspeichern
- Daten an einem Webserver anzeigen
| Kieler | Chiara |
| -------------- | ------ |
| Everything Git | |
| | |
| | |
# Credits
`Chiara`
`Kieler`
[Chiara](https://git.miaig.dev/chiara)
[Kieler](https://git.miaig.dev/mia)

0
main.py Normal file
View file

0
requirements.txt Normal file
View file

10
shell.nix Normal file
View file

@ -0,0 +1,10 @@
{ pkgs ? import <nixpkgs> {} }:
(pkgs.buildFHSUserEnv {
name = "pipzone";
targetPkgs = pkgs: (with pkgs; [
python313
python313Packages.pip
python313Packages.virtualenv
]);
runScript = "bash --init-file /etc/profile";
}).env