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

frontend: Add dashboard templates, version 0.1.0 without server functionality #40

Closed
wants to merge 26 commits into from

Commits on Jul 3, 2024

  1. frontend: Add dashboard templates, temp-endpoint

    This commit adds the basic dashboard templates for
    the various dashboards. Also adds a new endpoint
    for temperature data.
    
    Signed-off-by: Akarshan Kapoor <data.akarshan@icloud.com>
    
    Fix failing tests
    
    This commit tries to fix the failing tests
    
    Signed-off-by: Akarshan Kapoor <data.akarshan@icloud.com>
    
    Remove unused imports
    
    This commit removes trailing whitespaces and
    removes unused imports
    
    Signed-off-by: Akarshan Kapoor <data.akarshan@icloud.com>
    
    Removing Trailing Whitespaces
    
    Signed-off-by: Akarshan Kapoor <data.akarshan@icloud.com>
    
    Minor Fix
    
    Signed-off-by: Akarshan Kapoor <data.akarshan@icloud.com>
    Kappuccino111 committed Jul 3, 2024
    Configuration menu
    Copy the full SHA
    baa5d47 View commit details
    Browse the repository at this point in the history
  2. License Page Addition

    This commit introduces the license page to the project, along with
    an About dropdown menu.
    
    Signed-off-by: Akarshan Kapoor <data.akarshan@icloud.com>
    Kappuccino111 committed Jul 3, 2024
    Configuration menu
    Copy the full SHA
    65f0db9 View commit details
    Browse the repository at this point in the history

Commits on Jul 31, 2024

  1. Merge branch 'origin/main' into frontend

    This commit merges all the changes from the main
    branch into the frontend branch.
    
    Signed-off-by: Akarshan Kapoor <data.akarshan@icloud.com>
    Kappuccino111 committed Jul 31, 2024
    Configuration menu
    Copy the full SHA
    2132a49 View commit details
    Browse the repository at this point in the history
  2. Integrate new API from main with prev frontend PR

    This commit fixes all tests and also finishes
    integrating the new API schemes/serializers
    with the frontend
    
    Signed-off-by: Akarshan Kapoor <data.akarshan@icloud.com>
    Kappuccino111 committed Jul 31, 2024
    Configuration menu
    Copy the full SHA
    9a7c307 View commit details
    Browse the repository at this point in the history

Commits on Aug 1, 2024

  1. Finish all previous frontend changes

    This commit finishes all the frontend changes that
    were discussed in the previous meeting. Should be
    the first beta version of the frontend.
    
    Signed-off-by: Akarshan Kapoor <data.akarshan@icloud.com>
    Kappuccino111 committed Aug 1, 2024
    Configuration menu
    Copy the full SHA
    a13bd95 View commit details
    Browse the repository at this point in the history

Commits on Aug 4, 2024

  1. Update all necessary files for release 0.1.0

    This commit updates all necessary files for
    release 0.1.0.
    
    Signed-off-by: Akarshan Kapoor <data.akarshan@icloud.com>
    Kappuccino111 committed Aug 4, 2024
    Configuration menu
    Copy the full SHA
    07ad587 View commit details
    Browse the repository at this point in the history
  2. Basic Update

    This commit updates the license.html file
    
    Signed-off-by: Akarshan Kapoor <data.akarshan@icloud.com>
    Kappuccino111 committed Aug 4, 2024
    Configuration menu
    Copy the full SHA
    2cdfc4d View commit details
    Browse the repository at this point in the history
  3. Update all instances of FlowNexus to flownexus

    This commit updates all instances of FlowNexus to
    flownexus
    
    Signed-off-by: Akarshan Kapoor <data.akarshan@icloud.com>
    Kappuccino111 committed Aug 4, 2024
    Configuration menu
    Copy the full SHA
    3a81ed1 View commit details
    Browse the repository at this point in the history
  4. Update leftover instances of Flow Nexus

    Minor Update from Flow Nexus to flownexus
    
    Signed-off-by: Akarshan Kapoor <data.akarshan@icloud.com>
    Kappuccino111 committed Aug 4, 2024
    Configuration menu
    Copy the full SHA
    49c7f09 View commit details
    Browse the repository at this point in the history
  5. doc: build: fix west init command and align with workspace format

    Signed-off-by: Jonas Remmert <j.remmert@phytec.de>
    jonas-rem authored and Kappuccino111 committed Aug 4, 2024
    Configuration menu
    Copy the full SHA
    9e4256e View commit details
    Browse the repository at this point in the history
  6. doc: replace lwm2m_server

    Replace the former name lwm2m_server with the new official name
    flownexus.
    
    Signed-off-by: Jonas Remmert <j.remmert@phytec.de>
    jonas-rem authored and Kappuccino111 committed Aug 4, 2024
    Configuration menu
    Copy the full SHA
    2aab1d9 View commit details
    Browse the repository at this point in the history
  7. firmware: extend lwm2m client demo with temp/hum

    Add humidity sensor. Change default sensor to SHT40. If there is no
    actual temperature sensor (e.g. for Simulation) temp/hum values will be
    simulated randomly.
    
    Signed-off-by: Jonas Remmert <j.remmert@phytec.de>
    jonas-rem authored and Kappuccino111 committed Aug 4, 2024
    Configuration menu
    Copy the full SHA
    b1ad2bc View commit details
    Browse the repository at this point in the history
  8. leshan: add observations to status, result fields of the update obj

    Signed-off-by: Jonas Remmert <j.remmert@phytec.de>
    jonas-rem authored and Kappuccino111 committed Aug 4, 2024
    Configuration menu
    Copy the full SHA
    660ad50 View commit details
    Browse the repository at this point in the history
  9. django: enable execute send request

    LwM2M defines Execute Operations. Execute operations do not have a
    payload and are send to Leshan via POST request instead of PUT request.
    
    The LwM2M specification (Appendix C. Data Types) states that "none" "it
    exclusively concerns Executable Resource". Therefore to distinguish
    between execute operation and write operation the data type can be used.
    
    Signed-off-by: Jonas Remmert <j.remmert@phytec.de>
    jonas-rem authored and Kappuccino111 committed Aug 4, 2024
    Configuration menu
    Copy the full SHA
    f727398 View commit details
    Browse the repository at this point in the history
  10. django: fix error in resource types

    Resource types are added through an initial database list. This list had
    an issue and was not compliant with the LwM2M Specification.
    
    Signed-off-by: Jonas Remmert <j.remmert@phytec.de>
    jonas-rem authored and Kappuccino111 committed Aug 4, 2024
    Configuration menu
    Copy the full SHA
    682b44e View commit details
    Browse the repository at this point in the history
  11. django: enable firmware update

    Enable firmware update by:
    - adding a FirmwareUpdate list to the database model. The FirmwareUpdate
      list is keeping track of the execution of firmware updates for each
      endpoint. It adds references to the two required resources from server
      to endpoint (Send URI, execute Update). Furthermore it adds a field
      for the State and the Result of an update.
    - minor formatting improvements in models.py
    - Implement business logic that initiates an OTA (send PackageURI).
    - Implement remaining business logic in the base serializer. Django
      reacts on incoming Status/Result updates of the Update Object and
      updates the FirmwareUpdate representation. In addition it executes the
      update by default once the endpoint has downloaded the binary and
      notified django.
    
    Signed-off-by: Jonas Remmert <j.remmert@phytec.de>
    jonas-rem authored and Kappuccino111 committed Aug 4, 2024
    Configuration menu
    Copy the full SHA
    a71b095 View commit details
    Browse the repository at this point in the history
  12. django: db model: add migrations for FirmwareUpdate list

    Signed-off-by: Jonas Remmert <j.remmert@phytec.de>
    jonas-rem authored and Kappuccino111 committed Aug 4, 2024
    Configuration menu
    Copy the full SHA
    9e9e484 View commit details
    Browse the repository at this point in the history
  13. doc: document the OTA process

    Signed-off-by: Jonas Remmert <j.remmert@phytec.de>
    jonas-rem authored and Kappuccino111 committed Aug 4, 2024
    Configuration menu
    Copy the full SHA
    f6254ff View commit details
    Browse the repository at this point in the history
  14. doc: document ota updates

    Signed-off-by: Jonas Remmert <j.remmert@phytec.de>
    jonas-rem authored and Kappuccino111 committed Aug 4, 2024
    Configuration menu
    Copy the full SHA
    71228ac View commit details
    Browse the repository at this point in the history
  15. west: import all modules from zephyr

    Some modules have been missing when I tested several things. The easiest
    way is to just import all modules. The download time is reasonable, so
    there are no major disadvantages.
    
    Signed-off-by: Jonas Remmert <j.remmert@phytec.de>
    jonas-rem authored and Kappuccino111 committed Aug 4, 2024
    Configuration menu
    Copy the full SHA
    f2bbd3e View commit details
    Browse the repository at this point in the history
  16. simulate: DL_SERVER: Add new KConfig symbol for DL Server URL

    The download server for OTA updates could be different from the regular
    server. The ota update does not send a complete URL, but only a path.
    The host of the url is fixed in firmware.
    
    This is a security feature to make sure the clients can never download
    firmware from another than the specified server domain.
    
    Signed-off-by: Jonas Remmert <j.remmert@phytec.de>
    jonas-rem authored and Kappuccino111 committed Aug 4, 2024
    Configuration menu
    Copy the full SHA
    35bbb3a View commit details
    Browse the repository at this point in the history
  17. simulation: lwm2m_client: revise sample

    - Add support for TLS Encryption (via Let's Enrypt Root CA)
       - Server has to support TLS_RSA_WITH_AES_128_GCM_SHA256
       - Future versions will move to self-signed certificates
    - Add support for WIFI (if client supports)
    - Implement http Download client
    - Move to lwm2m update client functions (instead of registering lwm2m
      paths)
    
    Signed-off-by: Jonas Remmert <j.remmert@phytec.de>
    jonas-rem authored and Kappuccino111 committed Aug 4, 2024
    Configuration menu
    Copy the full SHA
    3858ddb View commit details
    Browse the repository at this point in the history
  18. Simulate: Add TLS support to the firmware per default

    Add TLS support via Kconfig option as a default. TLS is currently only
    used for OTA updates, not yet for LwM2M.
    
    Signed-off-by: Jonas Remmert <j.remmert@phytec.de>
    jonas-rem authored and Kappuccino111 committed Aug 4, 2024
    Configuration menu
    Copy the full SHA
    14b213d View commit details
    Browse the repository at this point in the history
  19. File formatting for views.py

    This commit is to fix some basic formatting.
    
    Signed-off-by: Akarshan Kapoor <data.akarshan@icloud.com>
    Kappuccino111 committed Aug 4, 2024
    Configuration menu
    Copy the full SHA
    ba57a5f View commit details
    Browse the repository at this point in the history
  20. Merge branch 'main' into frontend

    Signed-off-by: Akarshan Kapoor <data.akarshan@icloud.com>
    Kappuccino111 authored Aug 4, 2024
    Configuration menu
    Copy the full SHA
    8fd1b76 View commit details
    Browse the repository at this point in the history
  21. Fix all failing tests

    This commit fixes failing tests
    
    Signed-off-by: Akarshan Kapoor <data.akarshan@icloud.com>
    Kappuccino111 committed Aug 4, 2024
    Configuration menu
    Copy the full SHA
    58d6654 View commit details
    Browse the repository at this point in the history