Mobile device clients have the capability of storing device metrics like battery level, channel/air utilization, signal metrics like SNR and RSSI for 0 hop nodes, position logs, etc. for both our connected node as well as remote ones we can see on the network. I'd like to see the ability to log that data in the Contact client as well. For example, I'd like to be able to see the historical battery level on my solar node, to see if my solar panel and battery are sufficient to keep the node up over time.
Even if we just wrote this data out to a CSV file or similar, without the capability of displaying the history in-app, I think that would be a nice feature to have.
Mobile device clients have the capability of storing device metrics like battery level, channel/air utilization, signal metrics like SNR and RSSI for 0 hop nodes, position logs, etc. for both our connected node as well as remote ones we can see on the network. I'd like to see the ability to log that data in the Contact client as well. For example, I'd like to be able to see the historical battery level on my solar node, to see if my solar panel and battery are sufficient to keep the node up over time.
Even if we just wrote this data out to a CSV file or similar, without the capability of displaying the history in-app, I think that would be a nice feature to have.
<!-- github-sync-id:3104232321 -->
This is interesting and if I may think out loud: In the beginning at least, I didn't want to log data since it could be considered personal information, especially position. I'm more open to the idea of logging other metrics and thought about utilizing the sqlite db since it's already there but a csv could work too.
It would be pretty cool to display this data in a chart within the terminal window! There are some projects out there that could be a starting point such as https://github.com/stephane-deraco/Termchart
Simplicity is a goal with this project, since this is a terminal client mostly meant for sbc's. I'm constantly on the fence about adding big features. I also do my logging with Home Assistant, so this doesn't add value to me personally. Meaning I probably won't do the work anytime soon but would certainly discuss it further and/or accept a PR. I suppose just adding logging without visualizations would be easy, I may be inflating the FR more than I should... because I've thought about it previously.
[end thinking out loud]
This is interesting and if I may think out loud: In the beginning at least, I didn't want to log data since it could be considered personal information, especially position. I'm more open to the idea of logging other metrics and thought about utilizing the sqlite db since it's already there but a csv could work too.
It would be pretty cool to display this data in a chart within the terminal window! There are some projects out there that could be a starting point such as https://github.com/stephane-deraco/Termchart
Simplicity is a goal with this project, since this is a terminal client mostly meant for sbc's. I'm constantly on the fence about adding big features. I also do my logging with Home Assistant, so this doesn't add value to me personally. Meaning I probably won't do the work anytime soon but would certainly discuss it further and/or accept a PR. I suppose just adding logging without visualizations would be easy, I may be inflating the FR more than I should... because I've thought about it previously.
[end thinking out loud]
<!-- github-comment-id:2923592121 -->
I do have home assistant, but I haven't tried to connect any Meshtastic things to it. I'm curious if the logging you're able to get is just logs of a single node that's connected to the HA machine, or if it's able to also log metrics for other devices in the mesh? IE in my case, the HA machine is in the basement, the solar node is in the backyard and not within reliable bluetooth range, so could I get a battery graph of the solar node in this case? (HA Machine <-- Serial --> Meshtastic Radio <-- Mesh/LoRa --> Solar Node )?
Thanks for the thoughts!
I do have home assistant, but I haven't tried to connect any Meshtastic things to it. I'm curious if the logging you're able to get is just logs of a single node that's connected to the HA machine, or if it's able to also log metrics for other devices in the mesh? IE in my case, the HA machine is in the basement, the solar node is in the backyard and not within reliable bluetooth range, so could I get a battery graph of the solar node in this case? (HA Machine <-- Serial --> Meshtastic Radio <-- Mesh/LoRa --> Solar Node )?
<!-- github-comment-id:2923603839 -->
It's easy to log all the nodes in your mesh. You have some options:
The Org recently adopted an HA add-on that I haven't tried. I believe it requires a serial-connected node:
https://github.com/meshtastic/home-assistant
I use the script I wrote which just requires any wifi node at your house to feed an MQTT broker. Just run the script once with a connected node and it creates an HA entities file for all the metrics of all the nodes in your nodedb. There are some flags for fine-tuning but I just go through and delete entities I don't need.
https://github.com/pdxlocations/ha-entity-builder-for-meshtastic
then follow instructions in the docs (which I co-authored):
https://meshtastic.org/docs/software/integrations/mqtt/home-assistant/
<!-- github-comment-id:2923670141 -->
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Mobile device clients have the capability of storing device metrics like battery level, channel/air utilization, signal metrics like SNR and RSSI for 0 hop nodes, position logs, etc. for both our connected node as well as remote ones we can see on the network. I'd like to see the ability to log that data in the Contact client as well. For example, I'd like to be able to see the historical battery level on my solar node, to see if my solar panel and battery are sufficient to keep the node up over time.
Even if we just wrote this data out to a CSV file or similar, without the capability of displaying the history in-app, I think that would be a nice feature to have.
This is interesting and if I may think out loud: In the beginning at least, I didn't want to log data since it could be considered personal information, especially position. I'm more open to the idea of logging other metrics and thought about utilizing the sqlite db since it's already there but a csv could work too.
It would be pretty cool to display this data in a chart within the terminal window! There are some projects out there that could be a starting point such as https://github.com/stephane-deraco/Termchart
Simplicity is a goal with this project, since this is a terminal client mostly meant for sbc's. I'm constantly on the fence about adding big features. I also do my logging with Home Assistant, so this doesn't add value to me personally. Meaning I probably won't do the work anytime soon but would certainly discuss it further and/or accept a PR. I suppose just adding logging without visualizations would be easy, I may be inflating the FR more than I should... because I've thought about it previously.
[end thinking out loud]
Thanks for the thoughts!
I do have home assistant, but I haven't tried to connect any Meshtastic things to it. I'm curious if the logging you're able to get is just logs of a single node that's connected to the HA machine, or if it's able to also log metrics for other devices in the mesh? IE in my case, the HA machine is in the basement, the solar node is in the backyard and not within reliable bluetooth range, so could I get a battery graph of the solar node in this case? (HA Machine <-- Serial --> Meshtastic Radio <-- Mesh/LoRa --> Solar Node )?
It's easy to log all the nodes in your mesh. You have some options:
The Org recently adopted an HA add-on that I haven't tried. I believe it requires a serial-connected node:
https://github.com/meshtastic/home-assistant
I use the script I wrote which just requires any wifi node at your house to feed an MQTT broker. Just run the script once with a connected node and it creates an HA entities file for all the metrics of all the nodes in your nodedb. There are some flags for fine-tuning but I just go through and delete entities I don't need.
https://github.com/pdxlocations/ha-entity-builder-for-meshtastic
then follow instructions in the docs (which I co-authored):
https://meshtastic.org/docs/software/integrations/mqtt/home-assistant/