Porównaj commity

...

3 Commity

Autor SHA1 Wiadomość Data
jason bruce e0d2aacfe3 add RPi.GPIO to requirements 2023-12-01 15:14:56 -05:00
jason bruce 07ea69cdb2 fixes to sw spi. adafruit 31855 now works with sw spi and autodetect of it. also fixed ziplogs to use cat. 2023-12-01 15:00:04 -05:00
jason bruce bf6c72bba4 set sane defaults for config.py 2023-12-01 08:13:50 -05:00
5 zmienionych plików z 14 dodań i 5 usunięć

Wyświetl plik

@ -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

Wyświetl plik

@ -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__)

Wyświetl plik

@ -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

Wyświetl plik

@ -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

Wyświetl plik

@ -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