-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Description
Project Overview
Develop a cross-platform mobile application (React Native/Expo recommended) to enable real-time GPS tracking and environmental monitoring of industrial/agricultural field machines in Islamabad, Lahore, and Karachi. Each city must have its own full-screen interactive map, city-branded colors, and persistently separated machine and weather data views. The app supports live switching via bottom navigation/tabs, and integrates a city-aware weather widget.
Key Requirements
1. City-Driven UI & Navigation
- Three main screens (Islamabad, Lahore, Karachi), each displaying a map centered and zoomed on the city, with city name overlay and custom theme.
- Switch views using a persistent navigation bar (bottom or top tabs).
- App opens to last visited city screen (persisted locally).
2. Map Functionality
- Show only machines relevant to the active city, using custom markers reflecting status (active/offline).
- Map actions: pan, zoom, rotate; machine locations updated in real-time.
- Tapping a marker opens a detail card: ID, name, last seen, local temperature, humidity, and optional telemetry.
3. Weather Data
- For each displayed machine, fetch live temperature and humidity based on its GPS coordinates via backend weather integration (OpenWeatherMap, cached 5-10 min per location).
- Compact widget at each city screen top-right: shows user/city temperature and humidity; updates every 10 min or on refresh; uses device location or falls back to city center.
4. Backend & Data Handling
- Server: Node.js/Express or Python/FastAPI, with PostgreSQL + PostGIS for geospatial storage. GPS hardware devices report to backend (HTTP/MQTT). Mobile app clients poll or use WebSocket for updates.
- Backend fetches and caches weather, validates/categorizes machines by city, and exposes secured APIs for mobile frontend.
5. UX & Future Extensibility
- High-contrast color coding (Islamabad=green, Lahore=orange, Karachi=blue), icons, and city branding.
- Support for offline mode, movement trails, geofencing, and status filtering as growth features.
- English language, with future Urdu localization considered.
This blueprint is designed for production-ready implementation, providing separated city management, real-time geospatial asset tracking, and seamless local weather integration for fast, context-aware field operations.