Installation
- Copy the project to the web root.
- Import
schema.sqlinto the shared database. - Update
config.phpbefore production, especiallyserver_secret. - Check PHP can reach the database and send mail.
- Open the app once online so the service worker can cache the shell.
Offline operation
The app saves records locally first. If the network goes missing, work keeps going. When connectivity returns, the queued records sync automatically.
Nothing gets deleted just because the phone had a sulk. The queue keeps the unsent work until the server says it has it.
How to record floors
- Select or create the building.
- Keep the location visible so the app knows where you are.
- Enter a pressure reading if the device has one, or type one manually.
- Tap ground, roof, or floor depending on what you are recording.
- Use Correct / Incorrect after an estimate. If wrong, enter the actual floor if known.
How estimates work
The estimator uses barometric pressure, known anchors, historical measurements, and user confirmations. Where the app has both ground and roof anchors, it interpolates between them. If it has only partial data, confidence drops instead of pretending to be magical.
Confidence labels are:
- LOW — useful but not to be trusted with your lunch order.
- MEDIUM — decent enough for a working estimate.
- HIGH — the model has enough evidence to stand up straight.
Sensor compatibility
Supported where available:
- Geolocation
- Vibration
- Web Audio beep alarm
- Barometer / pressure sensor APIs when the browser actually supports them
If a phone does not have a barometer, the app says so. No fake hardware. We’re building a floor app, not a fairy tale.
Troubleshooting
- Search returns nothing: try a suburb or the first line of the address.
- Location not updating: allow location permission and keep the browser awake.
- Sync stuck: check connection, then hit the app again once online.
- Mail not sending: verify the server can send mail and the contact address is configured.
Data & diagnostics
Exports belong to the current device and contributor only. Use the JSON/CSV export buttons in the app when you want your local copy. The diagnostic export includes the current connection state, sensor support, and session context so troubleshooting does not turn into a guessing competition.
Recent activity is kept locally for the current session and helps explain what the app was doing when the floor estimate went sideways.
Contact / Feedback
Send notes, bug reports, and “why is the lift doing that?” messages to petertippett@headforheights.com.au.
Include the subject, a short message, and an optional reply address if you want a response. Keep it tidy; the server has enough drama already.
Privacy policy
The app stores a random contributor token and session id so records can be attributed without a login. Location data, measurements, and feedback may be stored on the server when you sync. No marketing nonsense, no behavioural carpet bombing.
Use of the app implies consent to store your contributed data so the shared building profile can improve over time.
Terms and limitations
Floor estimates are not safety-critical instruments and must not be treated as gospel. Verify your actual location before acting on a result. The app is provided in good faith, on an Australian footing, and without warranties that the lift will behave, the barometer will be present, or the building will be sensible.
Any Australian consumer law rights that cannot be excluded remain intact. Everything else is delivered with the usual amount of caution and a small nod to reality.