2022-01-02 23:03:52 +01:00
|
|
|
; -----------------------------------------------------
|
|
|
|
; Example emoncms settings.ini file
|
|
|
|
;
|
|
|
|
; default-settings.ini contains the default settings.
|
|
|
|
;
|
|
|
|
; Settings entered here override the default settings.
|
|
|
|
; Enter only the settings you wish to customise here.
|
|
|
|
;
|
|
|
|
; The following is a barebones example, copy across
|
|
|
|
; other settings from default-settings.ini as required
|
|
|
|
; Maintain the section structure (items in [])
|
|
|
|
; -----------------------------------------------------
|
|
|
|
|
|
|
|
; Set Emoncms installation domain here to secure installation e.g domain = myemoncmsinstall.org
|
|
|
|
domain = __DOMAIN__
|
|
|
|
|
|
|
|
; MYSQL Database settings
|
|
|
|
[sql]
|
|
|
|
server = "localhost"
|
|
|
|
database = "__DB_NAME__"
|
|
|
|
username = "__DB_USER__"
|
|
|
|
password = "__DB_PWD__"
|
|
|
|
; Skip database setup test - set to false once database has been setup.
|
|
|
|
dbtest = true
|
|
|
|
|
|
|
|
; Redis Database (used as a cache for improved performance)
|
|
|
|
[redis]
|
2023-12-14 16:54:24 +01:00
|
|
|
enabled = true
|
2022-01-02 23:03:52 +01:00
|
|
|
|
|
|
|
; MQTT Used with emoncms_mqtt service to send and receive data over MQTT
|
|
|
|
; If MQTT settings are changed reboot or execute "sudo systemctl restart emoncms_mqtt.service"
|
|
|
|
[mqtt]
|
|
|
|
enabled = false
|
|
|
|
user = 'username'
|
|
|
|
password = 'password'
|
|
|
|
|
|
|
|
; Feed engine settings
|
|
|
|
[feed]
|
|
|
|
; Supported engines. List engines by id to disable feed creation.
|
|
|
|
; Existing feeds with a hidden engine still work
|
|
|
|
; Recommended emoncms feed engines are PHPFINA and PHPTIMESERIES
|
|
|
|
; MYSQL:0, MYSQLMEMORY:8, PHPTIMESERIES:2, PHPFINA:5, CASSANDRA:10
|
|
|
|
engines_hidden = [0,10]
|
|
|
|
; Buffer data to be written to
|
|
|
|
redisbuffer[enabled] = false
|
2024-07-10 17:14:49 +02:00
|
|
|
phpfina[datadir] = '__DATA_DIR__/phpfina/'
|
|
|
|
phptimeseries[datadir] = '__DATA_DIR__/phptimeseries/'
|
2022-01-02 23:03:52 +01:00
|
|
|
|
|
|
|
; Enable the graph module if you have it installed
|
|
|
|
[interface]
|
|
|
|
feedviewpath = "graph/"
|
|
|
|
|
|
|
|
[public_profile]
|
|
|
|
|
|
|
|
; Emailer
|
|
|
|
; Requires SwiftMailer v5.4.8, To install:
|
|
|
|
; git -C /opt/emoncms/modules clone -b 'v5.4.8' --single-branch https://github.com/swiftmailer/swiftmailer.git
|
|
|
|
[smtp]
|
|
|
|
; Email address to email proccessed input values
|
2024-07-10 17:14:49 +02:00
|
|
|
default_emailto = 'root@__DOMAIN__'
|
2023-12-14 16:54:24 +01:00
|
|
|
host = "localhost"
|
2022-01-02 23:03:52 +01:00
|
|
|
|
|
|
|
; 25, 465, 587
|
|
|
|
port = "25"
|
|
|
|
from_email = 'noreply@emoncms.org'
|
|
|
|
from_name = 'EmonCMS'
|
|
|
|
|
|
|
|
; Comment lines below that dont apply
|
|
|
|
; ssl, tls
|
2023-12-14 16:54:24 +01:00
|
|
|
encryption = ""
|
|
|
|
username = "__APP__"
|
|
|
|
password = "__MAIL_PWD__"
|
2022-01-02 23:03:52 +01:00
|
|
|
|
|
|
|
[log]
|
|
|
|
; Log Level: 1=INFO, 2=WARN, 3=ERROR
|
|
|
|
level = 2
|