Skip to content

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>

Run CLI

  • 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 name field in your EOBD script to something like name = "Gerhards VIN"
    • Delete the other test script (to prevent polution of our openOBD function list), so we have only the EOBD script.
  • 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

Hosting EOBD

  • 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 Add button on the Automation pane on the right in your ticket view.

Automation add

  • In the list we can look up our function and select it for execution.

Automation select

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

Function served

  • 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+c in the shell.

Important

When you are done, do not forget to stop the serving process by entering ctrl+c in the shell.