-
Notifications
You must be signed in to change notification settings - Fork 70
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Redis issue #2
Comments
Do you have the php-redis extension installed? |
Also, configure the redis settings as your current environment at https://github.com/eusonlito/GPS-Tracker/blob/e5f33bb89d24390a9d5bb69cd4547f3f79ae3999/.env.example#L47:L49 Maybe host as localhost and port 6379. |
Yes, it was actually that simple, thank you! -- I had some issues during my composer install and completely forgot to circle back to this |
You can comment any issue (like the composer one) in a new issue to help me to improve setup and usage :) Thanks! |
@eusonlito have you tested this with the sinotrack st-902 OBD version? I have updated the server URL using the default sinotrack software, which was a bit of a pain, but not seeing data in my logs. Is there a good way to test the server port using Curl or something to send it well structered data as a test? Also, can I leave my server in "debug" mode at all times? What does that actually do? |
Do you have running the server at port 8091? See Debug mode creates a new log file with Check You can test the request open your url from browser like https://domain.com:8091 |
Anyway all Sinotrack devices uses the same H02 protocol, it should work as st-901 or st-906. |
After some researching, the ST-902 is using a different protocol named Husbao https://www.traccar.org/forums/topic/decode-obd-data-from-st-902/ I'm going to open a new issue to add support to this protocol, but I need some time to test it. |
Related issue #5 Can you upload the debug log? Some sources say that is the same as H02 protocol. You can create a new server in your installation with the protocol |
Yes, will do! My device is not communicating with me now, I think after it wasnt able to connect to the server it takes a few hours to go back to the default server -- but I will let you know when I can test that. I did notice 1 error in the laravel log, not the server log, not sure if related:
|
Yes, it is a normal error (laravel log) since in PHP it is not possible to know if the client of a socket connection is still connected or not, so you must always try to read (and be prepared for failure). |
I am finally getting around to setthing this up. I pulled the repo and the Code is working, I added my car, etc.
I havent setup my tracker yet, but I noticed in the Logs I see
[2023-01-31 16:01:31] develop.ERROR: No such file or directory {"exception":"[object] (RedisException(code: 0): No such file or directory at /home/forge/myDomain.com/vendor/laravel/framework/src/Illuminate/Redis/Connectors/PhpRedisConnector.php:161)
Repeated over and over again. Have you seen this before?
The text was updated successfully, but these errors were encountered: