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.
- 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.
- Clone the repository:
git clone https://github.com/Saboten758/Retro-Pulse.git
- Navigate to the project directory:
cd Retro-Pulse
- Install the dependencies:
npm install
-
export const OpenWeatherAPi=[YOUR API KEY]
- Run the project:
npm start
This will start the Metro bundler and launch the project on an emulator or connected device.
Central
Central
Central
Sensors with flashlight and device info
For devices without a light sensor
For devices with a light sensor
Location
Nightwave Plaza Radio ♫
Weather using OpenWeather API
Camera
- 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.
Contributions are welcome! If you find any issues or have suggestions 6472 for improvements, please open an issue or submit a pull request. Peace!!