Skip to content

Commit

Permalink
Merge pull request #10 from oracle-devrel/WSPluta-patch-1
Browse files Browse the repository at this point in the history
Update introduction.md
  • Loading branch information
WSPluta committed Jun 8, 2023
2 parents 5071917 + b127146 commit 9607356
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 86 deletions.
2 changes: 0 additions & 2 deletions introduction/introduction.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,6 @@ If you already have a cloud account, skip to the **Get Started** section.
![Final notification](images/account-provisioned.png)


![Architecture](~/../../l1deploy/images/architecture.png)

## Acknowledgements
- **Author/Contributors** - Stuart Coggins, Wojciech Pluta, Jason Lowe
- **Contributor** - Oracle LiveLabs Team
Expand Down
84 changes: 1 addition & 83 deletions l2dataingest/data-ingestion.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Estimated Lab Time: 10 minutes
In this workshop, you will learn about:

* F1 data packets high level flow
* Local Data Ingestion setup guide
* Data Ingestion setup

### Prerequisites

Expand Down Expand Up @@ -100,88 +100,6 @@ For latest packet definition please visit [here](https://racinggames.gg/f1/f1-22

You may now **proceed to the next lab**

## (Optional)Task: Setting up Edge Device

### Requirements

* Edge device with aarch64 OS architecture
* Autonomous Database provisioned and associated wallet file
* Oracle Instant Client installation
* Python 3+ (Tested with Python 3.8)
* Raspberry Pi 3/4/400 with Raspbian 64bits flashed on a 32Gb micro-sd card
* RabbitMQ (if Store And Forward is preferred)
* Linux-based (as the scripts have been run with Ubuntu / Oracle Linux)

#### Installing 64bit OS on Rasperry Pi

1. Download Raspberry [PI Imager](https://www.raspberrypi.com/software/) and install it locally
1. Download the [aarch64 OS image](https://downloads.raspberrypi.org/raspios_arm64/images/raspios_arm64-2022-09-26/2022-09-22-raspios-bullseye-arm64.img.xz)
1. Attach the SD Card to the your machine to image.
1. Start the PI Imager
1. Choose OS with "Use Custom OS" and select the downloaded image.
1. Choose Storage and select the SD Card
1. Configure Advanced Options
1. Setup name of your device
1. Setup username as "oracle"
1. Set password
1. Enable SSH
1. Enable WIFI
1. Set Locale
1. Save and Write Image to SD Card

#### Installing Data Ingestion Application

1. SSH into your Raspberry Pi
2. Git clone Data Ingestion engine to your Raspberry Pi from: `https://git.opcvr.tech/esports/dataingestion`
3. Checkout to Pi Branch
4. Download wallet (eg _Wallet_ATP.zip_) and copy wallet zip file into $F1SIM_HOME
5. Run

```bash
<copy>$F1SIM_HOME/bin/install_pi.sh</copy>
```

6. Input _rmqusername_ amd _rmqpassword_ - we will need them later
7. Copy $F1SIM_HOME/f1store.yaml.template as $F1SIM_HOME/f1store.yaml
8. Update f1store.yaml with Autonomous Database details from lab 1

* (Optional) Adjust _gamehost_ parameter for your host
* (Optional) _device_ parameter to your device name
* (Optional) _store_ parameter to how you want to process / save the data
* Update _rmqusername_ from step 4
* Update _rmqpassword_ from step 4
* Update _dbwalletpassword_ from step 4

#### Running services with webUI

Navigate to `<raspberrypi IP address>` in web browser or open localhost

#### Running services with CLI

SSH to you Pi or open terminal on your raspberry pi

1. To start UDP listener execute in terminal

```bash
<copy>sudo systemctl start f1sim-producer</copy>
```

2. To start a Rabbit MQ consumer

```bash
<copy>sudo systemctl start f1sim-consumer</copy>
```

3. To start a flask-based web application to support the running of the F1 Simulator

```bash
<copy>sudo systemctl start f1sim-webserver</copy>
```

To Monitor and Manage RabbitMQ use following commands
`sudo rabbitmqctl list_queues` - to see how many messages on the _PacketData_ queue
`sudo rabbitmqctl purge_queue PacketData` - to delete messages on the _PacketData_ queue
Or connect to `http://localhost:15672` (or remotely via the Pi's IP address), use your RMQ username / password to log into the management console

## Acknowledgements

Expand Down
2 changes: 1 addition & 1 deletion l3apex/import-custom-apex-app.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ An APEX Workspace is a logical domain where you define APEX applications. Each w

## Task 1: Install custom app in Oracle APEX

1. Download "Formula-Pi" APEX app [files](https://github.com/oracle-devrel/FormulaPi_Lab1_deployment/blob/main/l3apex/files/APEXapps.zip)
1. Download "Formula-Pi" APEX app [files](https://github.com/oracle-devrel/FormulaPi_Lab1_deployment/releases/download/v1.0/APEXapps.zip)
2. Copy the APEX direct link from the Resource Manager Output and paste it into your browser
![APEX Resource Manager Output URL](images/orm-apex-url.png)
3. Log into your Oracle APEX instance.
Expand Down

0 comments on commit 9607356

Please sign in to comment.