Coder Social home page Coder Social logo

Comments (14)

embmk avatar embmk commented on June 24, 2024

Following these examples https://advancedtelematic.github.io/rvi_sota_server/swagger/sota-core.html#!/default/get_packages I try to figure out what URL I have to use exactly.
Is it maybe auth-plus.atsgarage.com/api/v1/... or app.atsgarage.com/api/v1.
Please tell me the URL where I reach the server API and maybe something about the fields I have to use making the HTTP request.

from aktualizr.

jerrytrieu avatar jerrytrieu commented on June 24, 2024

The server the client talks to is: https://sota-core.atsgarage.com/api/v1

You should see this in the 'toml' file that you download from the device page on the UI.

from aktualizr.

codders avatar codders commented on June 24, 2024

There is also a complete reference implementation of the client available here:

https://github.com/advancedtelematic/rvi_sota_client

It's in Rust, but it's quite readable. You might consider compiling / running it (or downloading the pre-built version). If you run it with RUST_LOG=debug exported, you should see the interactions with the server.

from aktualizr.

embmk avatar embmk commented on June 24, 2024

@jerrytrieu I tried a request to the server using a freshly received token for getting "/mydevice/{uuid}/updates" and got this error:
"The supplied authentication is not authorized to access this resource."
Can you tell if I applied the token successfully but am maybe missing an update list on the server or something like that?
@codders It seems like I have to get docker to build the rust client, even for building the deb when downloading the repository as a zip file. I am not shure if this was is faster than asking questions here...

from aktualizr.

jerrytrieu avatar jerrytrieu commented on June 24, 2024

@embmk You need to pass the token as bearer in the Authorization header: "Bearer <token-value"

You can look at the src/sota.rs in rvi_sota_client to see the API it is using. The types are in the src/datatypes dir.

from aktualizr.

embmk avatar embmk commented on June 24, 2024

Thanks for your help, I managed to make an API request and got "[ ]" as response which should be fine for now.

from aktualizr.

codders avatar codders commented on June 24, 2024

@embmk - You should be able to download a pre-built version from the ATS Garage website. When you create a new device, it will give you the option to download the .deb OTA Client as either a 32 or 64 bit package for Intel.

from aktualizr.

embmk avatar embmk commented on June 24, 2024

I'd like to create pull request but I think I should merge with the master first. When I try to merge with the master the branches commit history "explodes" putting tons of commit ahead of the few I made. How can I avoid that?

from aktualizr.

jerrytrieu avatar jerrytrieu commented on June 24, 2024

@embmk You should not merge with master. You checkout master, make there are no changes, pull latest remote/master. Then checkout your branch and rebase on master, skipping any commits that are duplicates. Which branch are you trying to update? I will try and see.

from aktualizr.

embmk avatar embmk commented on June 24, 2024

@jerrytrieu I'm trying to get feat/6/api-request ready for a pull request. I forgot that it is possible to do a "cross branch rebase" as I did so many interactive rebases last week...

from aktualizr.

jerrytrieu avatar jerrytrieu commented on June 24, 2024

@embmk there are a lot conflicting commits between your branch and master. I suggest you squash the commits with the changes you want to merge, create a new branch off the latest master, and manually apply your change on the new branch.

from aktualizr.

embmk avatar embmk commented on June 24, 2024

@jerrytrieu I forced a push and rebasing with the master gives me Current branch .. is up to date... so it seems that everything is fine now

from aktualizr.

embmk avatar embmk commented on June 24, 2024

@jerrytrieu looking at the branches commit history it isn't looking any better allthough I created a new branch and did only 2 commits. Is github showing me commits from the master and if it does how do I distinguish?

from aktualizr.

jerrytrieu avatar jerrytrieu commented on June 24, 2024

@embmk it looks okay now. It shows that you are two commits ahead of master. If you use a tool such as tig you will see the branches marked in the log.

from aktualizr.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.