Is there a way to configure/ set / join a channel using the python API? When I do my tests on new versions of the meshtastic firmware I have to use a phone to connect to each node and then use the web URL that was used to initially create my channel.
Is there a way to use the API to reassign each node to the Lora network (channel) mesh without having to use a cell phone?
Iâve been reading about this Python API quite a bit but canât seem to grasp what it is and how to use it. Is someone willing to explain a few basic things?
What is Python API? Is that what I installed on my Raspberry Pi running Linux when entered âsudo pip3 install --upgrade meshtasticâ in terminal window? I apologize, I know so little about programming or Linux, I donât even know how to properly ask these questions. But I bet some people reading this will get a good laugh
Then I was able to enter âmeshtastic -hâ in the terminal and that revealed a list of commands. I was even able to send text message into my mesh by typing âmeshtastic âsendtext âmy_text_messageâ. So far, Iâm not able to figure out how to read messages from the mesh.
How do you run these Python scripts? Does it have to be saved as some type of file and then it gets executed for terminal?
Okay, thanks for the clarifications. I will play some more with this and try to figure it out. It is like learning a foreign language. This all got me looking at some beginner tutorials on Linux terminalâŚit was a rough weekend, trying to catch up to my 30 years of computer ignorance.
I looked a bit at this meshtastic-web, very interesting. Three questions (okay four really);
Web server files are not included with latest Meshtastic firmware, they have to be manually uploaded?
Best to use Chrome browser, or Edge, will not work on iOS Safari?
I use Meshtastic Python API to provision T-Beam for my WiFi network? Or can enable WiFi access point on device and access this web interface by navigating to IP address displayed on device?
Yes, the file can be uploaded on the board in 2/3 way, this is the easier.
I think you can use all, I have tried Chrome and work, even on safari mobile, the only problem itâs the scaling of the site for small screen.
The newest firmware have the ability to enable the wifi access point simply power it up whit the user button press and hold for 2 second, (the user button itâs the middle one on the t-beam).
Also the python api provide all the command to do from there:
This is for connecting on an existing wifi network:
Iâm learning, thanks for clarifying some of this. I was able to set up one of the t-beams to log onto my WiFi. I even managed to run Meshtastic on windows machine, itâs a big deal, I have been trying to figure this one out from yesterday evening.
Now for the meshtastic-web, I am not able to upload the three required files into static folder, gives me an error and says write aborted and then displays this;
I flashed it with esphome-flasher, which Iâm guessing is the issue according to Wiki How-to-use-âMeshtastic-Webâ-over-WiFi.
I just created new project in Platform.io, created âdataâ folder, pasted the three files at Mashtastic-web Git page into this data folder. Then I clicked âBuild filesystem imageâ, followed by âUpload Filesystem Imageâ. Both times there was SUCCESS message in terminal.
Now I get this on meshtastic.local/static page, but still cannot upload files;
Thanks for trying to flash it both in esphome flasher and from within platform io. Thatâs what I would have asked you to try.
I have not seen this problem before. Looks like either the filesystem partitioning didnât work or the flash chip on your board is not what it was made out to be.
Has anyone else seen this? There should be no reason to have just ~50kb of total space on a newly flashed device.
Iâm still playing with Platform.io, this is what I see for this board;
This leads me to believe board is okay, it may be just how I flashed it? These boards originally came with SoftRF preloaded, when I flashed them with esphome-flasher does it erase everything prior to installing Meshtastic?
Iâm still trying to figure out how to use device-install.sh, doesnât work on windows. I enabled Windows Subsystem for Linux and installed Ubuntu terminal but still doesnât workâŚcannot install pip for some reason
I have to figure out how to post debug log, Iâll post it once I find out how to do this.
I just went through the SoftRF source and found that they use the minimal spiffs partition scheme. This gets us in the right direction.
This means that we need to figure out how to change the partition table of your board.
I think you mentioned you were able to get platform io running. Could you try running 'erase flash" and then re-upload the firmware? I donât know if this will update the partition table, but itâs worth a shot.
Also, since youâre in platform io, to get the serial / debug console:
I erased flash using Platform.io, then I loaded Meshtastic again using esphome-flasher tool on windows. After setting wifi credentials, I can connect to meshtastic.local/static but there is no change in amount of memory;
Iâm still working on how to run this serial/debug console in platform.io. When I click on that little âcord endâ icon you indicated I get a terminal open with this;
Helo. I have the same bug. The difference is that iâm using ttgo lora 32 not the t-beam version. On my device fabric was installed pax counter, then i installed my sondy go software. After that i was installed myshtastic 0.9.7 using espflasher, afther that i updated via bluetooth from app on my phone to version 1.1.32.
Trying 3 diffrent browsers and always get the same msg âwrite abortedâ.
Mayby that give you some thoughts.
I will look further for solutions.
I had the same problem with two Tbeams, but managed to erase the flash through the command line allowing me to upload a fresh build and get a proper amount of space.
When in the root directory for the project I used:
pio run --target erase --environment tbeam
One of my tbeams (sx1262 & M8N) now runs perfectly, has uploaded he files and the webpage works well. The other (6M) is still misbehaving somewhat. It uploads the two smaller files without issue, but when trying to upload the app.js.gz file, it gets stuck in a loop with the following debug code.