From e38808b5e039f45a72acf61e20feb84aa742ca27 Mon Sep 17 00:00:00 2001 From: John Pickup Date: Thu, 1 Jun 2023 10:05:41 +0100 Subject: [PATCH] Initial config changes --- config.py | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/config.py b/config.py index 77d3736..91d2f64 100644 --- a/config.py +++ b/config.py @@ -2,7 +2,7 @@ import logging import os # uncomment this if using MAX-31856 -#from lib.max31856 import MAX31856 +from lib.max31856 import MAX31856 ######################################################################## # @@ -22,9 +22,9 @@ listening_port = 8081 # to produce the actual cost during a run. My kiln has three # elements that when my switches are set to high, consume 9460 watts. -kwh_rate = 0.1319 # cost per kilowatt hour per currency_type to calculate cost to run job -kw_elements = 9.460 # if the kiln elements are on, the wattage in kilowatts -currency_type = "$" # Currency Symbol to show when calculating cost to run job +kwh_rate = 0.33631 # cost per kilowatt hour per currency_type to calculate cost to run job +kw_elements = 7.0 # if the kiln elements are on, the wattage in kilowatts +currency_type = "£" # Currency Symbol to show when calculating cost to run job ######################################################################## # @@ -41,11 +41,11 @@ gpio_heat = 23 # Switches zero-cross solid-state-relay ### Thermocouple Adapter selection: # max31855 - bitbang SPI interface # max31856 - bitbang SPI interface. must specify thermocouple_type. -max31855 = 1 -max31856 = 0 +max31855 = 0 +max31856 = 1 # see lib/max31856.py for other thermocouple_type, only applies to max31856 # uncomment this if using MAX-31856 -#thermocouple_type = MAX31856.MAX31856_S_TYPE +thermocouple_type = MAX31856.MAX31856_S_TYPE ### Thermocouple Connection (using bitbang interfaces) gpio_sensor_cs = 27 @@ -105,7 +105,7 @@ sim_R_ho_air = 0.05 # K/W " with internal air circulation # If you change the temp_scale, all settings in this file are assumed to # be in that scale. -temp_scale = "f" # c = Celsius | f = Fahrenheit - Unit to display +temp_scale = "c" # c = Celsius | f = Fahrenheit - Unit to display time_scale_slope = "h" # s = Seconds | m = Minutes | h = Hours - Slope displayed in temp_scale per time_scale_slope time_scale_profile = "m" # s = Seconds | m = Minutes | h = Hours - Enter and view target time in time_scale_profile @@ -114,7 +114,8 @@ time_scale_profile = "m" # s = Seconds | m = Minutes | h = Hours - Enter and vi # naturally cool off. If your SSR has failed/shorted/closed circuit, this # means your kiln receives full power until your house burns down. # this should not replace you watching your kiln or use of a kiln-sitter -emergency_shutoff_temp = 2264 #cone 7 +#emergency_shutoff_temp = 2264 #cone 7 +emergency_shutoff_temp = 1300 # TODO: check if the change of temp scale also changes interpretation of these constants # If the current temperature is outside the pid control window, # delay the schedule until it does back inside. This allows for heating @@ -143,7 +144,7 @@ thermocouple_offset=0 temperature_average_samples = 40 # Thermocouple AC frequency filtering - set to True if in a 50Hz locale, else leave at False for 60Hz locale -ac_freq_50hz = False +ac_freq_50hz = True ######################################################################## # Emergencies - or maybe not