<?xml version="1.0" encoding="utf-8" ?>

<?xml-stylesheet type="text/xsl" href="/templates/2k11/rss.xsl" media="screen" ?>
<rss version="2.0" 
   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
   xmlns:admin="http://webns.net/mvcb/"
   xmlns:dc="http://purl.org/dc/elements/1.1/"
   xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
   xmlns:wfw="http://wellformedweb.org/CommentAPI/"
   xmlns:content="http://purl.org/rss/1.0/modules/content/"
    xmlns:creativeCommons="http://backend.userland.com/creativeCommonsRssModule" >
<channel>
    
    <title>trueten.de - Software</title>
    <link>https://trueten.de/</link>
    <description>»Wer wagt es, sich den donnernden Zügen entgegenzustellen? Die kleinen Blumen zwischen den Eisenbahnschwellen!« Erich Kästner</description>
    <dc:language>en</dc:language>
    <generator>Serendipity 2.6.1 - http://www.s9y.org/</generator>
    <pubDate>Mon, 06 Jul 2026 16:25:35 GMT</pubDate>

    <image>
    <url>https://trueten.de/templates/2k11/img/s9y_banner_small.png</url>
    <title>RSS: trueten.de - Software - »Wer wagt es, sich den donnernden Zügen entgegenzustellen? Die kleinen Blumen zwischen den Eisenbahnschwellen!« Erich Kästner</title>
    <link>https://trueten.de/</link>
    <width>100</width>
    <height>21</height>
</image>

<item>
    <title>Dann halt mit ckeditor...</title>
    <link>https://trueten.de/archives/14299-Dann-halt-mit-ckeditor....html</link>
            <category>Bloggereien</category>
            <category>Software</category>
    
    <comments>https://trueten.de/archives/14299-Dann-halt-mit-ckeditor....html#comments</comments>
    <wfw:comment>https://trueten.de/wfwcomment.php?cid=14299</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>https://trueten.de/rss.php?version=2.0&amp;type=comments&amp;cid=14299</wfw:commentRss>
    

    <author>nospam@example.com (Thomas Trueten)</author>
    <content:encoded>
    &lt;figure class=&quot;serendipity_imageComment_right&quot; style=&quot;width: 40%&quot;&gt;
&lt;div class=&quot;serendipity_imageComment_img&quot;&gt;&lt;a class=&quot;serendipity_image_link&quot; href=&quot;https://trueten.de/uploads/ckeditor.jpg&quot; onclick=&quot;F1 = window.open(&#039;/uploads/ckeditor.jpg&#039;,&#039;Zoom&#039;,&#039;height=837,width=1452,top=669,left=1201.5,toolbar=no,menubar=no,location=no,resize=1,resizable=1,scrollbars=yes&#039;); return false;&quot;&gt;&lt;!-- s9ymdb:5238 --&gt;&lt;img alt=&quot;Der Screenshot zeigt das Versionsfenster von ckeditor und einen Entwurf des Beitragstextes, so wie er sich in der Benutzerschnittstelle unseres Blogsstems Serendipity 2.6.0 zeigt.&quot; class=&quot;serendipity_image_right&quot; loading=&quot;lazy&quot; src=&quot;https://trueten.de/uploads/ckeditor.jpg&quot; style=&quot;width: 100%; float: right;&quot; /&gt;&lt;/a&gt;&lt;/div&gt;

&lt;figcaption class=&quot;serendipity_imageComment_txt&quot;&gt;ScreenShot&lt;/figcaption&gt;
&lt;/figure&gt;

&lt;p&gt;Jetzt habe ich jahrelang mit dem &lt;a href=&quot;https://www.linux-community.de/ausgaben/easylinux/2010/02/bloggen-direkt-vom-desktop-aus/&quot;&gt;ScribeFire&lt;/a&gt; Browserplugin die Formatierung von Blogbeitr&amp;auml;gen geregelt und bei Copy &amp;amp; Paste Passagen die Originalformatierung von Beitr&amp;auml;gen etc. problemlos und 1:1 &amp;uuml;bernehmen k&amp;ouml;nnen. Die Tage wurde dann die Unterst&amp;uuml;tzung des Plugins in Brave oder anderen Brosern eingestellt, die damit dem Beispiel von Firefox folgen. Verst&amp;auml;ndlich einerseits, ist doch das Plugin seit 2018&amp;#160;nicht mehr aktiv entwickelt worden.&lt;/p&gt;

&lt;p&gt;&amp;Auml;rgerlich andererseits, da&amp;szlig; ich armer Tropf nun auf der Suche nach einem anst&amp;auml;ndigen WYSIWYG HTML Editor bei &lt;a href=&quot;https://ckeditor.com/cke4/release-notes?page=4&quot;&gt;ckeditor r 4.14.0&lt;/a&gt; (revision 8a12b04171) gelandet bin, der bei unserem Blogsystem schon immer dabei ist. Auch das ist nicht gerade taufrisch, aber irgendwie bin ich gerade zu faul, um da eine aktuelle Version reinzupr&amp;ouml;keln, zumal die ziemlich sackteuer ist.&lt;/p&gt;

&lt;p&gt;Man kann eben nicht immer gewinnen...&lt;/p&gt;

&lt;hr /&gt;
&lt;p&gt;&amp;#160;&lt;/p&gt;
 
    </content:encoded>

    <pubDate>Sun, 05 Jul 2026 15:48:00 +0200</pubDate>
    <guid isPermaLink="false">https://trueten.de/archives/14299-guid.html</guid>
    <category>ckeditor</category>
<category>scribefire</category>
<creativeCommons:license>http://creativecommons.org/licenses/by-sa/3.0/</creativeCommons:license>
</item>
<item>
    <title>ELV Gaszähler Integration in Home Assistant</title>
    <link>https://trueten.de/archives/13377-ELV-Gaszaehler-Integration-in-Home-Assistant.html</link>
            <category>EDV</category>
            <category>Hardware</category>
            <category>Home Assistant</category>
            <category>Ich weiß was!</category>
            <category>LifeStyle</category>
            <category>LoRaWAN</category>
            <category>Nerdkram</category>
            <category>Software</category>
            <category>Technik</category>
    
    <comments>https://trueten.de/archives/13377-ELV-Gaszaehler-Integration-in-Home-Assistant.html#comments</comments>
    <wfw:comment>https://trueten.de/wfwcomment.php?cid=13377</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>https://trueten.de/rss.php?version=2.0&amp;type=comments&amp;cid=13377</wfw:commentRss>
    

    <author>nospam@example.com (Thomas Trueten)</author>
    <content:encoded>
    Neulich konnte ich endlich &lt;a href=&quot;https://www.photovoltaikforum.com/thread/191172-erfahrungen-mit-klax-2-0-lorawan-sml-optokopf-oder-vergleichbarem/?postID=3869532#post3869532&quot;&gt;in Zusammenarbeit&lt;/a&gt; mit einem &lt;a href=&quot;https://www.photovoltaikforum.com/core/user/214870-michael-iot-shop-de/&quot;&gt;Kollegen&lt;/a&gt; vom &lt;a href=&quot;https://iot-shop.de/&quot;&gt;IOT Shop&lt;/a&gt; im Photovoltaik Forum meinen &lt;a href=&quot;https://iot-shop.de/shop/klax-2-0-lorawan-sml-optokopf-fur-moderne-stromzahler-4365&quot;&gt;KLAX2.0 Optokoppler&lt;/a&gt; in Betrieb nehmen. Das Teil misst den Stromverbrauch am Stromzähler und überträgt seine Daten via &lt;a href=&quot;https://de.wikipedia.org/wiki/Long_Range_Wide_Area_Network&quot;&gt;LoRaWAN&lt;/a&gt;, von wo aus man sie mit einem&lt;a href=&quot;https://www.thethingsindustries.com/docs/&quot;&gt; TTN Mapper&lt;/a&gt; abgreifen und auswerten kann. Der zweite Energieträger bei uns ist Gas, was liegt also näher, als auch die Daten des Gaszählers abzugreifen und auszuwerten? Nun gibt es ja verschieden Methoden, die mit unterschiedlichem Bastelaufwand ebensolche Ergebnisse präsentieren. Auch beim Gas ist es so, daß eine Auswertung per WLAN wegen der Entfernung zum Zahler nicht in Frage kam. Auch ist wie beim Stromzähler selbst keine Stromversorgung vorhanden, was die Auswahl auch hier ziemlich eindampft. Ich hatte mich dann letztlich für den vergleichsweise günstigen LoRaWAN® Energiezähler-Sensorschnittstelle, &lt;a href=&quot;https://de.elv.com/p/elv-bausatz-lorawan-energiezaehler-sensorschnittstelle-elv-lw-esi-P157439/&quot;&gt;C&lt;/a&gt; sowie den &lt;a href=&quot;https://de.elv.com/p/elv-energy-sensor-gas-2-fuer-gaszaehler-es-gas-2-P156782/&quot;&gt;ES-GAS-2 Sensor&lt;/a&gt; entschieden, welche dann auch kurze Zeit später geliefert wurden. Der Zusammenbau wie auch die Montage gestalteten sich einfach, am Gaszähler muß nichts verändert werden, passende Adapter werden mitgeliefert. Für die Stromversorgung habe ich mir bei einen &lt;a href=&quot;https://www.az-delivery.de/products/battery-expansion-shield-18650-v3-inkl-usb-kabel&quot;&gt;Battery Expansion Shield 18650 V3&lt;/a&gt; besorgt, dafür ein &lt;a href=&quot;https://www.thingiverse.com/thing:5242392&quot;&gt;Gehäuse&lt;/a&gt; gedruckt und zusammen mit einer 18650 Zelle an den ELV Zähler gesteckt. Das ist nun schon einige Tage her, der Stromverbrauch gestaltet sich recht zivil, man kann natürlich auch größere Akkupacks verwenden, sollte jedoch darauf achten, daß sich diese nicht abschalten, während der Zähler im Tiefschlaf ist, da sonst die Datenübertragung unterbrochen ist.&lt;br /&gt;
&lt;br /&gt;
Für die Anleitung setze ich folgendes voraus:&lt;br /&gt;
&lt;ul&gt;&lt;br /&gt;
	&lt;li&gt;Ein LoRaWAN Gateway ist vorhanden und eingebunden.&lt;/li&gt;&lt;br /&gt;
	&lt;li&gt;Es wird &lt;a href=&quot;https://www.thethingsnetwork.org/&quot;&gt;The Things Network&lt;/a&gt; (TTN) genutzt.&lt;/li&gt;&lt;br /&gt;
	&lt;li&gt;Homeassistant ist installiert und das Add-on Mosquitto broker ist hinzugefügt und aktiviert. Dieses Add-on muss wie folgt konfiguriert sein:&lt;/li&gt;&lt;/ul&gt;&lt;a class=&quot;serendipity_image_link&quot;  href=&#039;https://trueten.de/uploads/mosquitto1.jpg&#039; onclick=&quot;F1 = window.open(&#039;/uploads/mosquitto1.jpg&#039;,&#039;Zoom&#039;,&#039;height=889,width=1205,top=283,left=685,toolbar=no,menubar=no,location=no,resize=1,resizable=1,scrollbars=yes&#039;); return false;&quot;&gt;&lt;!-- s9ymdb:4516 --&gt;&lt;img class=&quot;serendipity_image_center&quot; width=&quot;100%&quot;  src=&quot;https://trueten.de/uploads/mosquitto1.jpg&quot;  loading=&quot;lazy&quot; alt=&quot;Der Screenshot zeigt die notwendigen Ergänzungen in der Konfiguration des mosquitto Plugins: Require Client Certificate auf &amp;quot;ono&amp;quot; und unter &amp;quot;customize&amp;quot; folgendes eingeben:&amp;quot;active:true&amp;quot; , &amp;quot;folder: mosquitto&amp;quot;, require_certificate: false&quot;&gt;&lt;/a&gt;&lt;br /&gt;
Hier nun die Konfiguration im ttn Stack, als erstes eine Applikation anlegen, dann unter &quot;Integrations&quot; einen API Key sowie Username erstellen, abfragen und kopieren.&lt;br /&gt;
&lt;br /&gt;
&lt;a class=&quot;serendipity_image_link&quot;  href=&#039;https://trueten.de/uploads/apikeymqtt1.jpg&#039; onclick=&quot;F1 = window.open(&#039;/uploads/apikeymqtt1.jpg&#039;,&#039;Zoom&#039;,&#039;height=749,width=1285,top=353,left=645,toolbar=no,menubar=no,location=no,resize=1,resizable=1,scrollbars=yes&#039;); return false;&quot;&gt;&lt;!-- s9ymdb:4517 --&gt;&lt;img class=&quot;serendipity_image_center&quot; width=&quot;100%&quot;  src=&quot;https://trueten.de/uploads/apikeymqtt1.jpg&quot;  loading=&quot;lazy&quot; alt=&quot;Der Screenshot zeigt die entsprechende Einrichtung der Einträge bei den &amp;quot;applications&amp;quot;&quot;&gt;&lt;/a&gt;&lt;br /&gt;
Bitte den API Key speichern und ebenfalls die anderen Informationen. Sie werden noch gebraucht. Der ELV-LW-ESI ist zu einer TTN Applikation hinzugefügt. Dazu den &quot;Device Repository Formatter&quot;, den ELV zur Verfügung stellt nutzen:&lt;br /&gt;
&lt;br /&gt;
&lt;a class=&quot;serendipity_image_link&quot;  href=&#039;https://trueten.de/uploads/payloadformatter1.jpg&#039; onclick=&quot;F1 = window.open(&#039;/uploads/payloadformatter1.jpg&#039;,&#039;Zoom&#039;,&#039;height=869,width=1517,top=293,left=529,toolbar=no,menubar=no,location=no,resize=1,resizable=1,scrollbars=yes&#039;); return false;&quot;&gt;&lt;!-- s9ymdb:4518 --&gt;&lt;img class=&quot;serendipity_image_center&quot; width=&quot;100%&quot;  src=&quot;https://trueten.de/uploads/payloadformatter1.jpg&quot;  loading=&quot;lazy&quot; alt=&quot;der Screenshot zeigt die Auswahl des &amp;quot;Formatter Type&amp;quot;: &amp;quot;Use Device Repository formatters&amp;quot; bei den Payload Formatters / Uplink&quot;&gt;&lt;/a&gt;&lt;br /&gt;
Für die nächsten Schritte, in denen unter anderem auf die Dateistruktur von Home Assistant zugegriffen werden muss nehme ich einfach das Add-on &quot;File Editor&quot;, das einfach nachinstalliert werden kann. Wichtig für die folgenden Schritte: Änderungen in der Konfiguration vom &quot;File Editor&quot;:&lt;br /&gt;
&lt;br /&gt;
&lt;a class=&quot;serendipity_image_link&quot;  href=&#039;https://trueten.de/uploads/editorconf.jpg&#039; onclick=&quot;F1 = window.open(&#039;/uploads/editorconf.jpg&#039;,&#039;Zoom&#039;,&#039;height=1129,width=1546,top=163,left=514.5,toolbar=no,menubar=no,location=no,resize=1,resizable=1,scrollbars=yes&#039;); return false;&quot;&gt;&lt;!-- s9ymdb:4521 --&gt;&lt;img class=&quot;serendipity_image_center&quot; width=&quot;100%&quot;  src=&quot;https://trueten.de/uploads/editorconf.jpg&quot;  loading=&quot;lazy&quot; alt=&quot;Der Screenshot zeigt die notwendigen Einstellungen in der Konfiguration des Editor Plugins.&quot;&gt;&lt;/a&gt;&lt;br /&gt;
Nun die Zertifikate von TTN in Homeassistant hinterlegen. Dazu laden wir die Zertifikatsdatei &quot;minimal certificate list hier herunter: &lt;a href=&quot;https://www.thethingsindustries.com/docs/reference/root-certificates/&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener noreferrer ugc&quot; data-sc-dereferer=&quot;processed&quot;&gt;Root Certificates&lt;/a&gt;. Mit dem &quot;File Editor&quot; navigieren wir jetzt eine Ebene höher als /homeassistant und öffnen dann den Ordner &quot;ssl&quot;. In diesem Ordner laden wir die &lt;a href=&quot;https://www.thethingsindustries.com/docs/reference/root-certificates/ca.pem&quot;&gt;ca.pem&lt;/a&gt; hoch.&lt;br /&gt;
&lt;br /&gt;
Nächster Schritt: MQTT Bridge einrichten&lt;br /&gt;
&lt;br /&gt;
Mit dem &quot;File Editor&quot; gehen wir wieder eine Ebene höher und öffnen dann den Ordner &quot;share&quot;. Hier erstellen wir nun den Ordner &quot;mosquitto&quot; und darin dann die Datei &quot;mosquitto.conf&quot; mit folgendem Inhalt:&lt;br /&gt;
&lt;br /&gt;
&lt;pre style=&quot;font-family: monospace, Courier; padding: 1em; border: 1px dashed #2f6fab; background-color: #f9f9f9; line-height: 1.3em; font-size: 12.8px;&quot;&gt;
connection elv
    address eu1.cloud.thethings.network:8883
    cleansession true
    &lt;strong&gt;remote_username&lt;/strong&gt; elv-lw-esi-xxxxx@ttn
    &lt;strong&gt;remote_password&lt;/strong&gt; NNSXS.SupersicheresPasswort
    try_private false
    bridge_insecure false
    bridge_cafile /ssl/ca.pem
    topic # in 0 ttn/
&lt;/pre&gt;Dabei setzt man in hinter &lt;strong&gt;&lt;span style=&quot;background-color: #f9f9f9; font-family: monospace, Courier; font-size: 12.8px;&quot;&gt;remote&lt;em&gt;username&lt;/em&gt;&lt;/span&gt;&lt;span style=&quot;background-color: #f9f9f9; font-family: monospace, Courier; font-size: 12.8px;&quot;&gt;&lt;em&gt; &lt;/em&gt;&lt;/span&gt;&lt;/strong&gt;den oben erstellten Usernamen ein und hinter &lt;strong&gt;&lt;span style=&quot;background-color: #f9f9f9; font-family: monospace, Courier; font-size: 12.8px;&quot;&gt;remotepassword&lt;/span&gt;&lt;/strong&gt; den API Key.&lt;br /&gt;
&lt;br /&gt;
Die /homeassistant/configuration.yaml wird am Ende um folgenden Code erweitert, der die &quot;payload&quot;, also die Daten, die der ELV-LW-ESI liefert, für Home Assistant übersetzt:&lt;br /&gt;
&lt;br /&gt;
&lt;pre style=&quot;font-family: monospace, Courier; padding: 1em; border: 1px dashed #2f6fab; background-color: #f9f9f9; line-height: 1.3em; font-size: 12.8px;&quot;&gt;
# Anfang Gaszähler
    - name: &quot;Gasverbrauch&quot;
      state_topic: &quot;ttn/v3/&lt;strong&gt;elv-lw-esi-xxx@ttn&lt;/strong&gt;/devices/&lt;strong&gt;eui-xxxxxxxxx&lt;/strong&gt;/up&quot;
      value_template: &quot;{{ value_json[&#039;uplink_message&#039;][&#039;decoded_payload&#039;][&#039;Energy_Data&#039;][&#039;Energy_Counter&#039;][0]}}&quot;
      unit_of_measurement: &quot;m³&quot;
      device_class: &quot;energy&quot;
      state_class: &quot;total_increasing&quot;
      unique_id: elv_lw_esi
      device:
        identifiers: &quot;elvlwesi&quot;
        manufacturer: &quot;ELV&quot;
        name: &quot;ELV Gaszähler&quot;
# Ende Gaszähler
&lt;/pre&gt;Folgende Anpassungen müssen darin noch vorgenommen werden:&lt;br /&gt;
&lt;br /&gt;
Das &lt;strong&gt;&lt;span style=&quot;background-color: #f9f9f9; font-family: monospace, Courier; font-size: 12.8px;&quot;&gt;state_topic&lt;/span&gt;&lt;/strong&gt; entspricht der Kombination aus dem &lt;strong&gt;&lt;span style=&quot;background-color: #f9f9f9; font-family: monospace, Courier; font-size: 12.8px;&quot;&gt;remote_username&lt;/span&gt;&lt;/strong&gt; der Datei mosquitto.conf und der eui des ELV-LW-ESI in der Übersicht der angelegten Applikation:&lt;br /&gt;
&lt;br /&gt;
&lt;a class=&quot;serendipity_image_link&quot;  href=&#039;https://trueten.de/uploads/configurationyaml1.jpg&#039; onclick=&quot;F1 = window.open(&#039;/uploads/configurationyaml1.jpg&#039;,&#039;Zoom&#039;,&#039;height=834,width=1258,top=310.5,left=658.5,toolbar=no,menubar=no,location=no,resize=1,resizable=1,scrollbars=yes&#039;); return false;&quot;&gt;&lt;!-- s9ymdb:4519 --&gt;&lt;img class=&quot;serendipity_image_center&quot; width=&quot;1243&quot; height=&quot;819&quot;  src=&quot;https://trueten.de/uploads/configurationyaml1.jpg&quot;  loading=&quot;lazy&quot; alt=&quot;Der Screenshot zeigt in der &amp;quot;Application Overview&amp;quot; unter &amp;quot;End Devices&amp;quot; die eui-*** des ELV-LW-ESI&quot;&gt;&lt;/a&gt;&lt;br /&gt;
Nach einem Neustart und Datenempfang vom Zähler sollte jetzt beim &quot;Energie&quot; Panel von Home Assistant der Gasverbrauch fertig zur Einrichtung sein: Dazu klickt man oben rechts im Drei Punkte Menü auf &quot;Energiekonfiguration&quot;, woraufhin sich die unterschiedlichen Energiearten wie Strom, Gas, Wasser etc. konfigurieren lassen und nach dem Abspeichern in diesem Panel angezeigt werden.&lt;br /&gt;
&lt;br /&gt;
&lt;a class=&quot;serendipity_image_link&quot;  href=&#039;https://trueten.de/uploads/energieverbrauch1.jpg&#039; onclick=&quot;F1 = window.open(&#039;/uploads/energieverbrauch1.jpg&#039;,&#039;Zoom&#039;,&#039;height=955,width=1360,top=250,left=607.5,toolbar=no,menubar=no,location=no,resize=1,resizable=1,scrollbars=yes&#039;); return false;&quot;&gt;&lt;!-- s9ymdb:4520 --&gt;&lt;img class=&quot;serendipity_image_center&quot; width=&quot;1345&quot; height=&quot;940&quot;  src=&quot;https://trueten.de/uploads/energieverbrauch1.jpg&quot;  loading=&quot;lazy&quot; alt=&quot;Der Screenshot zeigt in Balkendiagrammen den Energieverbrauch bei Strom und Gas an.&quot;&gt;&lt;/a&gt;&lt;hr /&gt;Dir hat der Beitrag weiter geholfen? Diese Seite finanziert sich durch Spenden der LeserInnen. Wir freuen uns über Unterstützung via: &lt;p&gt;LiberaPay&lt;script src=&quot;https://liberapay.com/Trueten/widgets/button.js&quot;&gt;&lt;/script&gt;&lt;br /&gt;
&lt;noscript&gt;&lt;a href=&quot;https://liberapay.com/Trueten/donate&quot;&gt;&lt;span class=&quot;externalmedia-image-placeholder&quot;&gt;Externes Bild nicht verfügbar. &lt;a href=&quot;https://liberapay.com/assets/widgets/donate.svg&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;Originalquelle öffnen&lt;/a&gt;&lt;/span&gt;&lt;/a&gt;&lt;/noscript&gt;&lt;br /&gt;
&lt;p&gt;BitCoin: &lt;p&gt;bc1qgthwzrszw48lw9jl8zjg94fp6w6xfkw0929vg0&lt;p&gt;&lt;img src=&quot;https://trueten.de/uploads/bc1qgthwzrszw48lw9jl8zjg94fp6w6xfkw0929vg0.jpg&quot; alt=&quot;&quot; width=&quot;50%&quot; /&gt;&lt;br /&gt;
&lt;p&gt;&lt;br /&gt;
oder &lt;a href=&quot;https://www.paypal.me/ThomasTrueten&quot;&gt;PayPal&lt;br /&gt;&lt;img src=&quot;https://trueten.de/uploads/paypalthomastrueten.png&quot; alt=&quot;&quot; width=&quot;50%&quot; /&gt;&lt;/a&gt;&lt;hr /&gt; 
    </content:encoded>

    <pubDate>Sat, 07 Sep 2024 12:18:00 +0200</pubDate>
    <guid isPermaLink="false">https://trueten.de/archives/13377-guid.html</guid>
    <category>gasrechnung</category>
<category>home assistant</category>
<creativeCommons:license>http://creativecommons.org/licenses/by-sa/3.0/</creativeCommons:license>
</item>
<item>
    <title>HowTo: Increasing the number of characters in posts in Mastodon 4.2.0</title>
    <link>https://trueten.de/archives/12930-HowTo-Increasing-the-number-of-characters-in-posts-in-Mastodon-4.2.0.html</link>
            <category>Linux</category>
            <category>Nerdkram</category>
            <category>Software</category>
    
    <comments>https://trueten.de/archives/12930-HowTo-Increasing-the-number-of-characters-in-posts-in-Mastodon-4.2.0.html#comments</comments>
    <wfw:comment>https://trueten.de/wfwcomment.php?cid=12930</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>https://trueten.de/rss.php?version=2.0&amp;type=comments&amp;cid=12930</wfw:commentRss>
    

    <author>nospam@example.com (Thomas Trueten)</author>
    <content:encoded>
    &lt;figure class=&quot;serendipity_imageComment_right&quot; style=&quot;width: 40%&quot;&gt;&lt;div class=&quot;serendipity_imageComment_img&quot;&gt;&lt;a class=&quot;serendipity_image_link&quot; title=&quot;The Mastodon Logo&quot; href=&#039;https://trueten.de/uploads/Mastodon1.jpg&#039; onclick=&quot;F1 = window.open(&#039;/uploads/Mastodon1.jpg&#039;,&#039;Zoom&#039;,&#039;height=665,width=665,top=479,left=1104.5,toolbar=no,menubar=no,location=no,resize=1,resizable=1,scrollbars=yes&#039;); return false;&quot;&gt;&lt;!-- s9ymdb:4249 --&gt;&lt;img class=&quot;serendipity_image_right&quot; width=&quot;100%&quot;  src=&quot;https://trueten.de/uploads/Mastodon1.jpg&quot; title=&quot;The Mastodon Logo&quot; loading=&quot;lazy&quot; alt=&quot;The Mastodon Logo&quot;&gt;&lt;/a&gt;&lt;/div&gt;&lt;figcaption class=&quot;serendipity_imageComment_txt&quot;&gt;Das Mastodon Logo&lt;/figcaption&gt;&lt;/figure&gt;&lt;strong&gt;The default character limit for new toots in Mastodon is 500. But what if you want to increase or decrease it? &lt;/strong&gt;&lt;strong&gt;With &lt;a href=&quot;https://github.com/mastodon/mastodon/releases/tag/v4.2.0&quot; title=&quot;Mastodon Source at github&quot;&gt;Mastodon version 4.2.*&lt;/a&gt;, the &lt;a href=&quot;https://draklyckan.se/how-to-increase-the-character-limit-for-toots-in-mastodon/&quot;&gt;previous instructions&lt;/a&gt; for adjusting or increasing the number of characters in posts are obsolete. Basically, the compose.js file is now called differently and must be edited in a different path. I show how, &lt;/strong&gt;&lt;strong&gt;with a big thank you to drakfrid, whose instructions I have adapted accordingly&lt;/strong&gt;&lt;strong&gt;:&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
We will edit three different files, two which set the character limit on your instance, and one which tells other clients or apps what your custom character limit is (for those that support it).&lt;br /&gt;
&lt;br /&gt;
1. Switch to the mastodon user&lt;br /&gt;
&lt;pre style=&quot;font-family: monospace, Courier; padding: 1em; border: 1px dashed #2f6fab; background-color: #f9f9f9; line-height: 1.3em; font-size: 12.8px;&quot;&gt;
su - mastodon
&lt;/pre&gt;&lt;br /&gt;
2. Edit the file &lt;strong&gt;live/app/javascript/mastodon/features/compose/component/compose_form.js&lt;/strong&gt; in your favourite text editor,&lt;br /&gt;
&lt;pre style=&quot;font-family: monospace, Courier; padding: 1em; border: 1px dashed #2f6fab; background-color: #f9f9f9; line-height: 1.3em; font-size: 12.8px;&quot;&gt;
nano live/app/javascript/mastodon/features/compose/components/compose_form.js
&lt;/pre&gt;&lt;br /&gt;
find the number 500 (it should be written in two different locations). Change both of them to whatever you like.&lt;br /&gt;
&lt;br /&gt;
3. Edit &lt;strong&gt;live/app/validators/status&lt;em&gt;length&lt;/em&gt;validator.rb&lt;/strong&gt;,&lt;br /&gt;
&lt;pre style=&quot;font-family: monospace, Courier; padding: 1em; border: 1px dashed #2f6fab; background-color: #f9f9f9; line-height: 1.3em; font-size: 12.8px;&quot;&gt;
nano live/app/validators/status_length_validator.rb
&lt;/pre&gt;&lt;br /&gt;
and once again find the number 500 (should exist only once) and change it to the same number as you wrote in the previous file.&lt;br /&gt;
&lt;br /&gt;
4. Edit &lt;strong&gt;live/app/serializers/rest/instance_serializer.rb&lt;/strong&gt;,&lt;br /&gt;
&lt;pre style=&quot;font-family: monospace, Courier; padding: 1em; border: 1px dashed #2f6fab; background-color: #f9f9f9; line-height: 1.3em; font-size: 12.8px;&quot;&gt;
nano live/app/serializers/rest/instance_serializer.rb
&lt;/pre&gt;&lt;br /&gt;
and find the row starting with&lt;br /&gt;
&lt;strong&gt;:languages, :registrations,&lt;/strong&gt;&lt;br /&gt;
(should be the ~8th row), and change it so it includes ”&lt;em&gt;:max&lt;em&gt;toot&lt;/em&gt;chars&lt;/em&gt;” after ”&lt;em&gt;:registrations&lt;/em&gt;”, such as&lt;br /&gt;
&lt;strong&gt;:languages, :registrations, :max&lt;em&gt;toot&lt;/em&gt;chars,&lt;/strong&gt;&lt;br /&gt;
where the full row now looks something like&lt;br /&gt;
&lt;strong&gt;:languages, :registrations, :max&lt;em&gt;toot&lt;/em&gt;chars, :approval&lt;em&gt;required, :invites&lt;/em&gt;enabled&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
At the end of the same file, &lt;strong&gt;above &lt;/strong&gt;where it says &lt;em&gt;private,&lt;/em&gt; &lt;strong&gt;add the following code&lt;/strong&gt;:&lt;br /&gt;
&lt;pre style=&quot;font-family: monospace, Courier; padding: 1em; border: 1px dashed #2f6fab; background-color: #f9f9f9; line-height: 1.3em; font-size: 12.8px;&quot;&gt;
def max_toot_chars
   &amp;lt;your value here&amp;gt;
end
&lt;/pre&gt;&lt;br /&gt;
and change &amp;lt;your value here&amp;gt; to the same value you wrote previously.&lt;br /&gt;
&lt;br /&gt;
5. Enter the live directory and recompile Mastodon,&lt;br /&gt;
&lt;pre style=&quot;font-family: monospace, Courier; padding: 1em; border: 1px dashed #2f6fab; background-color: #f9f9f9; line-height: 1.3em; font-size: 12.8px;&quot;&gt;
RAILS_ENV=production bundle exec rails assets:precompile
&lt;/pre&gt;&lt;br /&gt;
6. Switch to the root user (with exit), and restart the Mastodon services,&lt;br /&gt;
&lt;pre style=&quot;font-family: monospace, Courier; padding: 1em; border: 1px dashed #2f6fab; background-color: #f9f9f9; line-height: 1.3em; font-size: 12.8px;&quot;&gt;
systemctl restart mastodon-sidekiq
systemctl reload mastodon-web
&lt;/pre&gt;&lt;br /&gt;
and optionally restart the streaming API server,&lt;br /&gt;
&lt;pre style=&quot;font-family: monospace, Courier; padding: 1em; border: 1px dashed #2f6fab; background-color: #f9f9f9; line-height: 1.3em; font-size: 12.8px;&quot;&gt;
systemctl restart mastodon-streaming
&lt;/pre&gt;&lt;br /&gt;
&lt;strong&gt;And you’re done!&lt;/strong&gt; You should now be able to see the new character limit on your Mastodon instance.&lt;hr /&gt; 
    </content:encoded>

    <pubDate>Fri, 22 Sep 2023 12:14:00 +0200</pubDate>
    <guid isPermaLink="false">https://trueten.de/archives/12930-guid.html</guid>
    <category>howto</category>
<category>mastodon</category>
<creativeCommons:license>http://creativecommons.org/licenses/by-sa/3.0/</creativeCommons:license>
</item>
<item>
    <title>Debian: add-apt-repository Fehlerbehebung</title>
    <link>https://trueten.de/archives/12908-Debian-add-apt-repository-Fehlerbehebung.html</link>
            <category>Linux</category>
            <category>Nerdkram</category>
            <category>Software</category>
    
    <comments>https://trueten.de/archives/12908-Debian-add-apt-repository-Fehlerbehebung.html#comments</comments>
    <wfw:comment>https://trueten.de/wfwcomment.php?cid=12908</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>https://trueten.de/rss.php?version=2.0&amp;type=comments&amp;cid=12908</wfw:commentRss>
    

    <author>nospam@example.com (Thomas Trueten)</author>
    <content:encoded>
    Bei der Verwendung des Softwareinstallationsscriptes &lt;code&gt;&lt;strong&gt;add-apt-repository&lt;/strong&gt;&lt;/code&gt; - das im Paket &lt;strong&gt;&lt;code&gt;&lt;a href=&quot;https://packages.debian.org/de/stable/software-properties-common&quot;&gt;software-properties-common&lt;/a&gt;&lt;/code&gt;&lt;/strong&gt; enthalten ist - auf &lt;a href=&quot;https://www.debian.org/News/2023/20230610&quot;&gt;Debian 12&lt;/a&gt; kommt es zu folgender Fehlermeldung:&lt;br /&gt;
&lt;br /&gt;
&lt;pre style=&quot;font-family: monospace, Courier; padding: 1em; border: 1px dashed #2f6fab; background-color: #f9f9f9; line-height: 1.3em; font-size: 12.8px;&quot;&gt;
&lt;strong&gt;sudo add-apt-repository ppa:bashtop-monitor/bashtop&lt;/strong&gt;
Traceback (most recent call last):
  File &quot;/usr/bin/add-apt-repository&quot;, line 362, in
    sys.exit(0 if addaptrepo.main() else 1)
                  ^^^^^^^^^^^^^^^^^
  File &quot;/usr/bin/add-apt-repository&quot;, line 345, in main
    shortcut = handler(source, *shortcut_params)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File &quot;/usr/lib/python3/dist-packages/softwareproperties/shortcuts.py&quot;, line 40, in shortcut_handler
    return handler(shortcut, *kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File &quot;/usr/lib/python3/dist-packages/softwareproperties/ppa.py&quot;, line 86, in init
    if self.lpppa.publishdebugsymbols:
       ^^^^^^^^^^
  File &quot;/usr/lib/python3/dist-packages/softwareproperties/ppa.py&quot;, line 126, in lpppa
    self.lpppa = self.lpteam.getPPAByName(name=self.ppaname)
                  ^^^^^^^^^^^
  File &quot;/usr/lib/python3/dist-packages/softwareproperties/ppa.py&quot;, line 113, in lpteam
    self.lpteam = self.lp.people(self.teamname)
                   ^^^^^^^^^^^^^^
AttributeError: &#039;NoneType&#039; object has no attribute &#039;people&#039;
&lt;/pre&gt;&lt;br /&gt;
Was ärgerlich ist, kann doch mit diesem Script eine Softwarequelle einfach zu den Systemquellen des Rechners hinzugefügt werden ohne sich groß mit den nötigen gpg Keys usw. befassen zu müssen - diese werden nämlich gleich mit heruntergeladen und installiert. Ein guter Komfortgewinn für faule User. ;-)&lt;br /&gt;
&lt;br /&gt;
Die Fehlermeldung kommt von der fehlenden Python Bibliothek &lt;strong&gt;&lt;code&gt;python3-launchpadlib&lt;/code&gt;&lt;/strong&gt;. Nach Installation derselben funktioniert &lt;strong&gt;&lt;code&gt;add-apt-repository&lt;/code&gt;&lt;/strong&gt; einwandfrei.&lt;br /&gt;
&lt;br /&gt;
Nach einem Hinweis von dieser &lt;a href=&quot;https://www.linuxquestions.org/questions/debian-26/debian-bullseye-sid-add-apt-repository-not-working-python-problem-4175720821/&quot;&gt;Quelle&lt;/a&gt; bearbeitet.&lt;br /&gt;
&lt;br /&gt;
&lt;hr /&gt; 
    </content:encoded>

    <pubDate>Sun, 10 Sep 2023 09:40:00 +0200</pubDate>
    <guid isPermaLink="false">https://trueten.de/archives/12908-guid.html</guid>
    <category>debian</category>
<creativeCommons:license>http://creativecommons.org/licenses/by-sa/3.0/</creativeCommons:license>
</item>
<item>
    <title>Erweitere Domainblockade für FaceBook / META / threads.*</title>
    <link>https://trueten.de/archives/12831-Erweitere-Domainblockade-fuer-FaceBook-META-threads..html</link>
            <category>EDV</category>
            <category>EDV</category>
            <category>Kapitalismus</category>
            <category>Medien</category>
            <category>Nerdkram</category>
            <category>Social Media</category>
            <category>Software</category>
            <category>Soziales</category>
            <category>Soziologie</category>
    
    <comments>https://trueten.de/archives/12831-Erweitere-Domainblockade-fuer-FaceBook-META-threads..html#comments</comments>
    <wfw:comment>https://trueten.de/wfwcomment.php?cid=12831</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>https://trueten.de/rss.php?version=2.0&amp;type=comments&amp;cid=12831</wfw:commentRss>
    

    <author>nospam@example.com (Thomas Trueten)</author>
    <content:encoded>
    Der Facebook / META Konzern möchte mit dem #Projekt92 / #Barcelona / #threads.* an das &lt;a href=&quot;https://de.wikipedia.org/wiki/Fediverse&quot;&gt;Fediverse&lt;/a&gt; andocken. Erste Domains sind offenbar threads.net. (Wir verzichten auf die aktive Verlinkung) Nachdem zahlreiche Admins inzwischen erklärt haben, alle diesbezüglichen &lt;a href=&quot;https://fedipact.online/&quot;&gt;Aktivitäten und Domains zu blockieren&lt;/a&gt;, gibt es eine Sammlung von suspekten Facebook / META / threads Domains &lt;a href=&quot;https://datakra.sh/assets/lizard.txt&quot;&gt;zum Download&lt;/a&gt; und anschließenden Import bei Mastodon. Wäre per regex sicher kürzer geworden, aber was soll&#039;s. Die Liste wird gepflegt und erweitert.&lt;br /&gt;
&lt;br /&gt;
Die Vernetzung mit Meta soll nicht mehr automatisch erfolgen, sondern man kann sich jetzt dafür entscheiden, seinen Server mit &quot;finanziellen Anreizen&quot; mit Meta zu verbinden, wenn er &lt;a href=&quot;https://beach.city/@vantablack/110594120842443355&quot;&gt;&quot;groß genug&quot;&lt;/a&gt; ist.&lt;br /&gt;
&lt;br /&gt;
Trotzdem lohnt es sich, diese Domains und IPs zu blockieren, nur für den Fall, dass sie es sich anders überlegen und um zu verhindern, dass META den Server ohne  Zustimmung oder die der Nutzer:Innen ausspionieren.&lt;br /&gt;
&lt;br /&gt;
Mehr dazu in diesem &lt;a href=&quot;https://mastodon.trueten.de/&lt;sub&gt;MOULE&lt;/sub&gt;mastodon.moule.world/110586343920783557&quot;&gt;thread&lt;/a&gt;.&lt;br /&gt;
&lt;br /&gt;
Wir sind seit dem &lt;a href=&quot;https://mastodon.trueten.de/@admin/110572678916673819&quot;&gt;19. Juni 2023&lt;/a&gt; im FediPact dabei und seit heute werden die og. Domains blockiert.&lt;br /&gt;
&lt;br /&gt;
&lt;a class=&quot;serendipity_image_link&quot;  href=&#039;https://trueten.de/uploads/2023-07-03_19-19.png&#039; onclick=&quot;F1 = window.open(&#039;/uploads/2023-07-03_19-19.png&#039;,&#039;Zoom&#039;,&#039;height=310,width=578,top=572.5,left=998.5,toolbar=no,menubar=no,location=no,resize=1,resizable=1,scrollbars=yes&#039;); return false;&quot;&gt;&lt;!-- s9ymdb:4189 --&gt;&lt;img class=&quot;serendipity_image_right&quot; width=&quot;40%&quot;  src=&quot;https://trueten.de/uploads/2023-07-03_19-19.png&quot;  loading=&quot;lazy&quot; alt=&quot;Screenshot: We block´d the #Barcelona Project aka threads.net and threads.instagram.com. We don‘t allow any #Facebook or #Instagram shit pollution at our #Instance.  If you are looking for a new home (instance/server) due to the whole Bruhaha over the #Meta move on the Fediverse, here is a link to the instances where you will be safe:  https://fedipact.online/  #FediBlockMeta  #Meta #Project92 #Threads #Barcelona #Mastodon #FuckMeta&quot;&gt;&lt;/a&gt;We block´d the &lt;a href=&quot;https://mastodon.trueten.de/tags/Barcelona&quot; rel=&quot;tag&quot;&gt;#Barcelona&lt;/a&gt; Project aka threads.net and threads.instagram.com. We don‘t allow any &lt;a href=&quot;https://mastodon.trueten.de/tags/Facebook&quot; rel=&quot;tag&quot;&gt;#Facebook&lt;/a&gt; or &lt;a href=&quot;https://mastodon.trueten.de/tags/Instagram&quot; rel=&quot;tag&quot;&gt;#Instagram&lt;/a&gt; shit pollution at our &lt;a href=&quot;https://mastodon.trueten.de/tags/Instance&quot; rel=&quot;tag&quot;&gt;#Instance&lt;/a&gt;.&lt;br /&gt;
&lt;br /&gt;
If you are looking for a new home (instance/server) due to the whole Bruhaha over the &lt;a href=&quot;https://mastodon.trueten.de/tags/Meta&quot; rel=&quot;tag&quot;&gt;#Meta&lt;/a&gt; move on the Fediverse, here is a link to the instances where you will be safe:&lt;br /&gt;
&lt;br /&gt;
&lt;a title=&quot;https://fedipact.online/&quot; href=&quot;https://fedipact.online/&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener noreferrer&quot;&gt;https://fedipact.online/&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;https://mastodon.trueten.de/tags/FediBlockMeta&quot; rel=&quot;tag&quot;&gt;#FediBlockMeta&lt;/a&gt; &lt;a href=&quot;https://mastodon.trueten.de/tags/Meta&quot; rel=&quot;tag&quot;&gt;#Meta&lt;/a&gt; &lt;a href=&quot;https://mastodon.trueten.de/tags/Project92&quot; rel=&quot;tag&quot;&gt;#Project92&lt;/a&gt; &lt;a href=&quot;https://mastodon.trueten.de/tags/Threads&quot; rel=&quot;tag&quot;&gt;#Threads&lt;/a&gt; &lt;a href=&quot;https://mastodon.trueten.de/tags/Barcelona&quot; rel=&quot;tag&quot;&gt;#Barcelona&lt;/a&gt; &lt;a href=&quot;https://mastodon.trueten.de/tags/Mastodon&quot; rel=&quot;tag&quot;&gt;#Mastodon&lt;/a&gt; &lt;a href=&quot;https://mastodon.trueten.de/tags/FuckMeta&quot; rel=&quot;tag&quot;&gt;#FuckMeta&lt;/a&gt;&lt;hr /&gt; 
    </content:encoded>

    <pubDate>Mon, 03 Jul 2023 19:21:00 +0200</pubDate>
    <guid isPermaLink="false">https://trueten.de/archives/12831-guid.html</guid>
    <category>facebook</category>
<category>meta</category>
<category>threads</category>
<creativeCommons:license>http://creativecommons.org/licenses/by-sa/3.0/</creativeCommons:license>
</item>

</channel>
</rss>
