This repository contains the Pyrrha solution application that targets Samsung watches paired with the sensor device and Samsung smartphone carried by the firefighters.
The application was originally built with Prometeo mockups and designs. The current project defaults to Pyrrha branding. Work is underway to automate packaging for either type using build flags.
The watch includes a limited subset of the features proposed in the original mockup. It includes:
- Basic home page with time and 4 readings shared from the device via the mobile app
- Alerts if one of the readings crosses a threshold which in turn initiates a vibration
The smartphone is responsible for pairing with the watch and the sensor device. The watch receives pushed updates over Bluetooth from the smartphone every second. If any indicator has been red for 5 seconds, it vibrates the watch.
The application is built as a Tizen Web (Companion) Application so it uses HTML, JavaScript, and CSS.
- Install Tizen Studio with the IDE installer. If you're on macOS Big Sur, you may have to temporarily override security settings to complete the installation. Take note of the default SDK and Data locations.
- Open the Package Manager and add Samsung SDKs for the watch. The non-LTE Galaxy Watch 46mm Bluetooth and Galaxy Watch 3 Bluetooth are the versions used for testing. You may need to sign up for a Samsung Developer Account.
- In the Main SDK tab, install the 5.5 Wearable, 4.0 Wearable, and 3.0 Wearable packages which will install an emulator, certificates, and web/native development environments.
- In the Extension SDK tab, install the Samsung Wearable Extension and Samsung Certificate Extension. If you don't see them, click the gear icon and scroll down and activate the respective repositories. Then return to the Extension SDK tab to install.
- Open Tizen Studio and select a workspace where you cloned this repository, for example the
workspace
folder in your home directory. - Clone this repository, either into the
workspace
folder or elswhere on your computer. For example, I use thedev
folder in my home directory to store all my clone repositories, including all the other Pyrrha projects. - In the Project Explorer pane, click "Create new project". Select Template, then Wearable v3.0. Choose Web Application, then TAU Basic. Name the project
PyrrhaWatchApp
(it can't contain hyphens) and click Finish. - Click File > Import... and select a General - File System. Browse to the folder where you clone this repo. selecting the
Pyrrha-Watch-App
folder and its included files. Click finish and overwrite existing files. - Open the Emulator Manager under the Tools menu and launch the Wearable Circle device.
- Back in Tizen Studio, right click on the
PyrrhaWatchApp
project and "Run as Tizen Web Application 3.0" in simulator. - The watch will begin running the app and generating random data to simulate how it works.
- If it doesn't run, you can click the bottom right watch button and select the app from the list to launch.
- In order to run the app on a physical device, you'll need to ensure it's built and signed with the Samsung Certificate Extension.
- You'll need to create a connection to the physical watch over WiFi and set it up in the Device Manager. Watch this video to learn more. There may be additional steps required depending on your device or system.
- Install Android Studio according to the Pyrrha-Mobile-App documentation.
Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting Pyrrha pull requests.
This project is licensed under the Apache 2 License - see the LICENSE file for details. Refer to the respective licenses in the code for the Samsung and Tizen APIs.