Open main menu

DAVE Developer's Wiki β

Changes

no edit summary
* The edge device is [[ORCA_SBC|Orca SBC]] instead of SBCSPG gateway.
* Fledge and Fledge GUI were not installed by using <code>apt</code>. They were built on the target instead even though the Linux distribution is still [[ORCA-TN-001_—_Running_Armbian_Bullseye_(Debian_11)|Debian 11]]. This configuration may be suited for development purposes. For instance, think about the case in which you have to develop some custom north/south plugins. This set-up allows to develop the plugins on a PC host running the ''same'' distribution, and to migrate them to the target later on when they are already tested and debugged thoroughly.
* As the target platform features an HDMI port, Fledge GUI can be displayed locally, too. This solution can be convenient for building products that require alocal display without having to implement a new graphics application. ==Building and running Fledge and Fledge GUI==For convenience, <code>sshd</code> was set up in order to access the target remotely over SSH connections. This step is not strictly necessary, but it is recommended because it allows to work more effectively as shown in the rest of the article. Fledge and Fledge GUI were built starting from the <code>develop</code> of their respective GitHub repositories.<pre class="workstation-terminal"> armbian@sbcorca-00a5:~/devel/fledge$ git clone https://github.com/fledge-iot/fledge.git...armbian@sbcorca-00a5:~/devel/fledge$ cd fledgearmbian@sbcorca-00a5:~/devel/fledge/fledge$ makeBuilding Fledge version 2.1.0, DB schema 60...uccessfully built cchardet pyjqInstalling collected packages: pyjwt, pyjq, ifaddr, cchardet, zeroconf, urllib3, multidict, idna, frozenlist, charset-normalizer, certifi, attrs, async-timeout, yarl, requests, aiosignal, requests-toolbelt, aiohttp, aiohttp_corsSuccessfully installed aiohttp-3.8.1 aiohttp_cors-0.7.0 aiosignal-1.3.1 async-timeout-4.0.2 attrs-23.1.0 cchardet-2.1.7 certifi-2022.12.7 charset-normalizer-2.1.1 frozenlist-1.3.3 idna-3.4 ifaddr-0.2.0 multidict-6.0.4 pyjq-2.5.1 pyjwt-1.6.4 requests-2.28.2 requests-toolbelt-0.9.1 urllib3-1.26.15 yarl-1.7.2 zeroconf-0.27.0 [notice] A new release of pip is available: 23.0.1 -> 23.1[notice] To update, run: python3 -m pip install --upgrade piparmbian@sbcorca-00a5:~/devel/fledge/fledge$ export FLEDGE_ROOT=/home/armbian/devel/fledge/fledgearmbian@sbcorca-00a5:~/devel/fledge/fledge$ $FLEDGE_ROOT/scripts/fledge stop ; $FLEDGE_ROOT/scripts/fledge startIt looks like Fledge is not running.Starting Fledge v2.1.0.......Fledge started.</pre><pre class="workstation-terminal"> armbian@sbcorca-00a5:~/devel/fledge$ cd fledge-guiarmbian@sbcorca-00a5:~/devel/fledge/fledge-gui$ yarn install && yarn start --host 0.0.0.0 --port 4200yarn install v1.22.19[1/4] Resolving packages...armbian@sbcorca-00a5:~/devel/fledge$ git clone https://github.com/fledge-iot/fledge-gui.git... </pre> Starting from the minimal Debian 11 image, the target's default configuration was changed in order to:* ==Visualize Fledge GUI on a local display==
4,650
edits