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.
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."
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
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.
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.
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.
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
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.
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.
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.
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.
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?
👉 If the meshtastic command errors, you also need to run: pip install --upgrade setuptools
Thanks for this. I'll pin it to the top.
Thanks! Got some strange erros when running --get lora, but his sorted it :-)
TY. I had the pkg_resources error and this worked for me
Thanks! This fixed my issue!
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.
Your videos are the most concise and well structured deep dive into Meshtastic on UA-cam. Great series! Many thanks.
Echo
Thank you so much! I appreciate you saying that. More videos on the way!
Best meshtastic tutorials period. Well done and keep em coming!
Appreciate it!! More on the way!
Great tutorial! I spend a couple hours digging around the internet trying to find material to get me started before I found myself here.
You save me so much time and frustration. Thank you for your detailed explanation to this very foreign topic. Three cheers to you!!!
Sure thing! Thank you for the support!
Very cool. I look forward to leveraging and experimenting Meshtastic with Python. I plan to integrate Meshtastic into my robotic projects.
Thanks! That sounds like a fun use of Meshtastic!
This is exactly what I've been looking for. Thank you!
Sure thing! I'm glad the video was able to help you out!
Excited to see the remote management video
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."
Meshtastic didn't get installed based on that. Also, pip3 shouldn't proceed that command you're trying. pip3 is just for installing
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
@@FLPanhandle exactly what mine is doing. wont let me go any further
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.
Can't wait for the next one!
🎉🎉🎉
I am waiting with excitement for your MQTT guide!
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.
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.
that was way too easy to follow ;-) Thanks!
Sure thing! Glad it was helpful and easy to follow!
Love the videos, can you do one on wiping/factory reset of the wisblock?
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
You're not the only one... Me too.
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.
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.
Put the commands in a bash script...
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.
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!
That's definitely planned! Just have some videos ahead of it, but it'll be soon!
I'm looking forward to the Linux version of this video! :hint hint: 😉
Thanks!
Thank you so much for the support!
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.
Did that get it working for you?
Yes, it did. Thanks again for wonderful videos.@@The_Comms_Channel
Good to hear!
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?
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?
@@The_Comms_Channel totally forgot what I did before. Need the CP210x serial drivers. That did the trick
@@987sdfsdfg2 Nice! What version of Windows are you using?
@@The_Comms_Channel using Windows 10 since it's compatible with many different radio software like EFJ PCConfig, etc.
Thank you!
Sure thing! More to come!
Is the a way to clone device config?
Not really, but you could send multiple commands at once if you needed to configure multiple in a similar fashion.
Why would running 'meshtastic --get lora' cause my node to reboot?
Resetting or rebooting? Either way, that shouldn't be happening. What device?
@The_Comms_Channel Rebooting. I am running a Heltec Lora32 V3 chip.
I thought remote management could be done on the android app?
4:30 plug in node
❤❤❤❤❤❤❤❤❤❤❤
It's -9 out so time to mess around with admin channel
🥶🥶🥶 That's definitely a good time for the admin channel!