nawasara / wifi
Public WiFi hotspot monitoring for the Nawasara superapp framework — hotspot registry with location coordinates and connection status, ready for map plotting.
Requires
- php: ^8.1
- illuminate/support: ^10.0|^12.0
- livewire/livewire: ^3.0
- nawasara/ui: *
- spatie/laravel-activitylog: ^4.0
- spatie/laravel-permission: ^6.0
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
README
Public WiFi point monitoring for the Nawasara superapp framework. It is a hotspot registry with location coordinates and connection status, meant to be shown on a map alongside CCTV points (nawasara/cctv).
Status v0.1.0
| Feature | Status |
|---|---|
| WiFi point registry plus CRUD | ready |
| Coordinates (latitude/longitude) per point | ready |
| Connection status (connected / disconnected), manual | ready |
| Quick status toggle from the table | ready |
| Automatic status probe (ping/HTTP) | not built yet |
| Map view (combined with CCTV) | not built yet, handled separately |
Connection status in v0.1.0 is set manually through CRUD (an admin toggle). There is no automatic probe yet. That would need an IP/host column plus probe logic, which can be added later without a large migration (the status and status_changed_at structure is already in place for it).
Setup
php artisan migrate
php artisan db:seed --class="Nawasara\\Wifi\\Database\\Seeders\\PermissionSeeder"
Model
WifiPoint (nawasara_wifi_points):
name,location: point identitylatitude,longitude: coordinates,decimal(10,7), nullable. Only points with complete coordinates are plotted on the map (themappable()scope).status:connectedordisconnected. Change it throughsetStatus()sostatus_changed_atis stamped consistently.is_active: admin enable/disable.
Permissions
| Permission | For |
|---|---|
wifi.point.view |
View the WiFi point list |
wifi.point.create |
Add a point |
wifi.point.update |
Edit a point and toggle status |
wifi.point.delete |
Delete a point |
Roadmap
- Auto-probe: add an
ip_address/hostcolumn plus awifi:probecommand (following thecctv:probepattern) to update status automatically. - Map view: an interactive map page that plots WiFi and CCTV markers (
nawasara/cctvalso already has coordinates) on a single map.