Heater: Difference between revisions
Line 15: | Line 15: | ||
== Basic Setup == | == Basic Setup == | ||
=== libwebsockets === | === libwebsockets === | ||
<p>Install required packages:</p> | |||
<syntaxhighlight lang="console"> | |||
apt install pkg-config cmake | |||
</syntaxhighlight> | |||
<p>Clone ''libwebsockets'' repo:</p> | |||
<syntaxhighlight lang="console" line> | |||
cd /usr/src | |||
git clone https://libwebsockets.org/repo/libwebsockets | |||
</syntaxhighlight> | |||
<p>Create build directory:</p> | |||
<syntaxhighlight lang="console" line> | |||
cd libwebsockets | |||
mkdir build | |||
</syntaxhighlight> | |||
<p>Run make to build ''libwebsockets'':</p> | |||
<syntaxhighlight lang="console" line> | |||
cmake .. | |||
make | |||
make install | |||
</syntaxhighlight> | |||
<p>Create the necessary links and cache:</p> | |||
<syntaxhighlight lang="console"> | |||
ldconfig | |||
</syntaxhighlight> | |||
<p>Delete unnecessary files:</p> | |||
<syntaxhighlight lang="console" line> | |||
cd /usr/src | |||
rm -r libwebsockets | |||
</syntaxhighlight> | |||
=== Configure Database === | === Configure Database === |
Revision as of 20:32, 20 February 2021
IP: | 192.168.88.12 |
---|---|
MAC: | DA:62:17:83:4E:8F |
Domain: | heater.flowerhouse.at |
OS: | Debian Buster |
---|---|
RAM: | 512MB |
Cores: | 1 |
Privileged: | No |
Lorem ipsum
Basic Setup
libwebsockets
Install required packages:
apt install pkg-config cmake
Clone libwebsockets repo:
cd /usr/src
git clone https://libwebsockets.org/repo/libwebsockets
Create build directory:
cd libwebsockets
mkdir build
Run make to build libwebsockets:
cmake ..
make
make install
Create the necessary links and cache:
ldconfig
Delete unnecessary files:
cd /usr/src
rm -r libwebsockets
Configure Database
p4d daemon
Serial-IP-Konverter
https://github.com/horchi/linux-p4d
Configurate Time-Zone dpkg-reconfigure locales -- de_DE.UTF-8
apt install build-essential libssl-dev libjansson-dev libxml2-dev libcurl4-openssl-dev libssl-dev libmariadbclient-dev libmariadb-dev-compat uuid-dev
INSTALL LIBWEBSOCKET
apt install pkg-config cmake cd /usr/src git clone https://libwebsockets.org/repo/libwebsockets cd libwebsockets mkdir build cd build cmake .. make make install ldconfig cd /usr/src rm -r libwebsockets
//P4D installieren
apt install mariadb-server
https://forum.iobroker.net/topic/24792/gel%C3%B6st-adapter-smartmeter-per-ser2net-und-socat/3 https://stackoverflow.com/questions/22624653/create-a-virtual-serial-port-connection-over-tcp socat pty,link=/dev/HeaterCOM,raw tcp:192.168.88.18:8899&