Coder Social home page Coder Social logo

php-vw-car-net's Introduction

It's me, Tom Smith! πŸ‘‹

I've been crafting web applications professionally for kind of a long time.

...and some of them have even been sort of good.

🧰 Disciplines/Tools I Use Pretty Much Every Day...

  • PHP / Laravel
  • MySQL / NoSQL
  • HTML / CSS / JS, of course
  • Git / PHPUnit

πŸ“š Books I'm Currently Reading...

  • The Sixth Extinction by Elizabeth Kolbert
  • Laravel Up & Running by Matt Stauffer
  • Design Patterns by The Gang of Four
  • C Programming Language by Dennis Ritchie and Brian Kernighan

πŸ”¨ Stuff I've Been Tinkering With Lately...

  • Laravel Livewire
  • Tailwind
  • Reverse-engineering APIs that aren't meant for public use
  • Insomnia (the app, not the disorder)
  • Vue

πŸ”— itsmetomsmith.com | πŸ“« [email protected] | 🐦 @varwwwhtml

php-vw-car-net's People

Contributors

thomasesmith avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

php-vw-car-net's Issues

Getting "cURL Error 0" in certain environments

I am getting the following error when trying to use this package in a new environment.

An attempt to call the authenticate() method throws an exception with message: "cURL error 0: The cURL request was retried 3 times and did not succeed. The most likely reason for the failure is that cURL was unable to rewind the body of the request and subsequent retries resulted in the same error."

I am trying to find a fix.

Testing European accounts

I have a 2018 Volkswagen Passat with Car-Net and WeConnect and would love to remotely read the mileage and fuel level of my vehicle. I've tried using your code to connect to my account but unfortunately it doesn't work, probably due to differences between US and EU accounts. If you'd like, I could help you test this using my account.

Getting 500 Internal Service Error and Curl Error 60

At first I got a cURL error 60: SSL certificate problem when the code tries to get the login form. So I changed the GuzzleHttp Client with 'verify' => false.
image
That seemed to fix the error. But now I keep getting a 500 Internal Service Error when I try to get the auth tokens
image

Can you help me figure out why this is the case?

Install issue

Thomas, I tried to install your wrapper using composer as you explained in the wiki. I am getting the following errors:

$ composer require thomasesmith/php-vw-car-net
Using version ^0.2.2 for thomasesmith/php-vw-car-net
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Installation request for thomasesmith/php-vw-car-net ^0.2.2 -> satisfiable by thomasesmith/php-vw-car-net[v0.2.2].
    - thomasesmith/php-vw-car-net v0.2.2 requires ext-simplexml * -> the requested PHP extension simplexml is missing from your system.

  To enable extensions, verify that they are enabled in your .ini files:
    - /etc/php/7.2/cli/php.ini
    - /etc/php/7.2/cli/conf.d/10-opcache.ini
    - /etc/php/7.2/cli/conf.d/10-pdo.ini
    - /etc/php/7.2/cli/conf.d/20-calendar.ini
    - /etc/php/7.2/cli/conf.d/20-ctype.ini
    - /etc/php/7.2/cli/conf.d/20-exif.ini
    - /etc/php/7.2/cli/conf.d/20-fileinfo.ini
    - /etc/php/7.2/cli/conf.d/20-ftp.ini
    - /etc/php/7.2/cli/conf.d/20-gettext.ini
    - /etc/php/7.2/cli/conf.d/20-iconv.ini
    - /etc/php/7.2/cli/conf.d/20-json.ini
    - /etc/php/7.2/cli/conf.d/20-phar.ini
    - /etc/php/7.2/cli/conf.d/20-posix.ini
    - /etc/php/7.2/cli/conf.d/20-readline.ini
    - /etc/php/7.2/cli/conf.d/20-shmop.ini
    - /etc/php/7.2/cli/conf.d/20-sockets.ini
    - /etc/php/7.2/cli/conf.d/20-sysvmsg.ini
    - /etc/php/7.2/cli/conf.d/20-sysvsem.ini
    - /etc/php/7.2/cli/conf.d/20-sysvshm.ini
    - /etc/php/7.2/cli/conf.d/20-tokenizer.ini
  You can also run `php --ini` inside terminal to see which files are used by PHP in CLI mode.

Installation failed, reverting ./composer.json to its original content.

How can I fix this (I am not a php expert)
Thx Stephan

I am running into the issue: Class 'PHPUnit\Framework\TestCase' not found

Thanks - now I am running into the next issue:

Fatal error: Uncaught Error: Class 'PHPUnit\Framework\TestCase' not found in /home/stephan/GitHub/vendor/thomasesmith/php-vw-car-net/tests/AuthenticationTest.php:20 Stack trace: #0 {main} thrown in /home/stephan/GitHub/vendor/thomasesmith/php-vw-car-net/tests/AuthenticationTest.php on line 20

I could not find the definition of the class β€žTestCaseβ€œ

Originally posted by @mtbsteve in #3 (comment)

Failed opening required vendor/autoload.php

Thomas, me again. I am getting the following error once I try to execute the AuthentificationTest.php script:

Β  | <b>Warning</b>:  require_once(vendor/autoload.php): failed to open stream: No such file or directory in <b>/home/stephan/GitHub/vendor/thomasesmith/php-vw-car-net/tests/AuthenticationTest.php</b> on line <b>5</b><br />
Β  | <br />
Β  | <b>Fatal error</b>:  require_once(): Failed opening required 'vendor/autoload.php' (include_path='.:/opt/lampp/lib/php') in <b>/home/stephan/GitHub/vendor/thomasesmith/php-vw-car-net/tests/AuthenticationTest.php</b> on line <b>5</b><br />

I use the XAMPP - Apache webserver and I Installed your code with composer as shown in the readme. The file vendor/autoload.php exists. The only modification I made it to include my carnet credentials into the _config.example.php file.
Any idea what I am doing wrong here?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.