[Olsr-dev] including wifi stats in jsoninfo
Ferry Huberts
(spam-protected)
Sat Jun 9 23:55:01 CEST 2012
On 09-06-12 23:29, Hans-Christoph Steiner wrote:
>
> On Jun 9, 2012, at 4:57 PM, ZioPRoTo (Saverio Proto) wrote:
>
>>> But if a link metric plugin gathers such information, it makes sense to provide it from olsrd. It shows what info olsrd uses. Could be
>>> different than form other sources (...).
>>
>> Hans, I think the best is to program a standalone daemon that looks
>> into that /proc entries or calles iwstuff and then export to JSON.
>>
>> implementing it as an external JSON source makes it reusable for any
>> routing protocol OR olsr plugin that need as input statistics from the
>> wireless links
>
> If it was possible to get the info from olsrd in a public API, then it would be nice to have a standalone jsoninfo daemon that queries a bunch of sources. But since currently, jsoninfo needs to be an olsrd plugin to get the olsrd info, I think it makes sense to include some non-olsrd info that can be fetched by reading files, etc. (i.e. /proc, /sys, etc/).
>
In the same fashion you could also argue that we _have_ a public API:
the jsoninfo plugin you wrote yourself.
A separate process could easily proxy the olsrd jsoninfo info and add
the info from iwstuff.
IMHO that's a way better design
> .hc
--
Ferry Huberts
More information about the Olsr-dev
mailing list