ffnord / mesh-announce

Discussion at #mesh-announce:irc.hackint.org and (separately) at
https://matrix.to/#/!MjLIHcALOcENXZWQlH:irc.hackint.org/$1547640760901FmKaD:matrix.eclabs.de
13 stars 45 forks source link

static values provider #45

Closed anoymouserver closed 5 years ago

anoymouserver commented 5 years ago

How can I send additional static values like geo coordinates? The solution mentioned in #16 doesn't work anymore since the rewrite.

Do I need to write a python file for each additional value (like the providers/nodeinfo/vpn.py)?

jplitza commented 5 years ago

Yes, you have to create a python file. We actually ship one file that just sends a static value (namely True): https://github.com/ffnord/mesh-announce/blob/55ce8b580f4c25f8c0f75d6b05227fee0b8a96a0/providers/nodeinfo/software/fastd/enabled.py#L1-L5