QUESTION How a telemetry value can be shared directly into a 3rd party app?

Discussion in 'Apps' started by FitbyBit, Apr 2, 2023.

  1. FitbyBit

    FitbyBit New Member

    Joined:
    Jan 10, 2022
    Messages:
    10
    Likes Received:
    4
    I need to share current gear number.
    I have a python app which should receive this value.

    The problem is this app works in different python version, and cannot work within built-in Python 3.3 (because of installed packages, etc.).

    Any mod can be written to help with that from AC side, but which solution shall be used?

    There are plenty of apps which uses somehow data from AC (SimHub, RealHeadMotion, but didn't find any written in Python.

    P.S. Thought shared memory could be used, but that's not what it's designed for.
     
  2. fughettaboutit

    fughettaboutit aka leBluem

    Joined:
    Jul 21, 2014
    Messages:
    1,125
    Likes Received:
    383
    i can use shared mem lib "sim_info.py" just fine with python 3.9
    Code:
    from sim_info import info
    while True:
      print('\r' + str(info.physics.gear), end='')
    
    beware 0=reverse, 1=neutral, 2=1st ... between every shift it goes to 1
     
    Last edited: Apr 3, 2023
    FitbyBit likes this.
  3. FitbyBit

    FitbyBit New Member

    Joined:
    Jan 10, 2022
    Messages:
    10
    Likes Received:
    4
    Thanks for this solution. Yeah, took it as base solution.
    I didn't understand before how it can be read in other app. Now it's clear.
     
    fughettaboutit likes this.
: mod, python, telemetry
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice