Comments (19)
Hey @glsf91,
I didn't manage to make the entire setup work (and I'll reply with the details of my current issue as soon as possible), but I stumbled upon that error and got it working by first issuing:
composer install
in the /web directory.
Afterwards you can resume with artisan.
Best regards!
from gbridge.
Thanks. I'am trying to install this also locally. Apache, PHP, mysql and Composer is installed.
When I run: php artisan migrate
I get the error:
PHP Warning: require(/var/www/xxx/web/vendor/autoload.php): failed to open stream: No such file or directory in /var/www/xxx/web/artisan on line 18
I just downloaded the zip from github and put the web folder in /var/www/xxx/.
I have indeed no vendor directory in the web folder. It is also not in the download from github.
How do I get this directory?
from gbridge.
@nonsintetic @ispeaknousa
I'am completed the installation. I can also login on my local gbrigde.
At google account linking I have to add a url like /gbrigde/gapi/auth.
But at my local website there is no /gbrigde/gapi/auth.
What to do?
Also something else:
https:// is changed to https:///device and gives a 404
https:///index.php is working but changed to https:///index.php/device
That looks wrong.
from gbridge.
The link you need depends on how you setup your webserver. It's basically /gapi/auth . If the address you use to login is yourdomain.com/login, then the url you want for google is yourdomain.com/gapi/auth. If it is yourdomain.com/gbridge, then you'd use yourdomain.com/gbridge/gapi/auth.
Make sure you use https for the url and it actually works. You can access the url before entering it into google, if it gives you something (not 404, page not found etc.) it should be ok.
from gbridge.
@nonsintetic
Thanks now I understand a little more.
Problem is my login is: https://yourdomain.com/index.php/login. And indeed https://yourdomain.com/index.php/login/gapi/auth is working.
But how do I get rid off index.php in de url ?
I only kan get access to the site with https://yourdomain.com/index.php instead of https://yourdomain.com/
I use apache and in my virtual host there is:
DocumentRoot /var/www/yourdomain/web/public/
from gbridge.
You need to enable the 'mod_rewrite' php module. That will rewrite the URLs to not have index.php. The website has a .htaccess file that will handle all that part
from gbridge.
Thanks. rewrite was enable but I had to add AllowOverride All
from gbridge.
It is working now. I did a lot of things to make it work.
Biggest problem was the vendor folder was not there. I first created a new laravel project with the right version (5.5) and copied it from there.
from gbridge.
The vendor folder is usually created by composer install
when it pulls the proper dependencies listed in the composer config file (there's one in the web folder). Glad you got it working though.
from gbridge.
Ok, here's my issue: whenever I try to change the user password, the next error is being raised by laravel:
preg_match(): Compilation failed: escape sequence is invalid in character class at offset 46 at /opt/gBridge/web/vendor/laravel/framework/src/Illuminate/Validation/Concerns/ValidatesAttributes.php:1069)
which appears to be the function which validates password characters.
This seems strange because my password matches the regex from here (it includes letters, numbers and a special character).
Is anyone else experiencing the same behavior?
Software versions:
- PHP: 7.3.12
- Laravel: 5.5.45
- Composer: 1.9.1
from gbridge.
That password error only appears in PHP 7.3+ where they changed the PHP PCRE engine version. The new version is incompatible in some cases. The problem is most likely related to a hyphen not being escaped. You can either modify the pattern used by preg_match in that file, or use a lower php version. Should be a different issue since it's not related to self-hosted or not.
from gbridge.
Is anyone else experiencing the same behavior?
Software versions:
- PHP: 7.3.12
- Laravel: 5.5.45
- Composer: 1.9.1
No issue here. I use PHP 7.2
from gbridge.
Thank you both!
I've left it running with 7.3 (manually changed the password in the database) and I'll open a separate ticket for it.
Another thing related to self-hosting: the .env
properties file is cached by artisan, so if anyone has to adjust some properties, the command php artisan config:clear
has to be run, otherwise the new changes will not be taken into consideration.
from gbridge.
Do you think it can run on a raspberry pi model b? Would it be possible to download an image with everything setup or does it need to be installed separately?
from gbridge.
Do you think it can run on a raspberry pi model b? Would it be possible to download an image with everything setup or does it need to be installed separately?
That's what I run it on, it barely uses any resources, you'd probably be able to run it on a Pi Zero too. The SSL certificate and domain setup would have to be automated somehow since it's different on each install.
from gbridge.
Is this solution still works? I see the messages are 1 year old and I want to install it for myself. I know gbridge is not developed anymore.
from gbridge.
Have not used it since then. Can't say for sure.
from gbridge.
I'am still using it.
from gbridge.
I setuped the code and its working for me. I have an issue
can you please help me out with google auth with response_type as code instead token
Google stopped Oauth implicit method
https://gbridge.kappelt.net/gapi/auth?
response_type=token
&client_id=yBNscwpWneC3MfBp2t3crxfKSDnpz5MYKMbLg2affznBRtPU
&redirect_uri=https://oauth-redirect.googleusercontent.com/r/kappelt-gbridge
&state=AGsGMl1UTVQiyrwwXcN9bRD_VOoVjOdpQDrzOV8XkadjixFPIzaeRuX5rAeV6G7UqfJZn0zuJ55o6SRUi5mlpXXKweVA1cJBGMGVBYbTTi1RnB8ucg9xY9t7xROKk9p5G56b5OOThnjSbP_uixtRgm_rQSZchCF0tReNk7UpaZJU3xo9t_OtkGDDfONODMIM11JUPImcwcT_hszUwFc4uuQvzVl3RU50dES18vfLRSRkoI0hppSF9NSAaAv9l_DYyr486A7Bi1q_Q0KMS6Tu9r3jyoWoTYfR8Qa69Eir9Zr7RtLP-6m4ULE7BU9I21Zu1SMpETBuo483pH3iXS9dDg0OL4Gsc8up2WhbNS22ssEfx8j_VPRsm9Gb7MEU145IipZ8gwdjy-PhCvMpGYRcTDmkFuUzuWyjJSL2S4IGfDtKh4DVvTPGQbuQWFVF5aaVBqmsRB9xG1evXW5P-RGbK2PTPs_J4FzRgdossUMrPziFbDFCw3UtRDXa2jfT3R5SBedGhR5mYJOKBXIowX8Vmx3PnHGwHXiXnu5dDNrrbjbh4X0-ogJXaNVRBQ99XkzMrhDcpEMw4E-1LZ-fnqrS_fVWPNBCFYVNYIQU_qAzg3ONns01bDemuRYAD1j174-jYKM99mV1Qu1b90y8Nvs-Ejs3AVza6g3n8w
/gapi/auth?
response_type=code
&client_id=12345600457
&redirect_uri=https://oauth-redirect.googleusercontent.com/r/gbridge-999b
&state=AGsGMl0FqwFDxsArzV92Pj
Thank You
from gbridge.
Related Issues (20)
- this site is down ?
- Mqtt connection via PubSubClient on ESP12/32 fails HOT 1
- Repeating messages (Spam from gbridge) HOT 1
- Fan speed setting causes a page error
- Device mode does not match
- mosquito_sub Connection Refused: not authorised. HOT 23
- Code not up to date
- confirmation email yet
- gBridge : status topic is not working.
- Support contact emails? HOT 6
- Turn this service into an open-source community project HOT 3
- Server Down? HOT 10
- Mqtt connection fails after working for a couple of days. HOT 1
- ColorSetting RGB documentation missing
- Cannot seem to have @ symbol in password
- Self-Hosted Linking "Invalid Redirect Request" HOT 2
- Page expired error - Account linking HOT 1
- Google Actions changed from home control to Smart Home HOT 11
- Status Topic Same for all devices
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gbridge.