Home Bridge & Samsung AC

!!! Still not completed!!!

Install Node.JS

sudo apt-get update sudo apt-get upgrade
node —version
curl -sL https://deb.nodesource.com/setup | sudo bash -
sudo apt-get install nodejs

Install NPM

npm install npm -g
sudo npm install update
sudo npm -g install node-expat

Install Samsung Air Conditioner

git clone https://github.com/CloCkWeRX/node-samsung-airconditioner.git

edit package.json and change xml2json version:

 , "xml2json"     : "0.9.1"
sudo npm install node-samsung-airconditioner

Result:

/home/pi

└─┬ samsung-airconditioner@0.2.2
└─┬ xml2json@0.9.1
├── hoek@2.16.3
├─┬ joi@6.10.1
│ ├── isemail@1.2.0
│ ├── moment@2.14.1
│ └── topo@1.1.0
└─┬ node-expat@2.3.15
└── nan@2.4.0

After that you need to wait I writ the homebridge-samsung plugin…

 

Using Native2Ascii class in Java Code

Using Native2Ascii class in Java Code

The Java compiler and other Java tools can only process files which contain Latin-1 and/or Unicode-encoded (\udddd notation) characters.

If you want to encode in escaped \u Unicode a Japanese string for instance:

問題です

Continua a leggere “Using Native2Ascii class in Java Code”