Retro Pulse
Well, I was trying out react-native-sensors, react-native-track-player and a bunch of other libraries, for getting the real-time (kinda...) sensor data from my phone and playing music. This repository contains an app built with React Native.
Features
- Utilizes accelerometer, magnetometer, gyroscope and light sensors.
- Displays real-time sensor data.
- Simple UI, with a retro look.
- Additional device info with all system features listed.
- Automatic flashlight in the dark (only on devices with a light sensor).
- Current Location data.
- Simple music player with Nightwave Plaza radio and other radios like J1 FM
- Uses OpenWeather API to fetch location based weather data.
Installation
- Clone the repository: ```bash git clone https://github.com/Saboten758/Retro-Pulse.git
- Navigate to the project directory: ```bash cd Retro-Pulse
- Install the dependencies: ```bash npm install
Create a file in the 'screens' directory and create a 'env.tsx' file and type:
- ```bash export const OpenWeatherAPi=[YOUR API KEY]
- Run the project: ```bash npm start This will start the Metro bundler and launch the project on an emulator or connected device.
Screenshots
![](https://camo.githubusercontent.com/8f0125d90163c866acf1864e9c50b93874a452b834259606cce2c5224f7a140e/68747470733a2f2f692e696d6775722e636f6d2f476147464376362e6a7067)
Central
![](https://camo.githubusercontent.com/2e6345fb72b57b7b9d492063d379cdbbe6dc3c95e4078a639937310fcd6603b4/68747470733a2f2f692e696d6775722e636f6d2f366d756e3875482e6a706567)
Central
![](https://camo.githubusercontent.com/590b9d07da03e1964667ea580443b53880954bcf4b5e6cf7564794bf2c57c284/68747470733a2f2f692e696d6775722e636f6d2f423375444d43772e6a7067)
Central
![](https://camo.githubusercontent.com/a48c586cfbd1abbfbeb287d18b9cf11557d3ec859d05b99354f4a9c0bbfb68eb/68747470733a2f2f692e696d6775722e636f6d2f476c4d4248624a2e6a7067)
Sensors with flashlight and device info
![](https://camo.githubusercontent.com/55dae1ae7ffcd85cc39cbda9035335e5c0d6ced7a67c63fd0a8fcdcd8b05ac4f/68747470733a2f2f692e696d6775722e636f6d2f3569496735344e2e6a706567)
For devices without a light sensor
![](https://camo.githubusercontent.com/b7cbe8d69bb78abca54a9b6f004634910849c705e1789c2d4b726ab7536e8e24/68747470733a2f2f692e696d6775722e636f6d2f423076774c79462e6a706567)
For devices with a light sensor
![](https://camo.githubusercontent.com/8d735cc27859e0ee16ca8d6887495c420d3eb8327b3b131034b97c32a73c1a6a/68747470733a2f2f692e696d6775722e636f6d2f65525a754276792e6a706567)
Location
![](https://camo.githubusercontent.com/8a21b4fd3ca8c71881a986cd0858f2f71e18ef519c0abfb636a4bc9c7cd80114/68747470733a2f2f692e696d6775722e636f6d2f453736545568352e6a706722)
Nightwave Plaza Radio ♫
![](https://camo.githubusercontent.com/e965bcde37efa5356aa04676bf523ce5fdf40fda1b038b1ad19bfe0bf67665cb/68747470733a2f2f692e696d6775722e636f6d2f7a6865453379462e6a706722)
Weather using OpenWeather API
![](https://camo.githubusercontent.com/953bb8fe6af16da76b8e05f79312ee81bc502e7b022a44457d2ea247ff811a71/68747470733a2f2f692e696d6775722e636f6d2f543376675a546b2e6a706722)
Camera
Usage
Usage
- Open the app on your device or emulator.
- Navigate to the "Sensors" card
- Press the "Press me!" button to start/stop sensor updates.
- Explore the real-time sensor data displayed on the screen.
- If your device houses a light sensor, you can also use the light sensor to turn on or off flashlight automatically!!
- Use the "Flash" button from the main screen for using flashlight.
- Tap the "i" from the main screen button for getting more info about the device. In the menu, tap on "All Features" to list all the available android features.
- Navigate to "Location" card for getting location details
- Navigate to "Music" card for playing music straight from Nightwave Plaza and other radio stations.
- Navigate below to "Weather" card to get location based weather data.
Contributing
Contributions are welcome! If you find any issues or have suggestions for improvements, please open an issue or submit a pull request. Peace!!
Download details:
Author: Saboten758
Source: https://github.com/Saboten758/Retro-Pulse
License: GPL-3.0 license
#reactnative #react #typescript