Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Server updates #17

Open
wants to merge 20 commits into
base: master
Choose a base branch
from

Commits on Aug 20, 2024

  1. feat(interface): define a device-owned interface to send data

    The interface allows generic sensors to stream samples data in double
    format.
    The interface is the same as the one defined in the
    stream-qt5-test astarte-platform repository
    
    Signed-off-by: Riccardo Gallo <[email protected]>
    rgallor committed Aug 20, 2024
    Configuration menu
    Copy the full SHA
    9fb9ed2 View commit details
    Browse the repository at this point in the history
  2. feat(deps): add deps for logging and error reporting

    Introduce:
    - `color_eyre` to have a structured report handler
    - `tracing_subscriber` to collect scoped, structured and async-aware log data
    
    Signed-off-by: Riccardo Gallo <[email protected]>
    rgallor committed Aug 20, 2024
    Configuration menu
    Copy the full SHA
    1d17222 View commit details
    Browse the repository at this point in the history

Commits on Nov 7, 2024

  1. feat(math): define math functions to send data

    This required also the introduction of some environment variables and
    structures to handle the generation of the samples to be sent to
    Astarte.
    For simplicity, the math functions are the same as the ones used in the
    stream-qt5-test repository.
    
    Signed-off-by: Riccardo Gallo <[email protected]>
    rgallor committed Nov 7, 2024
    Configuration menu
    Copy the full SHA
    e0cb23c View commit details
    Browse the repository at this point in the history
  2. feat(clap): add CLI to start the application

    Use clap to start the application, also taking into account possible
    environment variables set by the user.
    
    Signed-off-by: Riccardo Gallo <[email protected]>
    rgallor committed Nov 7, 2024
    Configuration menu
    Copy the full SHA
    c0b1a87 View commit details
    Browse the repository at this point in the history
  3. refactor(config): update astarte device config

    Now the configuration information to connect a device to Astarte are
    provided inside a `astarte-device-DEVICE_ID_HERE-conf` directory, in
    a `config.toml` file. Instead, all the information necessary to generate
    samples to be sent to Astarte are provided via CLI or environment
    variables.
    Also the README have been update to explain how to configure the
    application and build/run it.
    
    Signed-off-by: Riccardo Gallo <[email protected]>
    rgallor committed Nov 7, 2024
    Configuration menu
    Copy the full SHA
    eccec52 View commit details
    Browse the repository at this point in the history
  4. chore(deps): update sdk to 0.8.4

    Signed-off-by: Riccardo Gallo <[email protected]>
    rgallor committed Nov 7, 2024
    Configuration menu
    Copy the full SHA
    e61140a View commit details
    Browse the repository at this point in the history
  5. feat(atsarte): provide astarte cfg

    Provide the Atsarte configuration via environment variables or config.toml file, prioritizing env vars
    
    Signed-off-by: Riccardo Gallo <[email protected]>
    rgallor committed Nov 7, 2024
    Configuration menu
    Copy the full SHA
    6393b2d View commit details
    Browse the repository at this point in the history
  6. refactor(log): use EnvFilter to log only the application logs

    Signed-off-by: Riccardo Gallo <[email protected]>
    rgallor committed Nov 7, 2024
    Configuration menu
    Copy the full SHA
    5edc336 View commit details
    Browse the repository at this point in the history
  7. refactor(mod): simplify main by adding cli and astarte modules

    Signed-off-by: Riccardo Gallo <[email protected]>
    rgallor committed Nov 7, 2024
    Configuration menu
    Copy the full SHA
    3ba7e12 View commit details
    Browse the repository at this point in the history
  8. feat(msghub): allow connection to the astarte message hub

    Signed-off-by: Riccardo Gallo <[email protected]>
    rgallor committed Nov 7, 2024
    Configuration menu
    Copy the full SHA
    6ae284e View commit details
    Browse the repository at this point in the history
  9. refactor(connection): decide which connection to astarte use

    Give more flexibility to choose the mqtt or grpc Astarte connection
    configuration by using the CLI, environment variables and a config.toml
    file
    
    Signed-off-by: Riccardo Gallo <[email protected]>
    rgallor committed Nov 7, 2024
    Configuration menu
    Copy the full SHA
    d59721d View commit details
    Browse the repository at this point in the history
  10. chore(ci): update Windows check with sqlite-static

    Signed-off-by: Riccardo Gallo <[email protected]>
    rgallor committed Nov 7, 2024
    Configuration menu
    Copy the full SHA
    391f51b View commit details
    Browse the repository at this point in the history
  11. feat(test): implement tests for the astarte config builder

    Signed-off-by: Riccardo Gallo <[email protected]>
    rgallor committed Nov 7, 2024
    Configuration menu
    Copy the full SHA
    06c0eb4 View commit details
    Browse the repository at this point in the history
  12. refactor(log): simplify the set up of EnvFilter

    Signed-off-by: Riccardo Gallo <[email protected]>
    rgallor committed Nov 7, 2024
    Configuration menu
    Copy the full SHA
    67bf216 View commit details
    Browse the repository at this point in the history
  13. fix(math): correct and simplify some math functions

    Signed-off-by: Riccardo Gallo <[email protected]>
    rgallor committed Nov 7, 2024
    Configuration menu
    Copy the full SHA
    ba6c64d View commit details
    Browse the repository at this point in the history

Commits on Nov 26, 2024

  1. refactor(con): change retrieval of Astarte config

    Now it is only possible to specify the type of connection (mqtt or grpc)
    through the ASTARTE_CONNECTION env variable. The application will first
    try to retrieve the config from env; if an error occurs, it tries to
    retrieve them from a config.toml (if a path has beem specified). The
    merge operation for the 2 sources of config has been removed.
    
    Signed-off-by: Riccardo Gallo <[email protected]>
    rgallor committed Nov 26, 2024
    Configuration menu
    Copy the full SHA
    6db96f7 View commit details
    Browse the repository at this point in the history

Commits on Nov 27, 2024

  1. refactor(math): remove unused From impl

    Signed-off-by: Riccardo Gallo <[email protected]>
    rgallor committed Nov 27, 2024
    Configuration menu
    Copy the full SHA
    bc38219 View commit details
    Browse the repository at this point in the history
  2. feat(docker): containerize the application

    In this commit:
    - Define scripts, env file and Dockerfile to build and run the container
    - Get astarte config from env vars
    - Add dependabot checks for docker
    - Update Readme with the information to build and run a docker container
    
    Signed-off-by: Riccardo Gallo <[email protected]>
    rgallor committed Nov 27, 2024
    Configuration menu
    Copy the full SHA
    85f5a4f View commit details
    Browse the repository at this point in the history
  3. feat(shutdown): handle SIGINT/SIGTERM signals

    Gracefully shut down all the active tasks when SIGINT or SIGTERM
    signals are received.
    
    Signed-off-by: Riccardo Gallo <[email protected]>
    rgallor committed Nov 27, 2024
    Configuration menu
    Copy the full SHA
    7499604 View commit details
    Browse the repository at this point in the history
  4. feat(server): modify the stream through server-owned stream

    Update the math function, the scale and the interval between two samples
    through a server-owned datastream interface
    
    Signed-off-by: Riccardo Gallo <[email protected]>
    rgallor committed Nov 27, 2024
    Configuration menu
    Copy the full SHA
    08a76c4 View commit details
    Browse the repository at this point in the history