domingo, junho 30, 2019

simple-thermostat/rollup.config.js:1:8 Uncaught SyntaxError: Unexpected identifier

simple-thermostat/rollup.config.js:1:8 Uncaught SyntaxError: Unexpected identifier




Faltava a pasta src com os ficheiros js

sexta-feira, junho 28, 2019

xxx.esxi.problem.Hyperthreading.unmitigated.formatonhost not found XXX

No host esxi
Configurações
Separador. Configurações avancadas
Clicar em VMierbal go to boot em vmierbel.boot.hyperthreading
Depois reninciar o servidor

quinta-feira, junho 27, 2019

lircd-0.9.4c[845]: Error: Cannot glob /sys/class/rc/rc0/input[0-9]*/event[0-9]*

fix  lircd-0.9.4c[845]: Error: Cannot glob /sys/class/rc/rc0/input[0-9]*/event[0-9]*


sudo systemctl stop lircd.socket
sudo systemctl stop lircd
sudo systemctl disable lircd.socket
sudo systemctl disable lircd

Error during connection setup: No module named 'MySQLdb' || Setup failed for recorder

2019-06-14 15:13:52 WARNING (MainThread) [homeassistant.setup] Setup of recorder is taking over 10 seconds.
2019-06-14 15:13:53 ERROR (Recorder) [homeassistant.components.recorder] Error during connection setup: No module named 'MySQLdb' (retrying in 3 seconds)
2019-06-14 15:13:56 ERROR (Recorder) [homeassistant.components.recorder] Error during connection setup: No module named 'MySQLdb' (retrying in 3 seconds)
2019-06-14 15:13:59 ERROR (Recorder) [homeassistant.components.recorder] Error during connection setup: No module named 'MySQLdb' (retrying in 3 seconds)
2019-06-14 15:14:02 ERROR (Recorder) [homeassistant.components.recorder] Error during connection setup: No module named 'MySQLdb' (retrying in 3 seconds)
2019-06-14 15:14:05 ERROR (Recorder) [homeassistant.components.recorder] Error during connection setup: No module named 'MySQLdb' (retrying in 3 seconds)
2019-06-14 15:14:08 ERROR (Recorder) [homeassistant.components.recorder] Error during connection setup: No module named 'MySQLdb' (retrying in 3 seconds)
2019-06-14 15:14:11 ERROR (Recorder) [homeassistant.components.recorder] Error during connection setup: No module named 'MySQLdb' (retrying in 3 seconds)
2019-06-14 15:14:14 ERROR (Recorder) [homeassistant.components.recorder] Error during connection setup: No module named 'MySQLdb' (retrying in 3 seconds)
2019-06-14 15:14:14 INFO (MainThread) [homeassistant.setup] Setup of domain recorder took 32.4 seconds.
2019-06-14 15:14:14 ERROR (MainThread) [homeassistant.setup] Setup failed for recorder: Component failed to initialize.



pip install --no-cache-dir pymssql


quarta-feira, junho 26, 2019

install fortune e o motivate

sudo apt-get install git python3
sudo apt-get install fortune
git clone https://github.com/mubaris/motivate.git
cd motivate/motivate
sudo ./install.sh
source ~/.bashrc
git clone https://github.com/mubaris/motivate.git
cd motivate
./UPDATE

webpio Raspberry pi

wget http://sourceforge.net/projects/webiopi/files/WebIOPi-0.7.1.tar.gz
tar xvzf WebIOPi-0.7.1.tar.gz
cd WebIOPi-0.7.1
wget https://raw.githubusercontent.com/doublebind/raspi/master/webiopi-pi2bplus.patch
patch -p1 -i webiopi-pi2bplus.patch
sudo ./setup.sh
cd /etc/systemd/system/
sudo wget https://raw.githubusercontent.com/doublebind/raspi/master/webiopi.service
sudo systemctl start webiopi
sudo systemctl enable webiopi
sudo nano /etc/webiopi/passwd
crl+k
crtl+x
Y
sudo /etc/init.d/webiopi restart

http://192.168.1.18:8000/app/gpio-header

terça-feira, junho 18, 2019

ATualizar o Python da versao 3.5 para a 3.7 Home Assistant

sudo apt-get update sudo apt-get upgrade sudo apt-get dist-upgrade sudo sed -i 's/jessie/stretch/g' /etc/apt/sources.list sudo apt-get update sudo apt-get upgrade sudo apt-get dist-upgrade sudo reboot
sudo apt-get install build-essential tk-dev libncurses5-dev libncursesw5-dev libreadline6-dev libdb5.3-dev libgdbm-dev libsqlite3-dev libssl-dev libbz2-dev libexpat1-dev liblzma-dev zlib1g-dev
cd /home/pi wget https://www.python.org/ftp/python/3.6.3/Python-3.6.3.tgz tar xzvf Python-3.6.3.tgz cd Python-3.6.3/ ./configure make sudo make install
cd /srv/ sudo rm -r *
cd /srv/ sudo mkdir homeassistant sudo chown homeassistant:homeassistant homeassistant sudo su -s /bin/bash homeassistant cd /srv/homeassistant python3.6 -m venv . source bin/activate
pip3 install homeassistant hass

segunda-feira, junho 03, 2019

raspberry pi instalar o arduino cli

sudo apt install golang
executar

sudo nano  ~/.bash_profile 
adicionar
export GOPATH=$HOME/go
source ~/.bash_profile
go get -u github.com/arduino/arduino-cli

octopi serial config ender 3

serial:
  autoconnect: true
  baudrate: 115200
  exclusive: false
  firmwareDetection: false
  neverSendChecksum: true
  baudrate: 115200
  port: /dev/ttyusb0
  timeout:
    communication: 40
    connection: 40
    detection: 0.5
    sdStatus: 1
    temperature: 5
    temperatureTargetSet: 2

LinkWithin

Related Posts Widget for Blogs by LinkWithin