nettigo / namf

Nettigo Air Monitor Firmware
GNU General Public License v3.0
33 stars 19 forks source link

FR: Add WiFi signal level in web interface #72

Closed lemielek closed 8 months ago

lemielek commented 11 months ago

If it is possible, please add WiFi signal level in web interface. Eventually also in data.json if it is not already there? Cannot check now, because of this lost signal. Will probably have to add additional AP outside to have stable connection. I will try also deinstall LCD, maybe then will be better signal. My NAM-3149890 periodically loses WiFi signal, even when it shows that is on 28% percent level. It is standard Wemos with internal small antenna and soldered in because I did not found new docs when I was soldering it after two years in storage.

Mchl commented 11 months ago

It's already there on /status and in data.json too (scaled in dBm) {"value_type":"signal","value":"-95"}

Edit: function that converts dBm to signal quality in % is at https://github.com/nettigo/namf/blob/1e7d1aac0cdf06b48bcd51614b02cb9b6efae678/src/helpers.cpp#L56

netmaniac commented 11 months ago

On /status page there is both % value and dBm. More data than in data.json is sent to Influx DB. It has also WiFi signal level in dBm and some memory usage data. I should probably add those to JSON too.

lemielek commented 11 months ago

I was blind. Sorry. And thank you both. Then later when I was configuring it I saw beautiful two lines with networks available to connect.