This commit is contained in:
2026-04-14 17:18:31 +07:00
parent f6f8738a4b
commit 39222d2e4a
3 changed files with 7 additions and 7 deletions

View File

@@ -87,17 +87,17 @@ class FrigateCounter:
def action_relay_on(self):
try:
requests.get(self.relay_on, timeout=2)
requests.get(self.relay_on, timeout=1)
logger.info("Relay ON")
except requests.exceptions.RequestException as e:
pass
logger.info("Relay ON")
logger.info(e)
def action_relay_off(self):
try:
requests.get(self.relay_off, timeout=2)
logger.info("Relay OFF")
except requests.exceptions.RequestException as e:
pass
logger.info("Relay OFF")
logger.info(e)
def init_database(self):
"""Initialize SQLite database with required table"""

Binary file not shown.

View File

@@ -1,5 +1,5 @@
{
"kandang_1_karung_masuk": {
"karung": 109
"karung": 0
}
}
}