Advanced Meshtastic - Python CLI Setup

แชร์
ฝัง
  • เผยแพร่เมื่อ 31 พ.ค. 2024
  • Welcome to part five in the Advanced Meshtastic Series where we show how to setup the Meshtastic Python Command Line Interface. This can be used to do much of the device configuration task, but there's also some things that can only be done with this like the setting up the remote administration of devices you have in the field and sending remote commands to them.
    Meshtastic Docs page for Python CLI
    meshtastic.org/docs/software/...
    👍SUPPORT👍
    If you're finding the videos informative and useful, please consider supporting TC² ☕
    ko-fi.com/thecommschannel
    ==Affiliate Links==
    Please know, I may collect a share of sales or other compensation at no additional cost to you from the affiliate links below.
    🛒 US Based Store with Meshtastic Supplies 🛒
    store.rokland.com/pages/mesht...
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 57

  • @mr_spoons
    @mr_spoons 4 หลายเดือนก่อน +12

    👉 If the meshtastic command errors, you also need to run: pip install --upgrade setuptools

    • @The_Comms_Channel
      @The_Comms_Channel  4 หลายเดือนก่อน +6

      Thanks for this. I'll pin it to the top.

    • @maizenbrot
      @maizenbrot 4 หลายเดือนก่อน +1

      Thanks! Got some strange erros when running --get lora, but his sorted it :-)

    • @jonathanide4198
      @jonathanide4198 4 หลายเดือนก่อน +1

      TY. I had the pkg_resources error and this worked for me

    • @EmCommSolutions
      @EmCommSolutions 2 หลายเดือนก่อน +1

      Thanks! This fixed my issue!

    • @FLPanhandle
      @FLPanhandle 2 หลายเดือนก่อน

      I have run this command after seeing your comment, and it installed, but did not make a difference in being able to run the meshtastic --get lora command.

  • @neilbchilton
    @neilbchilton 4 หลายเดือนก่อน +12

    Your videos are the most concise and well structured deep dive into Meshtastic on TH-cam. Great series! Many thanks.

    • @the_mad_swimbaiter455
      @the_mad_swimbaiter455 4 หลายเดือนก่อน

      Echo

    • @The_Comms_Channel
      @The_Comms_Channel  4 หลายเดือนก่อน +1

      Thank you so much! I appreciate you saying that. More videos on the way!

  • @EmCommSolutions
    @EmCommSolutions 2 หลายเดือนก่อน

    Great tutorial! I spend a couple hours digging around the internet trying to find material to get me started before I found myself here.

  • @IanUnslaved
    @IanUnslaved 4 หลายเดือนก่อน +8

    Best meshtastic tutorials period. Well done and keep em coming!

    • @The_Comms_Channel
      @The_Comms_Channel  4 หลายเดือนก่อน +1

      Appreciate it!! More on the way!

  • @FLPanhandle
    @FLPanhandle 2 หลายเดือนก่อน

    As others have said, your videos are the best and most concise setup source available.
    That said, I've followed the Python CLI install video more than half a dozen times, uninstalled and re-installed PowerShell, made certain that the Environment Variables are correct (easily ascertained when installing meshtastic; it doesn't produce the errors), but each and everytime I attempt to run "pip3 meshtastic --get lora", I get the following error from PowerShell which happens to be PS7 x64.
    "meshtastic: The term 'meshtastic' is not recognized as a name of a cmdlet, function, script file, or executable program.
    Check the spelling of the name, or if a path was included, verify that the path is correct and try again."

    • @The_Comms_Channel
      @The_Comms_Channel  2 หลายเดือนก่อน

      Meshtastic didn't get installed based on that. Also, pip3 shouldn't proceed that command you're trying. pip3 is just for installing

    • @FLPanhandle
      @FLPanhandle 2 หลายเดือนก่อน +1

      Thank you for replying. I should not have had pip3 in that comment.
      These are my results again today:
      python 3.11.8
      Pip3 V. 24.0
      I’ve attempted to install the python CLI countless times now with no joy.
      After installing setuptools with “pip install --upgrade setuptools” yesterday, I get confirmation that they are installed with “Requirement already satisfied:”.
      Installed pytap2 yesterday and again today with “pip3 install --upgrade pytap2” after installing setuptools, I get confirmation that they are installed with “Requirement already satisfied:”.
      Installed meshtastic again with “pip3 install --upgrade meshtastic” and added the path to the Windows Environment Variables path. Running it again produces no error messages, with many lines of “Requirement already satisfied:”.
      Attempting to run “meshtastic --get lora” produces the following error: “meshtastic: The term 'meshtastic' is not recognized as a name of a cmdlet, function, script file, or executable program.”
      Check the spelling of the name, or if a path was included, verify that the path is correct and try again.”
      This is my Environment Path Variable: "C:\Users\User\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\Scripts"
      @@The_Comms_Channel

    • @simple_simon
      @simple_simon หลายเดือนก่อน

      @@FLPanhandle exactly what mine is doing. wont let me go any further

  • @whitneydesignlabs8738
    @whitneydesignlabs8738 4 หลายเดือนก่อน +1

    Very cool. I look forward to leveraging and experimenting Meshtastic with Python. I plan to integrate Meshtastic into my robotic projects.

    • @The_Comms_Channel
      @The_Comms_Channel  4 หลายเดือนก่อน

      Thanks! That sounds like a fun use of Meshtastic!

  • @W-uh3og
    @W-uh3og 4 หลายเดือนก่อน +1

    This is exactly what I've been looking for. Thank you!

    • @The_Comms_Channel
      @The_Comms_Channel  4 หลายเดือนก่อน +1

      Sure thing! I'm glad the video was able to help you out!

  • @cuddlybear4524
    @cuddlybear4524 3 หลายเดือนก่อน

    I'm looking forward to the Linux version of this video! :hint hint: 😉

  • @roamingh
    @roamingh 4 หลายเดือนก่อน

    Excited to see the remote management video

  • @smokethirteen
    @smokethirteen 2 หลายเดือนก่อน

    Note that you have to turn off your antivirus or the install of “pip3 install -upgrade meshtastic” will not install. Turn the antivirus back on after install.

  • @shedrage9636
    @shedrage9636 4 หลายเดือนก่อน

    I am waiting with excitement for your MQTT guide!

  • @KiLLaDaTa
    @KiLLaDaTa 4 หลายเดือนก่อน

    Can't wait for the next one!

  • @DannyMaas
    @DannyMaas 4 หลายเดือนก่อน

    that was way too easy to follow ;-) Thanks!

    • @The_Comms_Channel
      @The_Comms_Channel  4 หลายเดือนก่อน

      Sure thing! Glad it was helpful and easy to follow!

  • @dgalvin77
    @dgalvin77 4 หลายเดือนก่อน +1

    Thanks!

    • @The_Comms_Channel
      @The_Comms_Channel  4 หลายเดือนก่อน

      Thank you so much for the support!

  • @joedoe3688
    @joedoe3688 4 หลายเดือนก่อน

    Thank you!

  • @AndersTheChef
    @AndersTheChef 12 วันที่ผ่านมา +1

    When I run "meshtastic --get lora", I get this error: [No Serial Meshtastic device detected, attempting TCP connection on localhost.
    Error connecting to localhost:[WinError 10061] No connection could be made because the target machine actively refused it] ---Any thoughts? Is there something that I need to configure in the radio via the mobile app? This is my wisblock for my solar station

    • @dustoff499
      @dustoff499 2 วันที่ผ่านมา

      You're not the only one... Me too.

  • @johnny14794
    @johnny14794 4 หลายเดือนก่อน +1

    Great video! Hope someone comes up with an installer with all needed to install all this. Perhaps some sort of script. Also a Windows app with a UI that allows to run those commands or some sort of visual options like the iOS/Android app version which allows the users to type text for chats, monitor channels, map, etc.

    • @ryshellso526
      @ryshellso526 4 หลายเดือนก่อน +1

      Put the commands in a bash script...

  • @brianboyer8075
    @brianboyer8075 4 หลายเดือนก่อน

    4:30 plug in node

  • @suzyamerica4679
    @suzyamerica4679 3 หลายเดือนก่อน

    Has anyone figured out how to pull incoming messages off the connected node through the command line? Or have the incoming messages saved to a local file or sent to a stream? Needing that for a project.

  • @johnharris1324
    @johnharris1324 4 หลายเดือนก่อน +1

    Awesome video! I've been binge watching all your meshtastic stuff lately and its all been very helpful. I was wondering if you plan on doing a video about integrating it with a local mosquito based mqtt server/broker at some point? I cant find much info on getting all the nodes to integrate with a locally hosted broker instead of the meshtastic one. I'm stuck at the point where I have the broker up and running but I can't seem to get it to work with my router nodes lol.

    • @Facey1000
      @Facey1000 4 หลายเดือนก่อน

      I would also love to see a video about this. I am waiting on a few Wisblock devices to arrive and am on a binge as well!

    • @The_Comms_Channel
      @The_Comms_Channel  4 หลายเดือนก่อน +3

      That's definitely planned! Just have some videos ahead of it, but it'll be soon!

  • @FLPanhandle
    @FLPanhandle 2 หลายเดือนก่อน

    The answer to not being able to get a response to "meshtastic --get lora" is "python3 -m meshtastic --get lora" It was suggested that "mestastic --lora" might work as well.

    • @The_Comms_Channel
      @The_Comms_Channel  2 หลายเดือนก่อน

      Did that get it working for you?

    • @FLPanhandle
      @FLPanhandle 2 หลายเดือนก่อน

      Yes, it did. Thanks again for wonderful videos.@@The_Comms_Channel

    • @The_Comms_Channel
      @The_Comms_Channel  2 หลายเดือนก่อน

      Good to hear!

  • @KiLLaDaTa
    @KiLLaDaTa 4 หลายเดือนก่อน

    ❤❤❤❤❤❤❤❤❤❤❤

  • @987sdfsdfg2
    @987sdfsdfg2 4 หลายเดือนก่อน

    Got the CLI working on my computer but for some reason it's not working on my toughpad. Anyone have any fixes for "Warning: No Meshtastic devices detected." after running the Meshtastic --get lora command?

    • @The_Comms_Channel
      @The_Comms_Channel  4 หลายเดือนก่อน +1

      It's not detecting your device on the Toughpad. Are you using the same cable? Do you have another port on the Toughpad you can try?

    • @987sdfsdfg2
      @987sdfsdfg2 4 หลายเดือนก่อน

      @@The_Comms_Channel totally forgot what I did before. Need the CP210x serial drivers. That did the trick

    • @The_Comms_Channel
      @The_Comms_Channel  4 หลายเดือนก่อน

      @@987sdfsdfg2 Nice! What version of Windows are you using?

    • @987sdfsdfg2
      @987sdfsdfg2 4 หลายเดือนก่อน

      @@The_Comms_Channel using Windows 10 since it's compatible with many different radio software like EFJ PCConfig, etc.

  • @Y100001
    @Y100001 3 หลายเดือนก่อน

    Is the a way to clone device config?

    • @The_Comms_Channel
      @The_Comms_Channel  3 หลายเดือนก่อน +1

      Not really, but you could send multiple commands at once if you needed to configure multiple in a similar fashion.

  • @KiLLaDaTa
    @KiLLaDaTa 4 หลายเดือนก่อน

    It's -9 out so time to mess around with admin channel

    • @The_Comms_Channel
      @The_Comms_Channel  4 หลายเดือนก่อน

      🥶🥶🥶 That's definitely a good time for the admin channel!