August Update 3

This commit is contained in:
oasis6212 2025-08-31 23:46:48 -04:00 committed by GitHub
parent 40727d1f7a
commit 2287f37254
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -35,7 +35,8 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
"""
print(r"""
-----------------Welcome to Meshbot Weather------------------
------------------------Welcome to Meshbot Weather-------------------------
For more info about this project visit https://github.com/oasis6212/Meshbot_weather
""")
@ -649,7 +650,7 @@ def main():
exit(0)
logger.info(f"Press CTRL-C to close the program")
logger.info(f"Connecting to Meshtastic node...")
# Create interface
if args.host:
interface = meshtastic.tcp_interface.TCPInterface(hostname=ip_host, noProto=False)
@ -658,6 +659,7 @@ def main():
global MYNODE
MYNODE = get_my_node_id(interface)
#logger.info("Connected to Meshtastic Node:")
logger.info(f"Automatically detected MYNODE ID: {MYNODE}")
if DM_MODE and not MYNODE:
@ -675,7 +677,7 @@ def main():
try:
my_info = interface.getMyNodeInfo()
logger.info("Connected to Meshtastic Node:")
# logger.info("Connected to Meshtastic Node:")
logger.info(f"Node Name: {my_info.get('user', {}).get('longName', 'Unknown')}")
except Exception as e:
logger.error(f"Failed to get node info: {e}")