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... - วิทยาศาสตร์และเทคโนโลยี
👉 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 TH-cam. Great series! Many thanks.
Echo
Thank you so much! I appreciate you saying that. More videos 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.
Best meshtastic tutorials period. Well done and keep em coming!
Appreciate it!! More on the way!
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
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!
I'm looking forward to the Linux version of this video! :hint hint: 😉
Excited to see the remote management 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.
I am waiting with excitement for your MQTT guide!
Can't wait for the next one!
🎉🎉🎉
that was way too easy to follow ;-) Thanks!
Sure thing! Glad it was helpful and easy to follow!
Thanks!
Thank you so much for the support!
Thank you!
Sure thing! More to come!
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.
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...
4:30 plug in node
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.
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!
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.
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.
It's -9 out so time to mess around with admin channel
🥶🥶🥶 That's definitely a good time for the admin channel!