WEEE-Open / peracotta

Script to gather hardware data and update T.A.R.A.L.L.O. automatically
MIT License
2 stars 11 forks source link

Ask for code #132

Closed lvps closed 2 years ago

lvps commented 3 years ago

For the top level item only (pc, motherboard, whatever) ask "Does this have a code already?" and let users enter it. In the GUI it could be asked among us... er, among the other questions, or at the end before upload, or somewhere near #129 or somewhere very different from that... It could be anywhere.

Also owner may be redundant if there's a code.

Then add the code to the big json to be uploaded. If no code is set, do not change the json in any way.

e-caste commented 2 years ago

@lvps Is it fine if we add a dedicated internal JSON dict in the root named info or something like that? Since the Tarallo already switches based on type.

The same would be valid for #129.

[
     {
         "type": "info",
         "code": "101",
         "owner": "giovannino"
     },
   {
     "type": "I",
     "features": {
...
il-palmi commented 2 years ago

"owner" is a feature.