-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #110 from Tronje-the-Falconer/entwicklung
V4.0.0
- Loading branch information
Showing
182 changed files
with
14,544 additions
and
7,891 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
# For more options and information see | ||
# http://rptl.io/configtxt | ||
# Some settings may impact device functionality. See link above for details | ||
|
||
# Uncomment some or all of these to enable the optional hardware interfaces | ||
#dtparam=i2c_arm=on | ||
#dtparam=i2s=on | ||
#dtparam=spi=on | ||
dtparam=uart0 | ||
|
||
# --------------------- pi-ager settings --------- | ||
# Use Pi-Ager Pins 11/13 GPIO 17/27 for I2C | ||
dtoverlay=i2c-gpio,bus=3,i2c_gpio_sda=17,i2c_gpio_scl=27 | ||
# Use Pi-Ager Pin 16 for MCP3204 | ||
dtoverlay=spi1-1cs,cs0_pin=16 | ||
# ----------------------------------------------- | ||
|
||
# Enable audio (loads snd_bcm2835) | ||
dtparam=audio=on | ||
|
||
# Additional overlays and parameters are documented | ||
# /boot/firmware/overlays/README | ||
|
||
# Automatically load overlays for detected cameras | ||
camera_auto_detect=1 | ||
|
||
# Automatically load overlays for detected DSI displays | ||
display_auto_detect=1 | ||
|
||
# Automatically load initramfs files, if found | ||
auto_initramfs=1 | ||
|
||
# Enable DRM VC4 V3D driver | ||
dtoverlay=vc4-kms-v3d | ||
max_framebuffers=2 | ||
|
||
# Don't have the firmware create an initial video= setting in cmdline.txt. | ||
# Use the kernel's default instead. | ||
disable_fw_kms_setup=1 | ||
|
||
# Disable compensation for displays with overscan | ||
disable_overscan=1 | ||
|
||
# Run as fast as firmware / board allows | ||
arm_boost=1 | ||
|
||
[cm4] | ||
# Enable host mode on the 2711 built-in XHCI USB controller. | ||
# This line should be removed if the legacy DWC2 controller is required | ||
# (e.g. for USB device mode) or if USB support is not required. | ||
otg_mode=1 | ||
|
||
[all] | ||
|
||
enable_uart=1 | ||
# ------------------------------ pi-ager settings ----------------- | ||
dtoverlay=miniuart-bt | ||
# force_turbo=1 | ||
# ----------------------------------------------------------------- | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
# Initial Konfiguration | ||
# Pi-Ager | ||
|
||
# Standard Hostname Pi-Ager | ||
# Standard Passwoerter für alle raspberry | ||
# | ||
# Nur ausgefüllte Werte werden gesetzt | ||
# Die Variablennamen dürfen nicht verändert werden! | ||
# Wenn die Werte Sonderzeichen wie /?}][{|@!"§$%&-_.:,;#+~* oder Leerzeichen enthalten, | ||
# müssen die Werte in 'Single Quotes' gesetzt werden. 'Single Quotes' dürfen dann nicht | ||
# Bestandteil des Wertes sein! | ||
# | ||
# Z.B.: wlankey='FRITZ!Box 7490 |&;()<>"\$`^~@{}.' | ||
# | ||
# Logfile setup.log wird unter Linux im Verzeichnis /boot/firmware/ angelegt, | ||
# und unter Windows mit der SD-Card in einem USB Lesegerät im Drive 'bootfs' im Verzeichnis /. | ||
# | ||
|
||
# Hostname, wie soll der Raspberry Pi im Netzwerk heissen: | ||
piname='pi-ager' | ||
|
||
# Passwort für Benutzer pi: | ||
pipass='raspberry' | ||
|
||
# Passwort für Benutzer root: | ||
rootpass='raspberry' | ||
|
||
# Passwort für Benutzer pi-ager auf der Webiste settings, admin, webcam: | ||
webguipw='raspberry' | ||
|
||
# Passwort für Zugriff auf Datenbankverwaltung phpliteadmin: | ||
dbpw='raspberry' | ||
|
||
#-------------------------------------------------------------------------------- | ||
# Pi-Ager funktioniert auch ohne Router und ohne Internet Verbindung, | ||
# denn im Pi-Ager steht simultan neben einer Verbindung mit einem Internet Router | ||
# ein Accesspoint zur Verfügung. | ||
# Der Accesspoint kann via Smartphone oder Tablet erreicht werden. | ||
# Der Pi-Ager Accesspoint hat die WLAN SSID 'pi-ager' mit dem Default-Passwort '1234567890'. | ||
# Der Pi-Ager ist dann über die IP Adresse 10.0.0.1 via SSH ereichbar. | ||
# Der Pi-Ager Webserver kann mit einem Browser unter der URL http://10.0.0.1/ erreicht werden. | ||
# Bei der erstmaligen Verbindung zum Accesspoint erscheint auch ein 'captive portal' mit | ||
# Hinweisen zum Setup einer Verbindung zu einem WLAN Router. | ||
# Auf der ADMIN Seite können dann Datum und Uhrzeit gesetzt werden | ||
# und auch die Parameter für einen WLAN Router (SSID und Password). | ||
# Das Default-Passwort für den Accesspoint kann auf der ADMIN-Seite geändert werden. | ||
#------------------------------------------------------------------------------- | ||
|
||
# WLAN Netzwerkname: | ||
wlanssid='your WLAN SSID' | ||
|
||
# WLAN Schlüssel (mindesten 8 Zeichen): | ||
wlankey='your WLAN key' | ||
|
||
# ISO code your country, e.g. DE, GB: | ||
country='DE' | ||
|
||
# Temperature/Humidity sensor attached to pi-ager: | ||
# Supported types are : DHT11, DHT22, SHT75, SHT85, SHT3x, SHT3x-mod, AHT1x, AHT1x-mod, AHT2x, AHT30, SHT4x-A, SHT4x-B, SHT4x-C | ||
sensor='SHT3x' | ||
|
||
# hmi display device name: | ||
# valid device names: NX3224K028 or NX3224T028 or NX3224F028 | ||
# z.B. : hmidisplay='NX3224K028' | ||
hmidisplay= | ||
|
||
# setup.txt nach boot löschen? leer lassen für löschen oder 1 für behalten | ||
keepconf=1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
[Unit] | ||
Description=Start main routine of Pi-Ager | ||
After=network-online.target | ||
After=bluetooth.target | ||
Wants=network-online.target | ||
|
||
[Service] | ||
Type=simple | ||
ExecStart=python3 /opt/pi-ager/main.py 1>/dev/null 2>&1 | ||
ExecStartPre=ln -sf /dev/ttyAMA0 /dev/serial0 | ||
PIDFile=/tmp/pi-ager_main.pid | ||
StandardOutput=null | ||
StandardError=null | ||
|
||
[Install] | ||
Alias=pi-ager.service | ||
WantedBy=multi-user.target |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
[Unit] | ||
Description=Automatsches Installationsscript für pi-ager zum Setzen von Passwörter und WIFI-Zugang, abhängig von setup.txt in /boot/firmware | ||
# Before=rc-local.service lighttpd.service | ||
Before=rc-local.service | ||
After=NetworkManager.service | ||
|
||
[Service] | ||
Type=oneshot | ||
ExecStart=/usr/local/bin/setup_pi-ager.sh | ||
ExecStartPre=ln -sf /dev/ttyAMA0 /dev/serial0 | ||
StandardOutput=append:/boot/firmware/setup.log | ||
StandardError=append:/boot/firmware/setup.log | ||
|
||
[Install] | ||
WantedBy=multi-user.target |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# Copyright (c) 2012-2021 Ben Croston | ||
# | ||
# Permission is hereby granted, free of charge, to any person obtaining a copy of | ||
# this software and associated documentation files (the "Software"), to deal in | ||
# the Software without restriction, including without limitation the rights to | ||
# use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies | ||
# of the Software, and to permit persons to whom the Software is furnished to do | ||
# so, subject to the following conditions: | ||
# | ||
# The above copyright notice and this permission notice shall be included in all | ||
# copies or substantial portions of the Software. | ||
# | ||
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
# SOFTWARE. | ||
|
||
"""This package provides a Python module to control the GPIO on a Raspberry Pi""" | ||
|
||
from main.RPi._GPIO import * | ||
|
||
VERSION = '0.7.1a4' |
Binary file added
BIN
+318 Bytes
RPi5/opt/pi-ager/main/RPi/GPIO/__pycache__/__init__.cpython-311.pyc
Binary file not shown.
Binary file not shown.
Binary file not shown.
File renamed without changes.
Binary file not shown.
Oops, something went wrong.