Skip to content
Snippets Groups Projects
  1. Jan 12, 2023
  2. Aug 09, 2022
    • lemoer's avatar
      gluon-respondd: fix missing section "wifi" for request type "neighbours" (#2599) · 70951318
      lemoer authored
      The below mentioned commit introduced a regression, that the "wifi"
      section of the request type "neighbours" was empty:
      
          ~# gluon-neighbour-info -d ::1 -r neighbours | ffh_pretty_json
          {
            "wifi": [
            ],
            ...
          }
      
      After this commit, the section (correctly) looks like this:
      
          root@UFU-FWH-A272-Tresckowstr-GemR-vorne:~# gluon-neighbour-info -d ::1 -r neighbours | ffh_pretty_json
          {
            "wifi": {
              "ca:38:7e:42:5f:21": {
                "neighbours": {
                  "fe:9f:4d:01:ea:e1": {
                    "noise": -102,
                    "inactive": 50,
                    "signal": -84
                  },
                  "fe:df:b9:84:37:51": {
                    "noise": -102,
                    "inactive": 20,
                    "signal": -73
                  }
                }
              }
            },
            ...
          }
      
      The issue was due to the fact, that the iteration over the (mesh) wifi interfaces
      was broken. The code was assuming, that the section
      
          config interface 'mesh_radio0'
                  option proto 'gluon_mesh'
      
      in /etc/config/network contains an option "ifname", which it does not.
      The ifname property is only stored in the corresponding section in
      /etc/config/wireless:
      
          config wifi-iface 'mesh_radio0'
                  option ifname 'mesh0'
                  option network 'mesh_radio0'
                  option mode 'mesh'
                  ...
      
      Therefore, we now iterate over wifi-ifaces in /etc/config/wireless, that
      have the mode 'mesh' instead. This resolves the issue.
      
      Fixes 0f1fa243
      Unverified
      70951318
  3. Jan 12, 2021
  4. May 21, 2020
    • lemoer's avatar
      gluon-respondd: emit "primary_domain_code" in nodeinfo · b9c1a026
      lemoer authored
      Closes #1974
      
      Situation:
      ==========
      
      $ ls -l /lib/gluon/domains/lindennord.json
      lrwxrwxrwx    1 root     root            10 Jan  6 03:42 /lib/gluon/domains/lindennord.json -> dom17.json
      
      Before:
      =======
      
      $ gluon-neighbour-info -d ::1 -p 1001 -r nodeinfo -c 1
      {
         "node_id": "525400123456",
         "system": {
           "domain_code": "lindennord",
           "site_code": "ffh"
         },
      ...
      }
      
      After:
      ======
      
      $ gluon-neighbour-info -d ::1 -p 1001 -r nodeinfo -c 1
      {
         "node_id": "525400123456",
         "system": {
           "primary_domain_code": "dom17",
           "domain_code": "lindennord",
           "site_code": "ffh"
         },
      ...
      }
      Unverified
      b9c1a026
  5. Mar 31, 2020
  6. Nov 24, 2019
  7. Nov 23, 2019
  8. Aug 24, 2018
  9. May 05, 2018
  10. Jan 26, 2018
  11. Dec 29, 2017
  12. Sep 21, 2017
  13. Feb 12, 2017
  14. Aug 27, 2016
  15. May 26, 2016
    • Jan-Philipp Litza's avatar
      respondd modules: Use proper formatting of doubles · f7eda938
      Jan-Philipp Litza authored
      Most doubles that are delivered via respondd have limited input
      precision, but are converted with up to 17 digits of precision. That can
      cause ugly blowups like 0.2800000000000001 in the output, which is
      avoided by specifying better format strings (like "%.2f" in most cases).
      f7eda938
  16. Feb 02, 2016
Loading