blob: fe4150812d4a5e3d5d2596e7d2f2981699391b10 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
"""
Settings for main.py
"""
# Wlan settings:
WLAN_NAME = 'your_wlan_name'
WLAN_PWD = 'your_password'
COUNTRY = 'GR' # Two letter country code
# PID settings
KP = 1
KI = 0
KD = 0
TARGET_TEMPERATURE = 24
SAMPLE_TIME = 900
# NTP server address:
NTP_SERVER = 'pool.ntp.org'
# Depends on your location:
NTP_OFFSET =
NTP_DELTA =
# MQTT settings:
MQTT_SERVER_IP =
MQTT_SERVER =
MQTT_PORT = 8883
MQTT_CLIENT_ID =
MQTT_USER =
MQTT_TOPIC = 'temperature'
MQTT_TOPIC_CERT_RENEWAL = 'cert_renew'
# TLS settings:
SSL_CERT_FILE = "pico_crt.der"
SSL_KEY_FILE = "pico_key.der"
SSL_CADATA_FILE = "ca_crt.der"
# Save latest valid timestamp to this file:
LATEST_TIMESTAMP_FILE = 'latest_timestamp.txt'
# Mosfet pin:
MOSFET_PIN = 5
# onewire pin:
ONEWIRE_PIN = 17
|