Comments (10)
@fchan2, @johnabass is currently working to add support for that feature. We will keep you posted.
from scytale.
Hi @joe94, can you clarify which feature is not yet supported?
I was attempting to GET device parameters as documented in the link here:
RDK-B WEBPA Commands
...so I was under the impression that this should work?
from scytale.
The feature I am referring to is the ability to get the stats for a given device (specifically the stat
endpoint is not yet supported in scytale).
That said, you can get the device stats using talaria today using the following endpoint form:
[your-talaria-machine]:[your-bind-address]/api/v2/device/mac:[your-device-mac-address]/stat
from scytale.
Cool, I can pull the stat
now if I point it to talaria as you mentioned.
Should GET TR-181 data models work if I point it to talaria as well? I gave it a try using this command and I got a "404 page not found" error.
curl -i http://[my-talaria-machine]:[talaria bind address]/api/v2/device/mac:[device mac address]/config?names=Device.DeviceInfo.SerialNumber
from scytale.
No, that won't work because that's outside talaria's concern.
Few things:
-
Last time I checked, the
stat
feature was more than 50% done. -
From my limited understanding of your business requirements (working with TR-181 data models), most of your direct API hits should be to tr1d1um and not scytale or talaria. Remember you can also get the device stats using tr1d1um (once scytale supports it) using the same endpoint form as talaria!
from scytale.
From my limited understanding of your business requirements (working TR-181 data models), most of your direct API hits should be to tr1d1um and not scytale or talaria.
Can you elaborate on what this means from the context of server configuration? I believe the RDK-B device still needs to connect to the talaria websocket port in order to get to tr1d1um -- do I have that right?
from scytale.
Yes, absolutely. I just mean that for endpoints like stat
and config
, you would want to use tr1d1um directly (but of coursetr1d1um
then in turns uses scytale
and talaria
under the hood). But yes, all the device connections (websocket) you mentioned are done with talaria.
from scytale.
Hmm...by using tr1d1um directly, do you mean using the config
command above, but just replacing with the tr1d1um machine/ports? I just gave that a try and met with a 404 error again.
from scytale.
Just to clarify, this is the command that I am using:
curl -i http://[tr1d1um ip]:[tr1d1um port]/api/v2/device/mac:f8a097ea7206/config?names=Device.DeviceInfo.SerialNumber
I did not modify any JSON files before running this since device stats using tr1d1um as an endpoint from scytale is not supported yet.
HTTP/1.1 404 Not Found
Content-Type: text/plain; charset=utf-8
X-Content-Type-Options: nosniff
Date: Tue, 05 Dec 2017 17:36:41 GMT
Content-Length: 19
404 page not found
from scytale.
Since you tried this via tr1d1um, this should be considered a tr1d1um issue externally. You should not be invoking scytale directly.
from scytale.
Related Issues (20)
- Linter Fix & Refactor Functions to Improve Readability
- Bug: Patch Failing Linter
- Remove `go-kit/kit/log` & `go-kit/log`
- CVE-2022-32149 (High) detected in golang.org/x/text-v0.3.7 - autoclosed HOT 1
- Replace webpa-common/bascule* with bascule
- Scytale: WRP Decoder Panic
- CVE-2022-41723 (High) detected in golang.org/x/net-v0.4.0 - autoclosed HOT 1
- Update Tracing Configurations HOT 1
- Ensure Correct Xmidt Header Usage
- Deprecating Webpa Bascule Package HOT 1
- Update Candlelight to v0.0.16 HOT 1
- Add Bascule Helper Package
- Fix Scytale fanout for msgpack payloads
- Add configuration to allow for `aarch64` hosts in Dockerfile HOT 1
- Missing Docker Images in Docker Hub HOT 1
- CVE-2023-2816 (High) detected in github.com/hashicorp/Consul/api-v1.20.0 - autoclosed HOT 1
- Refactor primaryhandler to work with new Candlelight
- Fix "no wrp found" error
- Fix Zap Logger Error Message
- Wait for a non-Zero `TrustClaim` talaria responses for a given device
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 scytale.