pliki podesłane przez ftp, i chyba jakieś światełko w tunelu się pojawiło. Pozostał mi jeszcze taki problem:
string(37) "https://svr1.supla.org/oauth/v2/token"
CURL_ERROR:
RESPONSE_CODE: Could not contact the SUPLA API
Supla scripts (1.0 - stare)
-
Sibikk
- Posts: 366
- Joined: Mon Nov 07, 2016 12:42 pm
- Location: Katowice
Panowie walczę... i leżę.
Czy coś więcej trzeba zmienić w File: /etc/apache2/sites-available/000-default.conf
Zalogowany jestem na raspberry jako "pi"
Z sudo czy bez ten sam efekt.pi@raspberrypi:/var/www/html/supla-scripts $ sudo curl -s http://getcomposer.org/installer | php
All settings correct for using Composer
The installation directory "/var/www/html/supla-scripts" is not writable
Czy coś więcej trzeba zmienić w File: /etc/apache2/sites-available/000-default.conf
Zalogowany jestem na raspberry jako "pi"
Code: Select all
ServerAdmin webmaster@localhost
DocumentRoot /var/www/redirect
<Directory />
Options FollowSymLinks
AllowOverride All
</Directory>
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride all
Order allow,deny
allow from all
</Directory>
<Directory /var/www/redirect>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>-
michael
- Posts: 1320
- Joined: Wed Nov 09, 2016 8:00 am
- Location: Wojkowice
-
Sibikk
- Posts: 366
- Joined: Mon Nov 07, 2016 12:42 pm
- Location: Katowice
próbowałem jeszcze
Code: Select all
pi@raspberrypi:/var/www/html/supla-scripts $ sudo adduser pi www-data
Adding user `pi' to group `www-data' ...
Adding user pi to group www-data
Done.-
fracz
- Posts: 2342
- Joined: Fri Oct 28, 2016 10:56 pm
- Location: Kraków
- Has thanked: 4 times
- Been thanked: 6 times
Code: Select all
sudo chown -R pi:www-data /var/www/html/supla-scripts
sudo chmod g+s /var/www/html/supla-scripts
-
Sibikk
- Posts: 366
- Joined: Mon Nov 07, 2016 12:42 pm
- Location: Katowice
Ruszyło, ale.. Całe życie pod górkę...fracz wrote: Thu Jun 08, 2017 11:07 amI potem już możesz dalej walczyć jako pi.Code: Select all
sudo chown -R pi:www-data /var/www/html/supla-scripts sudo chmod g+s /var/www/html/supla-scripts
php devices/devices.php-->
Code: Select all
Could not connect to SUPLA-Cloud API. Verify if the configuration in config.php is correct.pi@raspberrypi:/var/www/html/supla-scripts $
Code: Select all
define('SUPLA_SERVER', 'raspberrypi');
Code: Select all
define('SUPLA_SERVER', '192.168.0.53');
define('SUPLA_CLIENT_ID', **********************************');
define('SUPLA_SECRET', '****************************');
define('SUPLA_USERNAME', 'api_2');
define('SUPLA_PASSWORD', '*******************************');
define('HTTP_BASIC_USER', '');
define('HTTP_BASIC_PASSWORD', '');