Code Monkey home page Code Monkey logo

azure-iot-starterkit-cli's Introduction

Microsoft Azure IoT Starter Kit Companion CLI

The Microsoft Azure IoT Starter Kit Companion CLI is a sample command line application that helps you get your IoT device connected to an IoT Hub.

Features

The Microsoft Azure IoT Starter Kit Companion CLI will help you:

  • Connect your IoT device to a wireless network with Internet access.
  • Provision resources such as an IoT Hub and IoT Device in Azure.
  • Install and configure the IoT Edge Runtime on your IoT device as appropriate.

Getting Started

Prerequisites

Installation

The easiest way to install the Microsoft Azure IoT Starter Kit Companion CLI is using pip:

  • pip install azure-iot-starterkit-cli

Note: You might need to add the Python scripts folder to your PATH to use the tool (usually in here 'C:\Users\[user]\AppData\Local\Programs\Python\Python37-32\Scripts')

Quickstart

Getting a development environment up and running so that you can contribute fixes is easy:

  1. git clone https://github.com/Azure-Samples/azure-iot-starterkit-cli.git
  2. cd azure-iot-starterkit-cli
  3. pip install --editable .

Videos

The follow videos show how to get started with the CLI:

Additional Resources

  • Detailed documentation on how to use the CLI to provision your IoT Edge device can be found here.

Contributing

This project welcomes contributions and suggestions. 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 repos 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 [email protected] with any additional questions or comments.

azure-iot-starterkit-cli's People

Contributors

daisukeiot avatar microsoftopensource avatar msftgits avatar slicknik avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

azure-iot-starterkit-cli's Issues

KeyError: 'cs'

Please provide us with the following information:

This issue is for a: (mark with an x)

- [x] bug report -> please search issues before submitting
- [ ] feature request
- [ ] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)

Minimal steps to reproduce

iot --wifi-ssid TEXT --wifi-password TEXT --resource-group TEXT --iothub TEXT configure-device

Any log messages given by the failure

Checking for Connection String for device with name 'grovevisionkit'
Traceback (most recent call last):
File "c:\users\jovagh\appdata\local\programs\python\python36\lib\runpy.py", line 193, in _run_module_as_main
"main", mod_spec)
File "c:\users\jovagh\appdata\local\programs\python\python36\lib\runpy.py", line 85, in run_code
exec(code, run_globals)
File "C:\Users\jovagh\AppData\Local\Programs\Python\Python36\Scripts\iot.exe_main
.py", line 9, in
File "c:\users\jovagh\appdata\local\programs\python\python36\lib\site-packages\click\core.py", line 764, in call
return self.main(*args, **kwargs)
File "c:\users\jovagh\appdata\local\programs\python\python36\lib\site-packages\click\core.py", line 717, in main
rv = self.invoke(ctx)
File "c:\users\jovagh\appdata\local\programs\python\python36\lib\site-packages\click\core.py", line 1134, in invoke
Command.invoke(self, ctx)
File "c:\users\jovagh\appdata\local\programs\python\python36\lib\site-packages\click\core.py", line 956, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "c:\users\jovagh\appdata\local\programs\python\python36\lib\site-packages\click\core.py", line 555, in invoke
return callback(*args, **kwargs)
File "c:\users\jovagh\appdata\local\programs\python\python36\lib\site-packages\click\decorators.py", line 17, in new_func
return f(get_current_context(), *args, **kwargs)
File "c:\users\jovagh\appdata\local\programs\python\python36\lib\site-packages\iot.py", line 411, in cli
set_missing_parameters(ctx.obj)
File "c:\users\jovagh\appdata\local\programs\python\python36\lib\site-packages\iot.py", line 132, in set_missing_parameters
iot.set_config("cs", device_info["cs"])
KeyError: 'cs'

Expected/desired behavior

OS and Version?

Windows 10

Versions

Enterprise

Mention any other details that might be useful


Error in downloading scripts. Error message: [Errno 13] Permission denied: 'scripts.zip'

Please provide us with the following information:

This issue is for a: (mark with an x)

- [X ] bug report -> please search issues before submitting
- [ ] feature request
- [ X] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)

Minimal steps to reproduce

Get all the way through the creation of the Hub, Edge Device, and Registry, and then I see this error, Error in downloading scripts. Error message: [Errno 13] Permission denied: 'scripts.zip' Not sure how to resolve. I am connected via network cable to device. Connected and logged successfully into the device from the laptop.

Any log messages given by the failure

Error in downloading scripts. Error message: [Errno 13] Permission denied: 'scripts.zip'

Expected/desired behavior

Should download the scripts and start copying data to the device.

OS and Version?

Windows 10.

Versions

All the latest.

Mention any other details that might be useful


@terrymandin

Thanks! We'll be in touch soon.

ImportError: No module named request

  • [x ] bug report -> please search issues before submitting
  • feature request
  • documentation issue or request
  • regression (a behavior that used to work and stopped in a new release)

### Minimal steps to reproduce
pip install azure-iot-starterkit-cli
iot

### Any log messages given by the failure
C:\>iot
Traceback (most recent call last):
  File "c:\python27\lib\runpy.py", line 174, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "c:\python27\lib\runpy.py", line 72, in _run_code
    exec code in run_globals
  File "C:\Python27\Scripts\iot.exe\__main__.py", line 5, in <module>
  File "c:\python27\lib\site-packages\iot.py", line 7, in <module>
    import urllib.request
ImportError: No module named request

### Expected/desired behavior
IoT CLI to start

### OS and Version?
> Windows 10

### Versions
>

### Mention any other details that might be useful
I tried:

  easy_install.exe requests

as per this url: https://stackoverflow.com/questions/17309288/importerror-no-module-named-requests

Sorry, not a Python guy (yet) or I would debug/fix it.

Documentation does not show how you install or launch.

Please provide us with the following information:

This issue is for a: (mark with an x)

- [ ] bug report -> please search issues before submitting
- [ ] feature request
- [X ] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)

Minimal steps to reproduce

I cannot find anywhere that it say how you install and launch the CLI. I did manage to install PIP, and then was able to install it. At least the command window says that it was installed. But not sure how you launch it. There are videos showing the CLI in use, but they start with the CLI already running.

Any log messages given by the failure

Expected/desired behavior

Documentation that walks you through the installation and launch of the CLI.

OS and Version?

Windows 7, 8 or 10. Linux (which distribution). macOS (Yosemite? El Capitan? Sierra?)

Versions

Mention any other details that might be useful


Thanks! We'll be in touch soon.

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.