Dateien nach "pg26" hochladen

work in progress implementation of new framework
This commit is contained in:
2025-10-30 00:20:18 +00:00
parent 87cfa83af9
commit bd19860ae7
5 changed files with 374 additions and 0 deletions

30
pg26/pndConfig.py Normal file
View File

@@ -0,0 +1,30 @@
gc_name = "pndESP_999_rc0.1"
class tasks:
gc_tasks = "Sensor;MQTT;WebServer"
gc_sensors = {0:{"name":"DHT11_1", "type":"DHT11","pin": 26, "ADC": False},
1:{"name":"Moisture_1", "type":"MOIST","pin": 32, "ADC": True},
2:{"name":"Moisture_2", "type":"MOIST","pin": 33, "ADC": True},
3:{"name":"Moisture_3", "type":"MOIST","pin": 35, "ADC": True}
}
class defaults:
gc_adc_min = 1024
gc_adc_max = 4096
gc_ntp_host = "ntp.org"
gc_looping = 60
gc_websrvport = 80
class wifi:
gc_ssid = "pnd_iot"
gc_secret = "this is not real: this is a Dream... Wake Up ;-D"
gc_ap = {}
class mqtt:
gc_host = "192.42.42.44" # needs to be changed
gc_port = 1883
gc_topic_config =f"pndiot/{gc_name}/config"
gc_topic_sensor =f"pndiot/{gc_name}/sensors"
gc_user = "pndiot"
gc_secret = "pndiot"