Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

owm: add "hardwareinfo" node for modelname and system-platform #48

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

SvenRoederer
Copy link
Contributor

  • cleans the mixed use of hardware data and runtime data in the "system" node
    as mentioned in OWM stats: not well defined JSON structure freifunk-berlin/firmware#382
    • uses the "system" node only for runtime data
    • adds a new "hardwareinfo" node with a "model" and "system" field
      model: usually the marketing name from the type-label
      system: general hardware platform / SoC / reference-design
  • drops some legacy compatibility code added in freifunk-berlin/firmware-packages@222efe8
    to support a statistics-page that have already shut down
  • as the OWM-backend has been renewed recently, dropping the legacy code now
    seems the best moment

new JSON node

hardwareinfo |
  openwrt_boardname | "tplink,tl-wr841n-v13"
  model | "TP-Link TL-WR841N v13"
  system | "MediaTek MT7628AN ver:1 eco:2"
system |
  uptime |
    0 | 4692
  loadavg |
    0 | 0.12353515625

old JSON node

system |
  sysinfo |
    0 | "system is deprecated"
    1 | "TP-Link EAP225-Outdoor v1"
  uptime |
    0 | 651450
  loadavg |
    0 | 0.0244140625

* cleans the mixed use of hardware data and runtime data in the "system" node
  as mentioned in freifunk-berlin/firmware#382
  * uses the "system" node only for runtime data
  * adds a new "hardwareinfo" node with a "model" and "system" field
    model: usually the marketing name from the type-label
    system: general hardware platform / SoC / reference-design
* drops some legacy compatibility code added in freifunk-berlin/firmware-packages@222efe8
  to support a statistics-page that have already shut down
* as the OWM-backend has been renewed recently, dropping the legacy code now
  seems the best moment

Signed-off-by: Sven Roederer <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant