This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
deb http://deb.debian.org/debian bookworm main contrib non-free non-free-firmware | |
deb-src http://deb.debian.org/debian bookworm main contrib non-free non-free-firmware | |
deb http://security.debian.org/debian-security bookworm-security main contrib non-free non-free-firmware | |
deb-src http://security.debian.org/debian-security bookworm-security main contrib non-free non-free-firmware | |
deb http://deb.debian.org/debian bookworm-updates main contrib non-free non-free-firmware | |
deb-src http://deb.debian.org/debian bookworm-updates main contrib non-free non-free-firmware |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifndef _USER_CONFIG_OVERRIDE_H_ | |
#define _USER_CONFIG_OVERRIDE_H_ | |
#ifdef FRIENDLY_NAME | |
#undef FRIENDLY_NAME | |
#endif | |
#define FRIENDLY_NAME "OpenTherm controller" | |
#ifndef USE_OPENTHERM | |
#define USE_OPENTHERM |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class Post extends Model | |
{ | |
public function comments() | |
{ | |
return $this->hasOne(Comment::class); | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let auto = require('openhab-auto'); | |
auto.manager('Ventilation', { | |
label: 'Автоматичне керування температурою вентиляції', | |
groups: ['Ventilation'], | |
tags: ['HVAC', 'Control'] | |
}, 'Ventilation_OutputSetpointTemperature').description('Автоматичне встановлення температури вентиляції відповідно до потреб') | |
.handle(function(event) { | |
// температура входу до рекуператора це міра "прогріву" будинку | |
const inhouse_temp = items.getItem('VentilationUnit_ExchangeTemperature').history.averageSince(time.ZonedDateTime.now().minusMinutes(5)); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Моя проксі-бібліотека | |
// https://www.npmjs.com/package/openhab-proxy-pattern | |
let proxy = require('openhab-proxy-pattern'); | |
// modbus адаптер на датчики віддає температуру в цілому вигляді як десяті долі, наприклад 225 | |
// в логічні елементи вже потрапляє як нормальне значення | |
const modbus_ds_map = function(value) { | |
if (typeof value == 'string') { | |
let t = parseInt(value) * 0.1; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Group NEOCLIMA "NEOCLIMA" | |
Switch NEOCLIMA_SW_ONOFF { channel="modbus:data:neoclima:speed:onoff:switch" } | |
Switch NEOCLIMA_SW_HEATER { channel="modbus:data:neoclima:speed:heater:switch" } | |
Number NEOCLIMA_BYPASS_OPENING "NEOCLIMA - BYPASS OPENING" (NEOCLIMA) {channel="modbus:data:neoclima:speed:bypass_opening:number", autoupdate="false"} | |
Number NEOCLIMA_BYPASS_RANGE "NEOCLIMA - BYPASS RANGE" (NEOCLIMA) {channel="modbus:data:neoclima:speed:bypass_range:number", autoupdate="false"} | |
Number NEOCLIMA_S_SUPPLY "NEOCLIMA - S SUPPLY" (NEOCLIMA) {channel="modbus:data:neoclima:speed:supply:number"} | |
Number NEOCLIMA_S_EXHAUST "NEOCLIMA - S EXHAUST" (NEOCLIMA) {channel="modbus:data:neoclima:speed:exhaust:number"} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// флаг який встановлює чи потрібна зараз автоматична регуляція вентиляції | |
String Automation_Ventilation "Автоматичне керування вентиляцією" <robot> (Ventilation, gAutomation) ["Control"] {description="Автоматичне керування вентиляцією"} | |
// загальна група вентиляції та семантичного Equipment (https://www.openhab.org/docs/tutorial/model.html) | |
Group Ventilation "Вентиляційна система" <ventilation> (Main, gVentilation) ["HVAC"] | |
// фактична виміряна температура виходу вентиляції | |
Number:Temperature Ventilation_OutputTemperature "Температура повітря вентиляції [%.1f %unit%]" <temperature> (Ventilation) ["Measurement", "Temperature"] {ga="thermostatTemperatureAmbient"} | |
// бажана температура виходу вентиляції | |
Number:Temperature Ventilation_OutputSetpointTemperature "Бажана температура вентиляції [%.1f %unit%]" <thermostat> (Ventilation, gSetpointTemperature) ["Setpoint", "Temperature"] {ga="thermostatTemperatureSetpoint", listWidget="oh-stepper-item"[ step=0.5], widgetOrder="0"} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ПВУ neoclima | |
Bridge modbus:tcp:neoclima "PVU" [ host="***.***.***.***", port="***", id=1] { | |
// регістри керування вентиляторами, байпасом та нагрівачем | |
Bridge poller speed [ start=0, length=12, refresh=1000, type="holding" ] { | |
Thing data heater "PVU SW HEATER" [ readStart="1", readValueType="int16", writeStart="1", writeValueType="int16", writeType="holding" ] | |
Thing data bypass_opening "PVU BYPASS OPENING TEMP" [ readStart="2", readValueType="int16", writeStart="2", writeValueType="int16", writeType="holding" ] | |
Thing data bypass_range "PVU BYPASS OPENING RANGE" [ readStart="3", readValueType="int16", writeStart="3", writeValueType="int16", writeType="holding" ] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
mydir="$(dirname "$(readlink -f "$0")")" | |
php ${mydir}/craft backup --interactive=0 | |
backupfile="$(ls -Art "${mydir}/storage/backups/" | tail -n 1)" | |
now=`date +"%Y-%m-%d"` | |
tar cvzf ${mydir}/storage/runtime/temp/backup-${now}.tar.gz ${mydir}/storage/backups/${backupfile} ${mydir}/web/uploads/* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// при перемиканні ioncs8_config в ON конфігуруємо реле | |
rules.JSRule({ | |
name: "Initial relay config", | |
triggers: [triggers.ItemCommandTrigger('ioncs8_config')], | |
execute: (event) => { | |
// відв'язуємо перший та восьмий вхід від виходу | |
if (event.receivedCommand === 'ON') items.getItem('ioncs8_1_configuration_outputmapping').sendCommand(0b01111110); | |
else items.getItem('ioncs8_1_configuration_outputmapping').sendCommand(0b11111111); | |
console.log('RELAY CONFIGURED'); |
NewerOlder