db-spl / meshtastak Goto Github PK
View Code? Open in Web Editor NEWA Python script to enable limited interoperability between Meshtastic devices and TAK servers.
License: GNU General Public License v3.0
A Python script to enable limited interoperability between Meshtastic devices and TAK servers.
License: GNU General Public License v3.0
After running the install command, manually installing the meshtastic module for python and trying to run the command to start meshtasTAK, I get the following:
$ python3 -m meshtasTAK
Opening TAK Server
send a connect
Flush the server response
Traceback (most recent call last):
File "/usr/lib/python3.8/runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/usr/lib/python3.8/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/home/freetak/.local/lib/python3.8/site-packages/meshtasTAK/__main__.py", line 164, in <module>
interface = meshtastic.StreamInterface()
AttributeError: module 'meshtastic' has no attribute 'StreamInterface'
send ping
read the ping response
Then I'm dumped back to the command prompt. I'm wondering if an update to the meshtastic python module no longer supports this way of using the StreamInterface. No clue, just speculating.
Is there anything I can do to correct this?
After read response the prosses crash
send a connect
Flush the server response
Traceback (most recent call last):
File "/usr/lib/python3.7/runpy.py", line 193, in _run_module_as_main
"main", mod_spec)
File "/usr/lib/python3.7/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/usr/local/lib/python3.7/dist-packages/meshtasTAK/main.py", line 164, in
interface = meshtastic.StreamInterface('/dev/ttyUSB0')
File "/usr/local/lib/python3.7/dist-packages/meshtastic/init.py", line 440, in init
"StreamInterface is now abstract (to update existing code create SerialInterface instead)")
Exception: StreamInterface is now abstract (to update existing code create SerialInterface instead)
send ping
read the ping response
b'\n<__group name="takpak.mkcot" role="Team Member" />'
pip install https://github.com/DeltaBravo15/meshtasTAK/archive/master.zip
/usr/lib/python3/dist-packages/secretstorage/dhcrypto.py:15: CryptographyDeprecationWarning: int_from_bytes is deprecated, use int.from_bytes instead
from cryptography.utils import int_from_bytes
/usr/lib/python3/dist-packages/secretstorage/util.py:19: CryptographyDeprecationWarning: int_from_bytes is deprecated, use int.from_bytes instead
from cryptography.utils import int_from_bytes
Collecting https://github.com/DeltaBravo15/meshtasTAK/archive/master.zip
Using cached https://github.com/DeltaBravo15/meshtasTAK/archive/master.zip
Requirement already satisfied (use --upgrade to upgrade): meshtasTAK==0.1.2 from https://github.com/DeltaBravo15/meshtasTAK/archive/master.zip in /home/ubuntu/.local/lib/python3.8/site-packages
Requirement already satisfied: takpak@ https://github.com/pinztrek/takpak/archive/master.zip from https://github.com/pinztrek/takpak/archive/master.zip in /home/ubuntu/.local/lib/python3.8/site-packages (from meshtasTAK==0.1.2) (0.5)
Building wheels for collected packages: meshtasTAK
Building wheel for meshtasTAK (setup.py) ... done
Created wheel for meshtasTAK: filename=meshtasTAK-0.1.2-py3-none-any.whl size=28087 sha256=cb46d3a2188ed976b096d4977d9538a0f44c34f3eba3bf9e81ab8ac6449fae18
Stored in directory: /tmp/pip-ephem-wheel-cache-v3v4cl_y/wheels/e7/c1/82/bd2e18c745d53f446284cf82b93254075f2d3479fbead5f4a0
Successfully built meshtasTAK
i try to start and return
/usr/bin/python: No module named mestasTAK
Include "cot_platform="meshtasTAK" in calls to takpak's mkcot() method to identify as "meshtasTAK" without altering takpak code.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.