Drives are not suspended correctly
Removed -S in /lib/udev/hdparm in Line 44 in front of -B
Friday, February 21, 2020
Thursday, February 20, 2020
Linux Console automount
Found here: https://askubuntu.com/questions/342188/how-to-auto-mount-from-command-line udisksctl Listing available devices: udisksctl status Mounting is done via: udisksctl mount -b /dev/sdf or udisksctl mount -p block_devices/sdf Unmounting is done via: udisksctl unmount -b /dev/sdf or udisksctl unmount -p block_devices/sdf The object-path can be found out by doing: udisksctl dump Object of type org.freedesktop.UDisks2.Block seem to be valid as object-patch, the /org/freedesktop/UDisks2/ prefix has to be cut from the path for udisksctl to accept them.
Thursday, February 13, 2020
Openhab
Install Guide:
https://www.openhab.org/docs/installation/linux.html#package-repository-installation
Zulu raspi embedded apt install guide
https://blog.unltd-networx.de/openhab-2-auf-raspberry-pi-3-installieren/
https://www.openhab.org/docs/installation/linux.html#package-repository-installation
Zulu raspi embedded apt install guide
https://blog.unltd-networx.de/openhab-2-auf-raspberry-pi-3-installieren/
Sunday, February 2, 2020
Iobroker Vis Collection
Collection of sample Visuals
https://forum.iobroker.net/topic/19611/vorstellung-meine-zweite-visualisierung/2
https://forum.iobroker.net/topic/19611/vorstellung-meine-zweite-visualisierung/2
Sunday, December 8, 2019
IObroker in Homematic
Finally, after one year with Homematic IP and Homematic running via a Raspi and the ELV expansion module, I'll try to include more Raspis via iobroker into my automation.
Right now, the role or structure for accessing other Raspis GPios through Homematic IP is not clear to me. However I have the following idea:
Setup will be as follows:
- Rasberrymatic with ELV expansion and iobroker addin --> multihost slave
- Raspberry with some kind of ubuntu and iobroker installed --> multihost master
After some thinking I will got with an Iobroker installation on another PI only to test ioBroker.
Simulatneously I installed debmatic:
https://github.com/alexreinert/debmatic
on that pi and will try to link it to the first homematic as well as iobroker.
Next step with IOBroker on second PI was to install RPI extension as well as Vis.
RPI needs config in Instance Menu. If error with writing to certain block occurs,e.g.:
Then you probably need to uncheck the Raspberry Checkbox in RPI Config on IoBroker
Iobroker auf raspi 4 installieren
https://technikkram.net/2019/07/funktioniert-iobroker-auf-neuem-raspberry-pi-4-installieren
Io Broker move to new host:
https://forum.iobroker.net/topic/12365/raspberrypi-defekt-daten-retten/6
Right now, the role or structure for accessing other Raspis GPios through Homematic IP is not clear to me. However I have the following idea:
Setup will be as follows:
- Rasberrymatic with ELV expansion and iobroker addin --> multihost slave
- Raspberry with some kind of ubuntu and iobroker installed --> multihost master
After some thinking I will got with an Iobroker installation on another PI only to test ioBroker.
Simulatneously I installed debmatic:
https://github.com/alexreinert/debmatic
on that pi and will try to link it to the first homematic as well as iobroker.
Next step with IOBroker on second PI was to install RPI extension as well as Vis.
RPI needs config in Instance Menu. If error with writing to certain block occurs,e.g.:
18309) Cannot evaluate: Filesystem 1K-blocks Used Available Use% Mounted on /dev/mmcblk0p2 7318052 4276676 2701448 62% / /1024
Then you probably need to uncheck the Raspberry Checkbox in RPI Config on IoBroker
Iobroker auf raspi 4 installieren
https://technikkram.net/2019/07/funktioniert-iobroker-auf-neuem-raspberry-pi-4-installieren
Io Broker move to new host:
https://forum.iobroker.net/topic/12365/raspberrypi-defekt-daten-retten/6
Break.
Iobroker went to new Raspi4 because of Memory consumption.
Debmatic ist out of discussion as well as running iobroker on the homematic pi.
Now I'm gonna link Iobroker on PI 1 to homematic on Pi 2 via Network.
Problems with radar2.plugin on Raspi3 Ubuntu:
After reboot i get:
host.RelayPi1 | 2020-06-09 21:10:54.654 | error | Caught by controller[0]: at process._tickCallback (internal/process/next_tick.js:61:11) errno: 19, code: 'ENODEV', syscall: 'bind' } |
host.RelayPi1 | 2020-06-09 21:10:54.653 | error | Caught by controller[0]: at process.nextTick (/opt/iobroker/node_modules/@abandonware/noble/lib/noble.js:60:24) |
host.RelayPi1 | 2020-06-09 21:10:54.653 | error | Caught by controller[0]: at NobleBindings.init (/opt/iobroker/node_modules/@abandonware/noble/lib/hci-socket/bindings.js:78:13) |
host.RelayPi1 | 2020-06-09 21:10:54.652 | error | Caught by controller[0]: at Hci.init (/opt/iobroker/node_modules/@abandonware/noble/lib/hci-socket/hci.js:100:35) |
host.RelayPi1 | 2020-06-09 21:10:54.652 | error | Caught by controller[0]: { Error: ENODEV, No such device |
Issuing the following command:
sudo hciattach /dev/ttyAMA0 bcm43xx 921600
solves the error till next reboot.
Thursday, January 24, 2019
Nextcloud on Raspi
Installing NextCloud on Raspi @ Home
- Followed that guide here:
https://strobelstefan.org/?p=5790
Ran into the problems:
- mariadb was only available in Version 10.0 an not 10.1 because of Ubuntu Version 16.1
- mariadb setup was not available as of Version 10.0 --> used mysql command instead
- Error for Setup of letsencrypt-auto because of certbot-auto solved here: https://community.letsencrypt.org/t/certbot-auto-failed-to-complete-had-a-problem-while-installing-python-packages/83697/5
and another fix here:
https://community.letsencrypt.org/t/certbot-auto-broken-in-debian-based-systems/83754
Error was: valueerror too many values to unpack
Nothing helped for me till now.
Last but not least:
Apply the --no-download option to letsencrypt-auto lines around 1000 like in certbot-auto
Debugging:
Errors on raspbian with apache 2.4:
403 Forbidden.
Prior to that I moved the wwwroot of apache.
For this the following lines have to be in /etc/apache2/apache2.conf:
<Directory /media/newroot/www/>
Options Indexes FollowSymLinks
AllowOverride None
Require all granted
- Followed that guide here:
https://strobelstefan.org/?p=5790
Ran into the problems:
- mariadb was only available in Version 10.0 an not 10.1 because of Ubuntu Version 16.1
- mariadb setup was not available as of Version 10.0 --> used mysql command instead
- Error for Setup of letsencrypt-auto because of certbot-auto solved here: https://community.letsencrypt.org/t/certbot-auto-failed-to-complete-had-a-problem-while-installing-python-packages/83697/5
and another fix here:
https://community.letsencrypt.org/t/certbot-auto-broken-in-debian-based-systems/83754
Error was: valueerror too many values to unpack
Nothing helped for me till now.
Last but not least:
Apply the --no-download option to letsencrypt-auto lines around 1000 like in certbot-auto
Debugging:
Obtaining the Client Log File
To obtain the client log file:
- Open the Nextcloud Desktop Client.
- Press F12 on your keyboard.
The Log Output window opens.
Errors on raspbian with apache 2.4:
403 Forbidden.
Prior to that I moved the wwwroot of apache.
For this the following lines have to be in /etc/apache2/apache2.conf:
<Directory /media/newroot/www/>
Options Indexes FollowSymLinks
AllowOverride None
Require all granted
</Directory>
Securing Nextcloud with iptables if bind-adress is more than localhost:
Allowing certain hosts:
iptables -A INPUT -p tcp -s X.X.X.X --dport 3306 -j
Denying all other hosts:
iptables -A INPUT -p tcp --dport 3306 -j DROP
Upgrading to latest certbot package:
https://webdock.io/en/docs/webdock-control-panel/ssl-certificate-guides/upgrading-lets-encrypt-certbot-latest-version-ubuntu
Sunday, December 30, 2018
Homematic Startup
Hallo zusammen,
nachdem ich nach erfolgreichen Umzug als kleinen Start in die Heimautomatisierungswelt mit dem Homematic IP Heizungsset warm geworden bin, komme ich endlich nach mehr als einem Jahr dazu das ganze auf etwas stabilere und autarke Beine zu stellen.
Ziel ist es ein Stück von der reinen Cloud Lösung Homematic IP zu kommen, sowie die Standard Wireless und Wired Aktoren der Homematic anschließen zu können.
Erste Anwendungsfälle für mich werden sein:
- Lichtsteuerung
- Rolladensteuerung
- Garagentorsteuerung
- Heizungssteuerung
Hierzu folgendes Setup:
- Raspi Model B3
- RPI-RF-MOD von ELV nebst Gehäuse und Netzteil
Alle Details entnehmt Ihr bitte:
https://homematic-forum.de/forum/viewtopic.php?t=26917
Dieser Artikel ist die Grundlage für alle hier vorgestellte.
Dabei bin ich mit der ersten SD Karte auch noch hierüber gestolpert:
https://raspberrypi.stackexchange.com/questions/47910/raspberry-breaks-sd-card-31-mb-raw
nachdem ich nach erfolgreichen Umzug als kleinen Start in die Heimautomatisierungswelt mit dem Homematic IP Heizungsset warm geworden bin, komme ich endlich nach mehr als einem Jahr dazu das ganze auf etwas stabilere und autarke Beine zu stellen.
Ziel ist es ein Stück von der reinen Cloud Lösung Homematic IP zu kommen, sowie die Standard Wireless und Wired Aktoren der Homematic anschließen zu können.
Erste Anwendungsfälle für mich werden sein:
- Lichtsteuerung
- Rolladensteuerung
- Garagentorsteuerung
- Heizungssteuerung
Hierzu folgendes Setup:
- Raspi Model B3
- RPI-RF-MOD von ELV nebst Gehäuse und Netzteil
- 32 GB mini SD Karte
Alle Details entnehmt Ihr bitte:
https://homematic-forum.de/forum/viewtopic.php?t=26917
Dieser Artikel ist die Grundlage für alle hier vorgestellte.
Dabei bin ich mit der ersten SD Karte auch noch hierüber gestolpert:
https://raspberrypi.stackexchange.com/questions/47910/raspberry-breaks-sd-card-31-mb-raw
- Die nächsten Projekte sind eine automatische Lichtsteuerung im Außenbereich nach Anleitung hier: https://pixelfriedhof.com/index.php/it-technik/hausautomatisierung/119-homematic-programm-zeitgesteuerte-beleuchtung-mit-manuellem-override
- Automatische Steuerung der Umwältspumpe der Heizung nach Zeitprofil, erweiterbar um Bewegungsmelder/externe Trigger
- Anwesenheitssteuerung: Ansätze sind Homematic und Openhab
Thursday, September 11, 2014
Embedding BASE-14 Fonts in PDF from Latex output
By looking into the fonts pane of the properties of a PDF File with Adobe Acrobat Reader you see, whether all fonts are embedded or not.
Initially I followed this little Tutorial to set the options right:
http://www.hamilton.ie/gavinmc/docs/timesinpdfs.html
However, one configuration entry was still missing to get everything embedded in a Miktex Windows environment:
-dPDFSETTINGS=/prepress
Finally, I print to pdf with the following flags using GPL Ghostscript 9.14:
-dPDFSETTINGS=/prepress -dCompatibilityLevel=1.3 -dHaveTrueTypes=true -dEmbedAllFonts=true -sPAPERSIZE=a4 -dSAFER -dBATCH -dNOPAUSE -sDEVICE=pdfwrite -sOutputFile="%bm.pdf" -c save pop -f "%bm.ps"
(%bm.pdf are just wildards for document names of texnic center)
Thanks to Georg for sending me his options and giving me the important hint!
Initially I followed this little Tutorial to set the options right:
http://www.hamilton.ie/gavinmc/docs/timesinpdfs.html
However, one configuration entry was still missing to get everything embedded in a Miktex Windows environment:
-dPDFSETTINGS=/prepress
Finally, I print to pdf with the following flags using GPL Ghostscript 9.14:
-dPDFSETTINGS=/prepress -dCompatibilityLevel=1.3 -dHaveTrueTypes=true -dEmbedAllFonts=true -sPAPERSIZE=a4 -dSAFER -dBATCH -dNOPAUSE -sDEVICE=pdfwrite -sOutputFile="%bm.pdf" -c save pop -f "%bm.ps"
(%bm.pdf are just wildards for document names of texnic center)
Thanks to Georg for sending me his options and giving me the important hint!
Wednesday, September 10, 2014
Myth about [T1]{fontenc}
http://tex.stackexchange.com/questions/664/why-should-i-use-usepackaget1fontenc
! LaTeX Error: Command \iint already defined. Problem between pxfonts and other package e.g. amsmath
Problem cause:
The included packages have the same commands defined instead of redefined.
The solution here was simply to load amsmath first and afterwards pxfonts:
\usepackage[intlimits]{amsmath}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage{pxfonts}
However, this might generate the problem, that your entire document text changes.
In my case I just wanted to have fixed/monofont inside the lstlistings.
For that I got rid of the general usepackage and did the following in my lstlisting setup:
basicstyle=\fontfamily{pxtt}\selectfont
The included packages have the same commands defined instead of redefined.
The solution here was simply to load amsmath first and afterwards pxfonts:
\usepackage[intlimits]{amsmath}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage{pxfonts}
However, this might generate the problem, that your entire document text changes.
In my case I just wanted to have fixed/monofont inside the lstlistings.
For that I got rid of the general usepackage and did the following in my lstlisting setup:
basicstyle=\fontfamily{pxtt}\selectfont
Subscribe to:
Posts (Atom)