kopia lustrzana https://github.com/jbruce12000/kiln-controller
Porównaj commity
3 Commity
e1490187c7
...
e0d2aacfe3
Autor | SHA1 | Data |
---|---|---|
jason bruce | e0d2aacfe3 | |
jason bruce | 07ea69cdb2 | |
jason bruce | bf6c72bba4 |
|
@ -163,7 +163,7 @@ sim_R_ho_air = 0.05 # K/W " with internal air circulation
|
|||
|
||||
# if you want simulations to happen faster than real time, this can be
|
||||
# set as high as 1000 to speed simulations up by 1000 times.
|
||||
sim_speedup_factor = 10
|
||||
sim_speedup_factor = 1
|
||||
|
||||
|
||||
########################################################################
|
||||
|
@ -239,7 +239,7 @@ ignore_tc_unknown_error = False
|
|||
|
||||
# This overrides all possible thermocouple errors and prevents the
|
||||
# process from exiting.
|
||||
ignore_tc_too_many_errors = True
|
||||
ignore_tc_too_many_errors = False
|
||||
|
||||
########################################################################
|
||||
# automatic restarts - if you have a power brown-out and the raspberry pi
|
||||
|
|
|
@ -7,7 +7,7 @@ import config
|
|||
import os
|
||||
import digitalio
|
||||
import busio
|
||||
import bitbangio
|
||||
import adafruit_bitbangio as bitbangio
|
||||
import statistics
|
||||
|
||||
log = logging.getLogger(__name__)
|
||||
|
|
|
@ -6,10 +6,18 @@ gevent-websocket
|
|||
websocket-client
|
||||
requests
|
||||
|
||||
# for folks running raspberry pis
|
||||
# we have no proof of anyone using another board yet, but when that
|
||||
# happens, you might want to comment this out.
|
||||
RPi.GPIO
|
||||
|
||||
# List of all supported adafruit modules for thermocouples
|
||||
adafruit-circuitpython-max31855
|
||||
adafruit-circuitpython-max31856
|
||||
|
||||
# for folks using sw spi (bit banging)
|
||||
adafruit-circuitpython-bitbangio
|
||||
|
||||
# untested - for PT100 platinum thermocouples
|
||||
#adafruit-circuitpython-max31865
|
||||
|
||||
|
|
|
@ -4,6 +4,7 @@ from digitalio import DigitalInOut
|
|||
import time
|
||||
import datetime
|
||||
import busio
|
||||
import adafruit_bitbangio as bitbangio
|
||||
|
||||
try:
|
||||
import board
|
||||
|
@ -43,6 +44,7 @@ if spi is None:
|
|||
print("Software SPI selected for reading thermocouple")
|
||||
|
||||
cs = DigitalInOut(config.spi_cs)
|
||||
cs.switch_to_output(value=True)
|
||||
sensor = None
|
||||
|
||||
print("\nboard: %s" % (board.board_id))
|
||||
|
@ -62,7 +64,6 @@ print(" config.spi_miso = %s BCM pin" % (config.spi_miso))
|
|||
print(" config.spi_cs = %s BCM pin\n" % (config.spi_cs))
|
||||
print("Degrees displayed in %s\n" % (config.temp_scale))
|
||||
|
||||
|
||||
while(True):
|
||||
time.sleep(1)
|
||||
temp = sensor.temperature
|
||||
|
|
2
ziplogs
2
ziplogs
|
@ -3,7 +3,7 @@
|
|||
echo "----------------------------------------------"
|
||||
echo "| Writing all kiln logs to ./kiln.logs.gz... |"
|
||||
echo "----------------------------------------------"
|
||||
zgrep --no-filename -E "(INFO|WARN|ERROR) (oven|kiln-controller|gevent)" /var/log/* 2>/dev/null|strings|sort|uniq|gzip > kiln.logs.gz
|
||||
zcat -f /var/log/* 2>/dev/null|strings|grep -E "(INFO|WARN|ERROR) (oven|kiln-controller|gevent)"|sort|uniq|gzip > kiln.logs.gz
|
||||
|
||||
ls -la kiln.logs.gz
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue