Comments (14)
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.
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.
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.
@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.
@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.
Thanks for your help, I managed to make an API request and got "[ ]" as response which should be fine for now.
from aktualizr.
@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.
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.
@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.
@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.
@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.
@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.
@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.
@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)
- Example virtual secondary configuration raises "Value is not convertible to bool." error. HOT 2
- Key Rotation Help HOT 4
- Import of an initial root.json from filesystem HOT 6
- support Nvidia board like Jestson TX2? HOT 2
- fsetxattr: Operation not supported HOT 2
- Read device ID HOT 2
- Config file ordering seems confusing HOT 5
- root role disappeared? HOT 7
- CMake Error, Cannot find source file: build/jsoncpp/jsoncpp.cc HOT 4
- clang-tidy-6.0 is not supported by debian:testing HOT 4
- Incorrect warning/error messages for Image Repo targets verification HOT 1
- Below unit tests are always failing HOT 4
- Build with PKCS#11 HOT 2
- Device initialization fails after successful provisioning HOT 10
- Aktualizr reports incorrect OSTree hash if it doesn't find the currently-booting version in its targets
- SecondaryTcpServer hangs when shutting down HOT 2
- Error
- Sql_schemas.cc being removed before it can be compared in embed_schemas.py HOT 4
- Aktaulizer is installed but not running
- Is aktualizr using TLS 1.3 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aktualizr.