dany83
(Danilo)
February 12, 2020, 5:58pm
1
hello, can all you help me install smarther in my openhab
i received code secret my no understan what need do later.
i see this post : https://github.com/MrRonfo/openhab-smarther
smarther need folder inside ?
i have install openhabian 2.5 in rasperry pi 4 , but i no see all this file inside rest api openhab
please can help me also video is very good i see and can do
sorry for my english , i am italy
Log into your OpenHab server, then create a directory smarther
under your $OPENHAB_CONF/scripts/
directory and, inside it, the subdirectories data
and log
:
mkdir $OPENHAB_CONF/scripts/smarther
mkdir $OPENHAB_CONF/scripts/smarther/data
mkdir $OPENHAB_CONF/scripts/smarther/log
search turns up this thread here. Search is your friend.
Hi @Mr_Ronfo ,
I’m trying to integrate the Smarther in OpenHab2.
Following your instructions on GitHub I had to change the url used, inserting it without the webserver port, as I had installed already a webserver and got a error message with the port.
Now everything ok till point 3.3 - 5, where in executing smarther-api.sh script with get_status I have the following error message:
./smarther-api.sh: line 117:jq: command not found {“rsptype”:"",“rspcode”": 500,“errormsg”:"OAuth2 code is miss…
dany83
(Danilo)
February 12, 2020, 6:12pm
3
ok but i no understand if need create folder smarther inside other folder for do this
Log into your OpenHab server, then create a directory smarther
under your $OPENHAB_CONF/scripts/
directory and, inside it, the subdirectories data
and log
:
mkdir $OPENHAB_CONF/scripts/smarther
mkdir $OPENHAB_CONF/scripts/smarther/data
mkdir $OPENHAB_CONF/scripts/smarther/log
i you reply i no find my reply
Ciao Danilo!
You have to follow exactly the instructions given.
The directorues are created in the right folder, when you execute the command (it’s in etc/openhab2/scripts
Here you find the thread:
Hi all do you know how can i integrate BTicino smarther thermostat in openhab?
https://www.smarther.bticino.it
There s some bindings or stuff like that… and idea??
Thanks
Twiggo
Thanks to @Mr_Ronfo
dany83
(Danilo)
February 12, 2020, 7:34pm
5
Can you tell me program need use for command?
I use filezilla ftp for go inside folder.
Sorry i use openhab 2 days.
If i have understand need do folder with name “smarther” inside folder “scripts” and copy file ?
I have this folder , what i need copy inside ?
You should use Putty or something like that.
There you can copy paste the commands of Mr_Ronfo
But yes, in the directory Scripts, the mkdir $openhab… makes the directory smarther and the data and log
dany83
(Danilo)
February 12, 2020, 10:16pm
7
Ok tomorrow i test with putty.
Data and log is also folder ?
I sorry for my all question , no is easy for my , but want solve with all you help
Thx you
H102
(CM6.5 H102)
February 13, 2020, 2:57am
8
Once you move the files via filezilla then run openhabian-config tool and select fix permissions so openhab has access to the files.
Ciao Danilo,
I would advise to make it via PC, it’s much easier.
You have to make these three directories and other too.
Have you already made everything with Legrand and installed nginx?
Se fai tutto via Pc è molto più agevole, puoi fare copia incolla. Devi seguire alla lettera quanto scritto da Mr_Ronfo.
Ti sei già registrato su Legrand e hai installato nginx?
m4rk
(Mark)
February 13, 2020, 7:41am
10
You can drag and drop files from windows directly into open putty console. The files get copied to the home folder.
Ps. I am using the kitty branch of putty and so not sure if it’s just a feature of that or works for putty too. Worth a try for someone.
dany83
(Danilo)
February 13, 2020, 11:50am
11
I received code secret legrand .
I no have install nginx ? I have need this for bticino ?
Yes, it’s on the instructions
# openhab-smarther
Scripts created and operations performed to achieve integration between BTicino Smarther chronothermostat and OpenHAB v2 server, via Legrand's "Smarther - v2.0" API gateway.
[![stable](http://badges.github.io/stability-badges/dist/stable.svg)](http://github.com/badges/stability-badges)
The following instructions are mapped to my environment, where I have:
- an OpenHAB v2.4 home server, installed on a Raspberry Pi 3 model B+ using openHABian v1.4.1
- an Nginx web server with PHP, installed on a Raspberry Pi 3 model B
- just one Smarther chronothermostat to be controlled
Smarther chronothermostat (product code X8000) is produced by Bticino (https://www.smarther.bticino.it) and doesn't support the OpenWebNet protocol.
Legrand's "Smarther - v2.0" API need to be used instead: https://portal.developer.legrand.com/docs/services/smartherV2
## 1. First steps
### 1.1. Register a Developer account
Sign up for a new Developer account on Works with Legrand website (https://developer.legrand.com/login).
### 1.2. Subscribe to Legrand APIs
This file has been truncated. show original
Please read them carefully
dany83
(Danilo)
February 13, 2020, 6:15pm
13
i create directory : smarther - data - log
i do this my receive error Operation not permitted , i have copy by filezilla inside smarther : ```
chmod +x $OPENHAB_CONF/scripts/smarther/smarther-api.sh
3) ```sudo mkdir /var/www/html/smarther/ ``` No such file or directory
4) ```sudo touch /var/log/php/smarther-c2c.log``` No such file or directory
5) i do also this my have equal error No such file or directory
sudo chown -R www-data:adm /var/www/html/smarther/
sudo chown www-data:adm /var/log/php/smarther-c2c.log
please help me solve , because have all this erro and problem ?
dany83
(Danilo)
February 13, 2020, 7:26pm
14
i no can do this now : sudo touch /var/log/php/smarther-c2c.log
No such file or directory
because ?
Mr_Ronfo
(Fabio)
February 13, 2020, 7:45pm
15
Hi @dany83 , I could eventually help you working it out during the weekend.
As this is a workaround to an official binding, it’s not expected to automatically work under any system setup one may have
—-
Ciao Danilo, forse riesco a darti una mano nel w/e.
Essendo questo un workaround ad un binding ufficiale, non è atteso che funzioni automaticamente con qualsiasi setup si sistema possibile
dany83
(Danilo)
February 13, 2020, 7:50pm
16
ok thx i wait you help me ? you is italian righ ? can you do post italian more easy step ?
now i test this sudo chown www-data:adm /var/log/php/smarther-c2c.log
but received error No such file or directory
i go by filezilla inside log , create directory php but permission denied ( i have log put 777 permission )
i can solve this ?
Ciao Danilo,
Have you copied the two files ‘smarther-auth.php’ and ‘smarther-c2c.php’ into ‘smarther/’ directory?
Hai copiato i due file smarther-auth.php’ e ‘smarther-c2c.php’ nella directory ‘smarther/’ ?
dany83
(Danilo)
February 13, 2020, 8:30pm
18
yes i have copied but later this no work sudo chown www-data:adm /var/log/php/smarther-c2c.log
That’s not the right one. It should be in /var/www/html/smarther
You should already have nginx installed
dany83
(Danilo)
February 13, 2020, 8:44pm
20
i have nginx install .
i no can copied file in /var/www/html/smarther “permission denied” i have 777