GithubHelp home page GithubHelp logo

softwareag / cumulocity-remote-access-local-proxy Goto Github PK

View Code? Open in Web Editor NEW
6.0 4.0 9.0 571 KB

Cumulocity IoT Remote Access Local Proxy

License: Apache License 2.0

Python 97.60% Dockerfile 1.28% Shell 1.12%
cumulocity iot-analytics cumulocity-iot c8y cumulocity-extension cli ssh cloud-remote-access extension

cumulocity-remote-access-local-proxy's People

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

cumulocity-remote-access-local-proxy's Issues

Get path of plugin directory

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

Update pypi publishing workflow

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   

tcp connection is not closed if websocket goes down

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.

Websocket connection is not closed, when tcp client disconnects

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.

Duplicate shorthand flag -t

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

  • Remove the "-t" option for "--token"

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.