Git Product home page Git Product logo

magicmirroriotedge's Introduction

MagicMirrorIoTEdge

My attempt at putting magicmirror on the IOT Edge and learn on a rock-3a

image: https://github.com/radxa-build/rock-3a/releases/download/main-a7204124/rock-3a-ubuntu-focal-server-arm64-20220501-0200-gpt.img.xz

doc: https://wiki.radxa.com/Rock3/Debian

  1. portal.azure.com
    • Create IOT Hub (rpi4iothub)
    • Create Iot Edge Device (rk3adevice)

Start Raspberry Pi Imager download https://github.com/radxa-build/rock-3a/releases/download/main-a7204124/rock-3a-ubuntu-focal-server-arm64-20220501-0200-gpt.img.xz select and write rock-3a-ubuntu-focal-server-arm64-20220501-0200-gpt.img.xz

install sd in rock-3a ssh [email protected]

$ sudo apt-get update

$ sudo apt-get install -y rockchip-overlay

$ sudo apt-get install -y linux-4.19-rock-3-latest

config using the /boot/uEnv.txt

  1. NO Wifi? : only if you buy the adapter!!!

Install IOT Edge https://docs.microsoft.com/en-us/azure/iot-edge/how-to-provision-single-device-linux-symmetric?view=iotedge-2020-11&tabs=visual-studio-code%2Crpios for Ubuntu 20.04

sudo apt install wget wget https://packages.microsoft.com/config/ubuntu/20.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb sudo dpkg -i packages-microsoft-prod.deb rm packages-microsoft-prod.deb sudo apt-get update;
sudo apt-get install moby-engine

sudo nano /etc/docker/daemon.json

  • { "log-driver": "local", "dns": ["ip.of.my.localRouter"] }
    • sudo systemctl restart docker

sudo nano /etc/sysctl.conf - uncomment line below net.ipv4.ip_forward=1 sudo systemctl restart docker

sudo apt-get update;
sudo apt-get install aziot-edge defender-iot-micro-agent-edge

sudo iotedge config mp --connection-string 'PASTE_DEVICE_CONNECTION_STRING_HERE' sudo iotedge config apply sudo iotedge check

When you create a new IoT Edge device, it will display the status code 417 -- The device's deployment configuration is not set in the Azure portal. This status is normal, and means that the device is ready to receive a module deployment.

  1. Time to set up vscode

sudo usermod -aG docker $USER newgrp docker -test setting like this docker run hello-world

- https://www.digitalocean.com/community/tutorials/how-to-set-up-ssh-keys-on-ubuntu-20-04

on dev/vscode computer run: ssh-copy-id username@remote_host 2. in vs code workspace settings from command line pallet add these lines only ip of rpi works for some reason do not try name "azure-iot-edge.executor.env": { "DOCKER_HOST": "ssh://username@remote_host" },

Azure portal Set modules on device -> Runtime Settings for agent hub image need to be updated from 1.1 default to 1.2 for some reason, USE: Image uri: mcr.microsoft.com/azureiotedge-agent:1.2 and Image Uri: mcr.microsoft.com/azureiotedge-hub:1.2 for agent and hub perspectively.

VScode DEV environment builds fail with: Get "http://localhost:5000/v2/": dial tcp 127.0.0.1:5000: connect: connection refused fix in project solution with: devcontainer.json uncomment: "forwardPorts": [5000, 5001],

  • and removed redistry2 container from docker to get it to rebuild and push on the next build and push IoT Solution

magicmirroriotedge's People

Contributors

mharris867 avatar

Watchers

 avatar

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.