mtbsteve / VolkswagenID3-widgets

Some useful widgets based on iobroker
2 stars 0 forks source link

Installation problems #2

Open usauerbrey opened 3 years ago

usauerbrey commented 3 years ago

hi mbtsteve

Thanks for providing the vw adapter and the widgets. But I was not sucessful in using the widgets. Step 1.-4. are ok, and I find my ID.3 with the correct VIN an the charging status, etc. Thats fine. But it started with step 5. I assume I had to install adapter jave.script which I did. Than the scripts section was available. I imported the cado of charging_menu and of the charging_scheduler_functions into the scrpts section. Now, I have no idea where or how to create the user variables in 0_userdata.0 as listed in the javascript code. Which one to create. Next: I have installed VW-Adapter 0.0.23 but could not find "little github icon in the adapter menu"

Then you may import the views and the corresponding js code. Ensure that you adopt the VIN placeholder with your VIN in the code. But which views and where to import it. Where or how to see the ui?

Please be patient, but I have never used iobroker, I just want to see the ID.3. I do my homeautomation with node-red.

Thanks for your help Best Regards Uwe

mtbsteve commented 3 years ago

Hi Uwe, no problem. I forgot to mention that you need also to install the VIS (Visualization) plugin which provides an UI editor and alows to import the javascript views. The github icon is in the icon bar in the upper left side of the adapters section in IOBroker. You need to enter the url to the vw-connect github in order to install the latest version. You can create the user-defined variables when you go the Objects section in IOBroker, select the top object 0_userdata.0, then click on the + (plus) icon and then enter the variables one by one as they are used in the blockly javascript code.

usauerbrey commented 3 years ago

Hi Steve

Thanks for your answer, but:

  1. I have installed VIS, which are the views?
  2. Github was not successful: $ ./iobroker url "https://github.com/mtbsteve/VolkswagenID3-widgets.git" --debug Info: Can not get current GitHub commit, we remember master branch only. Status: 422 (No commit found for SHA: master) install https://github.com/mtbsteve/VolkswagenID3-widgets/tarball/master NPM version: 6.14.10 npm install https://github.com/mtbsteve/VolkswagenID3-widgets/tarball/master --loglevel error --prefix "/opt/iobroker" (System call) npm ERR! code E404 npm ERR! 404 Not Found - GET https://codeload.github.com/mtbsteve/VolkswagenID3-widgets/legacy.tar.gz/masternpm ERR! 404 npm ERR! 404 'https://github.com/mtbsteve/VolkswagenID3-widgets/tarball/master' is not in the npm registry.npm ERR! 404 Your package name is not valid, because npm ERR! 404 1. name can only contain URL-friendly charactersnpm ERR! 404 2. name can no longer contain capital lettersnpm ERR! 404 npm ERR! 404 Note that you can also install from anpm ERR! 404 tarball, folder, http url, or git url.

npm ERR! A complete log of this run can be found in:npm ERR! /home/iobroker/.npm/_logs/2021-01-14T07_32_15_384Z-debug.log ERROR: host.raspberrypi Cannot install https://github.com/mtbsteve/VolkswagenID3-widgets/tarball/master: 1 ERROR: process exited with code 25

  1. I found the object 0_userdata.0, but "variables one by one as they are used in the blockly javascript code." I do not find the variables, could you please list them. You are talking about blockly code, I could not import blockly code, only pure javascript code

Thanks Uwe

mtbsteve commented 3 years ago

Hi Uwe, as described in the readme, you need to install the vw-connect adapter via the github icon, NOT this repository. This code here is not an adapter, but just a snapshot of my code for my views and the javascript converted code of the blocklys.

the user variables and type I am currently using are:

ChargingState boolean 
climatisationState boolean  
endtime string  
endtimeclima boolean
starttime string
starttimeclima  string
timeractive boolean
timercharging   boolean
timerclima  boolean
timerclimaactive    boolean
usauerbrey commented 3 years ago

Hi Steve

Its me again ;-) I stepped a little bit further, now: "Then you may import the views and the corresponding js code. Ensure that you adopt the VIN placeholder with your VIN in the code."

  1. What are the ´views? climatisation_menu and iobroker-main-menu ???
  2. What is the corresponding js code?? Where to import it, in VIS ?

Thanks Uwe

mtbsteve commented 3 years ago

Screenshot from 2021-01-16 15-30-42