Metadata-Version: 2.1
Name: micropython-octopuslab-installer
Version: 0.1.0
Summary: OctopusLab installer for MicroPython
Home-page: https://github.com/octopusengine/octopuslab-installer
Author: Vašek Chalupníček
Author-email: 
License: UNKNOWN
Description: # OctopusLab Init Lite
        
        This module facilitates installation of OctopusLab MicroPython tools. We use it on ESP32 boards (all examples bellow), but it may work on other MicroPython ports as well.
        
        ## How to use?
        
        Bootstrap your ESP32 with latest MicroPython [documentation](https://docs.micropython.org/en/latest/esp32/tutorial/intro.html#esp32-intro)
        
        ```
        esptool.py --port /dev/ttyUSB0 erase_flash
        esptool.py --chip esp32 --port /dev/ttyUSB0 write_flash -z 0x1000 esp32-idf3-20200902-v1.13.bin
        screen /dev/ttyUSB0 115200
        ```
        
        Connect to WiFi
        ```
        import network
        wlan = network.WLAN(network.STA_IF)
        wlan.active(True)
        wlan.connect('essid', 'password')
        ```
        
        Install
        ```
        import upip
        upip.install('shutil')  # TODO include in `setup.py`
        upip.install('micropython-octopuslab-installer')
        from lib import octopuslab_installer
        octopuslab_installer.deploy()
        ```
        
        After this OctopusLab is installed in your ESP **don't forget to reboot**.
        
        Please proceed with inital configuration of your OctopusLab enabled board as per [documentation](https://docs.octopuslab.cz/install/#setup-nastaveni-systemu)
        
        
        # Build and publish new version of this module
        
        ```
        # initial setup of build environment
        git clone git@github.com:octopusengine/octopuslab-installer.git
        cd octopuslab-installer/
        python3 -m pip install --upgrade setuptools wheel
        python3 -m venv venv
        source ./venv/bin/activate
        pip install --upgrade wheel setuptools
        ```
        
        ```
        # PyPi publisher and authorisation
        pip install --upgrade twine
        mcedit ~/.pypirc
        chmod o-rwx ~/.pypirc
        ```
        
        ```
        # build command
        python setup.py sdist bdist_wheel
        # publish
        twine upload -r pypi dist/*
        ```
        
Platform: UNKNOWN
Requires-Python: >=3.6
Description-Content-Type: text/markdown
