Function hosting
We created our EOBD function to read out the VIN. We can start it by hand.
Run script from Replit (command-line)
- Run your openOBD script and make sure it runs and reads out the VIN from the virtual remote.
openobd python -m openobd run --file myfunctions/<yourfile.py> --ticket <ticketnr>

- The output should show log the VIN and finish without errors.
Show your function in partner dashboard
We can also serve our function to the dashboard for all operators of our expert desk to use!
Run script from dashboard
- First, make sure that the name of your script reflects somethin unique (to identify your script in the dashboard)
- Change the
namefield in your EOBD script to something likename = "Gerhards VIN" - Delete the other test script (to prevent polution of our openOBD function list), so we have only the EOBD script.
- Change the
- Now, we can host our function for experts to use. In order to do this we need a separate shell from which we start the hosting.
- On a separate shell run:
python -m openobd serve --modules myfunctions

-
The output should show that the EOBD function is being served, and the program should keep running (until
ctrl+c, but we keep it live). -
Now, check on your ticket in the 'Automation' pane that your function can be selected from the list. First, select the
Addbutton on theAutomationpane on the right in your ticket view.

- In the list we can look up our function and
selectit for execution.

- Check the output of your shell in the Replit application.

-
The output should show something like above (indicating an incoming request to run the EOBD function)
-
Important: When you are done, do not forget to stop the serving process by entering
ctrl+cin the shell.
Important
When you are done, do not forget to stop the serving process by entering ctrl+c in the shell.