Advanced Meshtastic - Python CLI Setup

Поділитися
Вставка
  • Опубліковано 16 лис 2024

КОМЕНТАРІ • 66

  • @mr_spoons
    @mr_spoons 10 місяців тому +12

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

    • @The_Comms_Channel
      @The_Comms_Channel  10 місяців тому +6

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

    • @maizenbrot
      @maizenbrot 10 місяців тому +1

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

    • @jonathanide4198
      @jonathanide4198 9 місяців тому +1

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

    • @EmCommSolutions
      @EmCommSolutions 8 місяців тому +1

      Thanks! This fixed my issue!

    • @FLPanhandle
      @FLPanhandle 8 місяців тому

      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 10 місяців тому +15

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

  • @IanUnslaved
    @IanUnslaved 10 місяців тому +9

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

  • @EmCommSolutions
    @EmCommSolutions 8 місяців тому +1

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

  • @user-ly5yn9ly8r
    @user-ly5yn9ly8r 21 день тому

    You save me so much time and frustration. Thank you for your detailed explanation to this very foreign topic. Three cheers to you!!!

  • @whitneydesignlabs8738
    @whitneydesignlabs8738 10 місяців тому +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  10 місяців тому

      Thanks! That sounds like a fun use of Meshtastic!

  • @W-uh3og
    @W-uh3og 10 місяців тому +2

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

    • @The_Comms_Channel
      @The_Comms_Channel  10 місяців тому +1

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

  • @roamingh
    @roamingh 10 місяців тому

    Excited to see the remote management video

  • @FLPanhandle
    @FLPanhandle 8 місяців тому

    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  8 місяців тому

      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 8 місяців тому +2

      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 7 місяців тому

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

    • @Thatguy-jz7fz
      @Thatguy-jz7fz 6 днів тому

      If you still get the “command not found” error, you can try running the meshtastic CLI tool directly using Python. First, confirm the exact location of the meshtastic script:
      python3 -m meshtastic --get lora
      This will use Python to run the module directly, bypassing the need for meshtastic to be in the PATH.
      This worked for me I was having the same problem.

  • @KiLLaDaTa
    @KiLLaDaTa 10 місяців тому +1

    Can't wait for the next one!

  • @shedrage9636
    @shedrage9636 10 місяців тому

    I am waiting with excitement for your MQTT guide!

  • @famman4940
    @famman4940 5 місяців тому

    I love your clear and thorough videos. I've learned a lot. I tried to install the Python CLI, and ran into a problem editing the Windows environment variable for path. I am running Windows 11, and it does not follow your video. When your video says to add a new path, Windows 11 doesn't give that option. It just shows the old path. I worked around this by adding a ; after the old path and pasting in the additional one copied as in the video. that worked.
    I also ran into issues as there is a newer version of Python in the Store, but when I installed it, it failed to install the Meshtastic CLI, so I had to go back to the version in this video.

  • @smokethirteen
    @smokethirteen 8 місяців тому +1

    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.

  • @DannyMaas
    @DannyMaas 10 місяців тому +1

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

    • @The_Comms_Channel
      @The_Comms_Channel  10 місяців тому +1

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

  • @davemccubbins8823
    @davemccubbins8823 Місяць тому

    Love the videos, can you do one on wiping/factory reset of the wisblock?

  • @AndersTheChef
    @AndersTheChef 6 місяців тому +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 5 місяців тому

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

  • @suzyamerica4679
    @suzyamerica4679 8 місяців тому +1

    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.

  • @johnny14794
    @johnny14794 10 місяців тому +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 10 місяців тому +1

      Put the commands in a bash script...

  • @johnharris1324
    @johnharris1324 10 місяців тому +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 10 місяців тому

      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  10 місяців тому +3

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

  • @cuddlybear4524
    @cuddlybear4524 9 місяців тому

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

  • @dgalvin77
    @dgalvin77 10 місяців тому +1

    Thanks!

  • @FLPanhandle
    @FLPanhandle 8 місяців тому

    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.

  • @987sdfsdfg2
    @987sdfsdfg2 10 місяців тому

    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  10 місяців тому +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 10 місяців тому

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

    • @The_Comms_Channel
      @The_Comms_Channel  10 місяців тому

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

    • @987sdfsdfg2
      @987sdfsdfg2 10 місяців тому

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

  • @joedoe3688
    @joedoe3688 10 місяців тому

    Thank you!

  • @Y100001
    @Y100001 9 місяців тому

    Is the a way to clone device config?

    • @The_Comms_Channel
      @The_Comms_Channel  9 місяців тому +1

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

  • @RollingKiwiAdventures
    @RollingKiwiAdventures 2 місяці тому

    Why would running 'meshtastic --get lora' cause my node to reboot?

    • @The_Comms_Channel
      @The_Comms_Channel  2 місяці тому +1

      Resetting or rebooting? Either way, that shouldn't be happening. What device?

    • @RollingKiwiAdventures
      @RollingKiwiAdventures 2 місяці тому

      @The_Comms_Channel Rebooting. I am running a Heltec Lora32 V3 chip.

  • @prestonm4s
    @prestonm4s Місяць тому

    I thought remote management could be done on the android app?

  • @brianboyer3
    @brianboyer3 10 місяців тому

    4:30 plug in node

  • @KiLLaDaTa
    @KiLLaDaTa 10 місяців тому

    ❤❤❤❤❤❤❤❤❤❤❤

  • @KiLLaDaTa
    @KiLLaDaTa 10 місяців тому

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

    • @The_Comms_Channel
      @The_Comms_Channel  10 місяців тому

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