FreifunkBremen / yanic

Yet another node info collector - for respondd to be used with meshviewer to Grafana (with influxdb or graphite)
https://freifunkbremen.github.io/yanic/
GNU Affero General Public License v3.0
20 stars 40 forks source link

support-attribute for nodes #219

Open AiyionPrime opened 1 year ago

AiyionPrime commented 1 year ago

A helper that determines whether a given router model is currently supported by gluon.

The value could be an enum:

We could extend the approach with

I think this would really help gaining an overview of a communities demographic router distribution; a topic that will only become more urgent for all the communities that still haven't dealt with 4/32-devices which have gone in gluon for a while now and won't be coming back.

I think this project would be better equipped to aggregate the support-state than say the meshviewer or other map-tools. But they could build upon this field and show warnings and notes for each device.

AiyionPrime commented 1 year ago

I drafted a gluon-helper, that could make this task a lot easier.

https://github.com/freifunk-gluon/gluon/compare/master...AiyionPrime:gluon:supported-devices

It outputs all names expected to show up in a manifest for a full build (hence are updatable and therefore still supported). It respects the BROKEN flag as well.

So for for a given gluon commit this makes it fairly easy to determine whether the devices output of lua -e 'print(require("platform_info").get_image_name())' is still going to find updates without the need to build gluon.

genofire commented 1 year ago

see https://github.com/FreifunkBremen/yanic/issues/218#issuecomment-1724167659