Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Databroker: No timestamps for target values #434

Closed
SebastianSchildt opened this issue Dec 9, 2022 · 1 comment
Closed

Databroker: No timestamps for target values #434

SebastianSchildt opened this issue Dec 9, 2022 · 1 comment
Labels
Databroker Issues related to databroker (core) PI10 PI10 content

Comments

@SebastianSchildt
Copy link
Contributor

What happens

When querying target values, the Datapoints contain no timestamp

Expectation

When querying a target value there is a timestamp denoting when that target value was that. This timestamp is independent from current value timestamp, i.e. a single datapoint can (will) have different timestamps for both values

Reproduce

import asyncio

from kuksa_client.grpc import Datapoint
from kuksa_client.grpc.aio import VSSClient

async def main():
    async with VSSClient('127.0.0.1', 55556) as client:
        await client.set_target_values({
            'Vehicle.Body.Windshield.Front.Wiping.System.TargetPosition': Datapoint(45),
        })

        current_values = await client.get_target_values([
            'Vehicle.Body.Windshield.Front.Wiping.System.TargetPosition',
        ])
        print(current_values)

asyncio.run(main())

gives

{'Vehicle.Body.Windshield.Front.Wiping.System.TargetPosition': Datapoint(value=45.0, timestamp=None)}
@SebastianSchildt SebastianSchildt added the Databroker Issues related to databroker (core) label Dec 9, 2022
@SebastianSchildt SebastianSchildt added the PI10 PI10 content label Jan 24, 2023
@SebastianSchildt
Copy link
Contributor Author

Fixed by #474

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Databroker Issues related to databroker (core) PI10 PI10 content
Projects
None yet
Development

No branches or pull requests

1 participant