mirror of
https://github.com/oasis6212/Meshbot_weather.git
synced 2025-12-10 00:06:12 -06:00
August Update 3
This commit is contained in:
parent
40727d1f7a
commit
2287f37254
@ -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}")
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user