sp5gdx wrote: Sat Mar 09, 2019 4:36 pm
Cześć własnie zainstalowałem czysta supla na dockerze do tego scrypty i o ile do supli loguje sie bez problemu i generuje sobie token to przy podaniu tego tokena przy logowaniu do scripts dostaje komunikat ze "Invalid token (SUPLA Cloud https://mojadomena.ddns.net does not authorize it)."
Podpowiecie gdzie szukać przyczyny ?
Pozdr
Cześć
Mam identyczny problem jak kolega, nie mogę zintegrować lokalnego scripts z lokalnym serwerem cloud na raspberry.
Po wpisaniu w polu tokenu pojawia się "Invalid token (SUPLA Cloud https://mojadomena.ddns.net does not authorize it)."
Proszę o podpowiedź, kolega thomass pisał aby w cloud dodać nr portu, ale coś bliżej, w którym miejscu dodać nr portu.
Ja mam pytanie o logowanie powiadomień, potrzebuje wiedzieć o której otworzyła się brama garażowa, i nie bardzo mam pomysł jak to zrobić, w Scripts mam utworzone powiadomienie które sprawdza stan bramy co X minut, jednak nie potrafię wyciągnąć kiedy warunek zaistniał, może jakieś sugestie.
Utwórz pliki docker-compose.local.yml i wypełnij go podając nazwę swojej domeny i wewnętrzny adres IP RPi, a w .env dopisz tak jak napisane jest w cytowanym poście, żeby docker-compose uwzględnił ten plik podczas tworzenia obrazu i uruchamiania kontenera.
SOP 2023
SOP 2024
Czekam na kolejne Supla Offline Party : cz->b +ila
Utwórz pliki docker-compose.local.yml i wypełnij go podając nazwę swojej domeny i wewnętrzny adres IP RPi, a w .env dopisz tak jak napisane jest w cytowanym poście, żeby docker-compose uwzględnił ten plik podczas tworzenia obrazu i uruchamiania kontenera.
no i coś u mnie nie tak zrobiłem jak mówiłeś
utworzyłem plik docker-compose.local.yml w katalogu supla-scripts/docker, dodałem wpis w pliku .env i przy wydaniu komendy
clear
pi@raspberrypi:~/supla-scripts $ sudo git reset --hard HEAD^
HEAD is now at f8593b2 v2.8.3 :rocket:
pi@raspberrypi:~/supla-scripts $ git pull
Updating f8593b2..ccf39df
error: The following untracked working tree files would be overwritten by merge:
backend/app/authorization/IpRequestQuotaMiddleware.php
backend/app/authorization/JwtWithBodyAuthentication.php
backend/app/commands/ClearClientRegistrationCodesCommand.php
backend/app/commands/ClearRequestQuotaLogsCommand.php
backend/app/commands/OauthRefreshTokensCommand.php
backend/database/migrations/20181204225138_user_short_unique_id.php
backend/database/migrations/20181216004345_scene_condition.php
backend/database/migrations/20181216202223_scene_stack_in_pending_scene.php
backend/database/migrations/20181217165643_request_quota.php
backend/database/migrations/20190102075824_thermostat_failure_count.php
backend/database/migrations/20190103000234_user_token_expiration_time.php
backend/database/migrations/20190118203838_add_client_purpose.php
backend/database/migrations/20190122084752_add_client_registration_code.php
backend/models/BelongsToUser.php
backend/models/scene/FeedbackTwigExtension.php
backend/models/supla/OAuthClient.php
backend/models/supla/SuplaApiClientWithOAuthSupport.php
frontend/app/scenes/dropdown/scenes-dropdown.coffee
frontend/app/scenes/dropdown/scenes-dropdown.html
frontend/app/user/automate/user-automate-settings.coffee
frontend/app/user/automate/user-automate-settings.html
frontend/app/user/automate/user-automate-settings.scss
frontend/app/user/login-form/login-with-supla.coffee
frontend/app/user/login-form/login-with-supla.html
frontend/app/user/login-form/login-with-token.coffee
frontend/app/user/login-form/login-with-token.html
frontend/app/user/oauth/authorize-page.coffee
frontend/app/user/oauth/authorize-page.html
Please move or remove them before you merge.
Aborting
pi@raspberrypi:~/supla-scripts $
Last edited by PuteR on Mon May 13, 2019 5:27 pm, edited 1 time in total.
pi@raspberrypi:~/supla-scripts $ sudo git reset --hard HEAD^
HEAD is now at f8593b2 v2.8.3 :rocket:
pi@raspberrypi:~/supla-scripts $ git pull
Updating f8593b2..ccf39df
error: The following untracked working tree files would be overwritten by merge:
backend/app/authorization/IpRequestQuotaMiddleware.php
backend/app/authorization/JwtWithBodyAuthentication.php
backend/app/commands/ClearClientRegistrationCodesCommand.php
backend/app/commands/ClearRequestQuotaLogsCommand.php
backend/app/commands/OauthRefreshTokensCommand.php
backend/database/migrations/20181204225138_user_short_unique_id.php
backend/database/migrations/20181216004345_scene_condition.php
backend/database/migrations/20181216202223_scene_stack_in_pending_scene.php
backend/database/migrations/20181217165643_request_quota.php
backend/database/migrations/20190102075824_thermostat_failure_count.php
backend/database/migrations/20190103000234_user_token_expiration_time.php
backend/database/migrations/20190118203838_add_client_purpose.php
backend/database/migrations/20190122084752_add_client_registration_code.php
backend/models/BelongsToUser.php
backend/models/scene/FeedbackTwigExtension.php
backend/models/supla/OAuthClient.php
backend/models/supla/SuplaApiClientWithOAuthSupport.php
frontend/app/scenes/dropdown/scenes-dropdown.coffee
frontend/app/scenes/dropdown/scenes-dropdown.html
frontend/app/user/automate/user-automate-settings.coffee
frontend/app/user/automate/user-automate-settings.html
frontend/app/user/automate/user-automate-settings.scss
frontend/app/user/login-form/login-with-supla.coffee
frontend/app/user/login-form/login-with-supla.html
frontend/app/user/login-form/login-with-token.coffee
frontend/app/user/login-form/login-with-token.html
frontend/app/user/oauth/authorize-page.coffee
frontend/app/user/oauth/authorize-page.html
Please move or remove them before you merge.
Aborting
pi@raspberrypi:~/supla-scripts $