Conversation
|
I think we may want to use this crate like how osrelease is pulled: |
|
It looks like |
Co-authored-by: Dexter Reed <dreed4470@proton.me>
|
@sungsphinx I need to get it to build on 24.10 for testing on my end. |
|
I don't know how to trim out more content @sungsphinx but this at least gets a nice starting point. |
|
I don’t believe it has more info than what’s needed, is just the right amount imo |
|
@edfloreshz I don't think it should show stuff like Operating System, Icon Name and Static Hostname, etc. Just motherboard related info. @ahoneybun Maybe we could parse a json output from hostnamectl --json={pretty or short} |
|
|
Should have mentioned certain only lines/blocks/whatever it is in JSON files that relate to the motherboard lol. |
|
It looks like I can't seem to build the project though: |
|
I had the same when I was attempting the Hardware Security page (#6), I think the command has a bit of a delay, and rust decides: |
|
How about getting the JSON a de-serializing it to a struct that only contains the fields we need? |
That's fine I just don't know how to do that, I can certainly change the output to JSON though! |
|
Refer to this, you can read a JSON and access specific untyped values by key. |


This is just WIP as it does currently error out on the page.