softwareag / cumulocity-remote-access-local-proxy Goto Github PK
View Code? Open in Web Editor NEWCumulocity IoT Remote Access Local Proxy
License: Apache License 2.0
Cumulocity IoT Remote Access Local Proxy
License: Apache License 2.0
Hi,
I'm writing my own plugin in python.
I would like to use other files which are a located in the same directory as the plugin itself.
Is it possible to find out in which directory the script is located? The common way with __file__
is not possible.
BR
Artur
The pypy publishing is failing as username/password authentication is no longer supported (we should switch to api tokens).
ERROR HTTPError: 403 Forbidden from https://upload.pypi.org/legacy/
Username/Password authentication is no longer supported. Migrate to API
Tokens or Trusted Publishers instead. See
https://pypi.org/help/#apitoken and
https://pypi.org/help/#trusted-publishers
If the websocket connection closes the local tcp connection does not get informend and it looks like the connection the proxied port is still established.
Therefore the proxy should also close alle established connections on the local tcp side if the websocket connection breaks.
Some protocols do not keep the connection open. And if they open again they assume to have a clean session.
But because the c8ylp does not disconnect the websocket, the tcp connection on the device side remains open.
Therefore the c8ylp have to close the websocket conenction, if the tcp client disconnects. This would notify the device that the connection is closed and the device would then disconnect the tcp server, too.
I would be happy if you could fix this.
Improve the guess of which passthrough connection to use when multiple configurations are found.
There is a duplicate usage of a shorthand flag "-t" which is used both for "--token" and "--tenant".
The help shows the conflict:
>> c8ylp server --help Usage: c8ylp server [OPTIONS] DEVICE
…
Options:
--host TEXT Cumulocity Hostname [required] [env var:
C8Y_HOST]
-t, --tenant TEXT Cumulocity tenant id [env var: C8Y_TENANT]
-u, --user TEXT Cumulocity username [env var: C8Y_USER,
C8Y_USERNAME]
-t, --token TEXT Cumulocity token [env var: C8Y_TOKEN]
Suggested change
Currently it is not implemented to shutdown the TCP socket if a client is still connected.
CTRL + C prints that the Server will be shut down but will wait forever.
cumulocity-remote-access-local-proxy/c8ylp/tcp_socket/tcp_server.py
Lines 155 to 159 in 5314b80
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.