iotedgedev | Azure IoT Edge Dev Tool greatly simplifies your Azure IoT | Azure library

 by   Azure Python Version: v3.3.7 License: Non-SPDX

kandi X-RAY | iotedgedev Summary

kandi X-RAY | iotedgedev Summary

iotedgedev is a Python library typically used in Cloud, Azure, React, Jupyter, Docker, Raspberry Pi applications. iotedgedev has no bugs, it has no vulnerabilities, it has build file available and it has low support. However iotedgedev has a Non-SPDX License. You can download it from GitHub.

For the absolute fastest way to get started with IoT Edge Dev, please see the Quickstart section below. For a more detailed overview of IoT Edge Dev Tool including setup and commands, please see the Wiki.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              iotedgedev has a low active ecosystem.
              It has 145 star(s) with 69 fork(s). There are 28 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              There are 22 open issues and 310 have been closed. On average issues are closed in 93 days. There are 5 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of iotedgedev is v3.3.7

            kandi-Quality Quality

              iotedgedev has 0 bugs and 0 code smells.

            kandi-Security Security

              iotedgedev has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              iotedgedev code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              iotedgedev has a Non-SPDX License.
              Non-SPDX licenses can be open source with a non SPDX compliant license, or non open source licenses, and you need to review them closely before use.

            kandi-Reuse Reuse

              iotedgedev releases are available to install and integrate.
              Build file is available. You can build the component from source.
              Installation instructions, examples and code snippets are available.
              iotedgedev saves you 1898 person hours of effort in developing the same functionality from scratch.
              It has 4184 lines of code, 413 functions and 44 files.
              It has high code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi has reviewed iotedgedev and discovered the below as its top functions. This is intended to give you an instant insight into iotedgedev implemented functionality, and help decide if they suit your requirements.
            • Load the environment variables
            • Get an environment variable
            • Sets the registry for the given env key
            • Get the registry from the environment
            • Decorate a function with telemetry
            • Mark the result as failed
            • Parse parameters
            • Flush current session information
            • Deploy a template
            • Return ordered list of commands
            • List resource groups
            • Decorator to convert userags to telemetry
            • Deploy an iothub
            • Create a new solution
            • Validate deployment template
            • Invoke azure CLI
            • List all available subscriptions
            • Set up an IOLub
            • Decorator to add module options
            • Upload data to Telemetry server
            • Decrypts the result of a function
            • Start a simulation
            • Remove a key from a dict
            • Load the module json file
            • Get the default IoT hub name
            • Setup the configuration
            Get all kandi verified functions for this library.

            iotedgedev Key Features

            No Key Features are available at this moment for iotedgedev.

            iotedgedev Examples and Code Snippets

            No Code Snippets are available at this moment for iotedgedev.

            Community Discussions

            QUESTION

            Turn existing ASP.NET Core Web App to Edge module running on Azure IoT Edge
            Asked 2019-Jun-04 at 16:03

            I have an existing ASP.NET Core Web App running as a docker container and would like to provide it as a Edge Module running on Azure IoT Edge. From the docs i know i can run Azure Functions, Stream Analytics and Custom modules (which from my understanding are just console applications integrating with the Azure IoT Edge Runtime).

            What is the best way to turn my ASP.NET Core Web App into an Edge Module and interact with Edge Hub?

            Would the best approach be to use a custom module as a template, move my ASP.NET Core project over to fit the file structure and edit the dockerfiles to run my main ASP.NET Core Assembly?

            Thank you for any advise!

            Update: I was following the approach stated above. I created a custom edge module and tried to convert it to the simplest possible ASP.NET Core Web App using the following steps:

            1. Add package reference
            2. Add Startup class

              public class Startup {

              ...

            ANSWER

            Answered 2019-Jun-04 at 16:01

            If you app is already containerized, there shouldn't be really much that you need to add, to make this an Edge module:

            • Add nuget package Microsoft.Azure.Devices.Client
            • Init ModuleClient somewhere in your code, probably in some startup routine: ModuleClient moduleClient = await ModuleClient.CreateFromEnvironmentAsync(transportType);

            • Use the moduleClient to send and receive messages alongside your asp.net stuff

            • Add this container as a module in your deployment.json (and make it available in a container repo)

            This should be pretty straightforward. You don't need to start from the module templates or Dockerfiles. If you look at them, there is really no magic going on.

            Source https://stackoverflow.com/questions/56446293

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install iotedgedev

            To set up development machines manually instead of using the IoT Edge Dev Container, please see the Manual Development Machine Setup Wiki. This quickstart will run a container, create a solution, setup Azure resources, build and deploy modules to your device, setup and start the IoT Edge simulator, monitor messages flowing into IoT Hub, and finally deploy to the IoT Edge runtime. The only thing you need to install is Docker. All of the other dev dependencies are included in the container.
            Install Docker CE For Windows, please follow the document to open Docker Settings and setup a Shared Drive. For macOS, please follow the document to choose local directories to share with your containers. Note: If the device is behind the proxy server, you can set the proxy manually
            Run the IoT Edge Dev Container Before you run the container, you will need to create a local folder to store your IoT Edge solution files. Windows mkdir c:\temp\iotedge docker run -ti -v /var/run/docker.sock:/var/run/docker.sock -v c:/temp/iotedge:/home/iotedge mcr.microsoft.com/iotedge/iotedgedev Linux sudo mkdir /home/iotedge sudo docker run -ti -v /var/run/docker.sock:/var/run/docker.sock -v ~/iotedge:/home/iotedge mcr.microsoft.com/iotedge/iotedgedev macOS mkdir ~/iotedge docker run -ti -v /var/run/docker.sock:/var/run/docker.sock -v ~/iotedge:/home/iotedge mcr.microsoft.com/iotedge/iotedgedev
            Initialize IoT Edge solution and setup Azure resources iotedgedev init iotedgedev init will create a solution and setup your Azure IoT Hub in a single command. The solution comes with a default C# module named filtermodule. More information You will see structure of current folder like below: │ .env │ .gitignore │ deployment.debug.template.json │ deployment.template.json │ ├─.vscode │ launch.json │ └─modules └─filtermodule │ .gitignore │ Dockerfile.amd64 │ Dockerfile.amd64.debug │ Dockerfile.arm32v7 │ Dockerfile.windows-amd64 │ filtermodule.csproj │ module.json │ Program.cs Open .env file, you will see the IOTHUB_CONNECTION_STRING and DEVICE_CONNECTION_STRING environment variables filled correctly. Open deployment.template.json file You will see below section in the modules section: "filtermodule": { "version": "1.0", "type": "docker", "status": "running", "restartPolicy": "always", "settings": { "image": "${MODULES.filtermodule}", "createOptions": {} } } Two default routes are added: "routes": { "sensorTofiltermodule": "FROM /messages/modules/tempSensor/outputs/temperatureOutput INTO BrokeredEndpoint(\"/modules/filtermodule/inputs/input1\")", "filtermoduleToIoTHub": "FROM /messages/modules/filtermodule/outputs/* INTO $upstream" } You will see privacy statement like below: Welcome to iotedgedev! ------------------------- Telemetry --------- The iotedgedev collects usage data in order to improve your experience. The data is anonymous and does not include commandline argument values. The data is collected by Microsoft. You can change your telemetry settings by updating 'collect_telemetry' to 'no' in ~/.iotedgedev/setting.ini
            Build IoT Edge module images sudo iotedgedev build This step will build user modules in deployment.template.json targeting amd64 platform. More information You will see a "BUILD COMPLETE" for each module and no error messages in the terminal output. Open config/deployment.amd64.json file, you will see the module image placeholders expanded correctly. Run sudo docker image ls, you will see the module images you just built.
            Setup and start the IoT Edge Simulator to run the solution sudo iotedgedev start --setup --file config/deployment.amd64.json More information You will see an "IoT Edge Simulator has been started in solution mode." message at the end of the terminal output Run sudo docker ps, you will see your modules running as well as an edgeHubDev container
            Monitor messages sent from IoT Edge Simulator to IoT Hub iotedgedev monitor More information You will see your expected messages sending to IoT Hub Stopping the monitor doesn't stop the simulator. It will continue running until it is explicitely stopped using iotedgedev stop and at that time all containers used by the simulator will be cleaned up.
            Docker containers/images management The containers used by the simulator will be cleaned up when the simulator stops running iotedgedev stop All remaining containers can be cleaned up using iotedgedev docker clean -c All remaining images can be cleaned up using iotedgedev docker clean -i

            Support

            This project welcomes contributions and suggestions. Please refer to the Contributing file for details on contributing changes. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.microsoft.com. When you submit a pull request, a CLA-bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repositories using our CLA. This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/Azure/iotedgedev.git

          • CLI

            gh repo clone Azure/iotedgedev

          • sshUrl

            git@github.com:Azure/iotedgedev.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link