gcWorld / IBISdroid

IBISdroid plugin - Installer Version
0 stars 0 forks source link

Easy way to extend ibiscontrol-1 #2

Open Joost1991 opened 11 months ago

Joost1991 commented 11 months ago

Hi!

I'm using your created IBISDroid.dll to create a small plugin for my Streamdeck.

I want to show the time until next stop, which is not included yet in the websocket (ibiscontrol-1).

Is there a easy way to extend the way ibiscontrol-1 outputs data?

gcWorld commented 11 months ago

Hi,

are we talking OMSI 1 or OMSI 2 here? For OMSI 1 I won't be able to update anything. For OMSI 2 this could be done, I'd have to look at the code (but it would be the newer IBIScontrol Plugin). For LOTUS I have a tech demo for a Streamdeck plugin if you are interested: https://github.com/gcWorld/LOTUS-IBIScontrol-Stream-Deck

Also, what do you mean by time until next stop? I don't recall this being a default information?

Joost1991 commented 11 months ago

Hi,

Thanks for the response!

I'm talking about OMSI 2. I saw your LOTUS version indeed, really nice. Only not owning that right now, so cannot really do anything with it.

I am not sure if we can include variables that are coming from the timetables.

https://steamuserimages-a.akamaihd.net/ugc/667954602088492947/E9ADBBAB8A0D164B83C9EECB0C48C883B5D1D951/?imw=5000&imh=5000&ima=fit&impolicy=Letterbox&imcolor=%23000000&letterbox=false

If you look at top of the screenshot, I would like the value that is behind the Delay:, the 0.7 min part.

I created a Python plugin myself to control the Streamdeck, connect to the websocket and poll the ibiscontrol plugin. Really works well and I could share it if you are interested.

gcWorld commented 11 months ago

Hi,

I don't think theres a default way to access that delay information. What is possible is grabbing the delay time from the IBIS2 If i remember correctly the IBIS1 didn't have that information. In the IBIScontrol Plugin you have:

    IBIS_delay_sign = n[27]
    IBIS_delay_min = n[28]
    IBIS_delay_sec = n[29]

Sure, please do. I'm always interested in more ways to interact with it.