Skip to content

Latest commit

 

History

History
119 lines (94 loc) · 3.92 KB

README.md

File metadata and controls

119 lines (94 loc) · 3.92 KB

SerMon

A simple service monitor app based-on Cordova (Phonegap). If you have your own website/web service/web app, you can use this app to monitor server availability. It notifies you when server returns unusual status code.

Screenshots

Service List Add Service Service Status

Features

  • Cross-platform (aim for Firefox OS, Android, and iOS).
  • Notification on status bar when service down.
  • Simple and elegant user interface.
  • Add/modify/remove service profile.
  • Check service status periodically in the background.
  • View all check logs, loaded page by page.
  • Cleanup old logs everyday, keep latest 1200 logs.
  • Safe and secure, all data stores locally.

Support

  • Firefox OS: works fine, tested on unagi (b2g 1.4) and flame (b2g 2.1).
  • Open Web App for Android: works fine, tested on Samsung I9100, require Firefox for Android installed.
  • Open Web App for Desktop: works fine, tested on OSX 10.9, Ubuntu 12, Windows 7, require Firefox installed.
  • Android: works fine on emulator 4.4, chromium-based WebView is required for IndexedDB.
  • iOS: not working, waiting for IndexedDB support on iOS safari 8.

Give it a try

Contribute

Prerequisites

Download and Setup

$ git clone https://github.com/yshlin/SerMon
$ cd SerMon
$ ./init.sh

Making changes

  • All source code lies in the www folder.
  • For platform-specific files, put them in the merges folder.

Build and Run

on Firefox OS:

$ cordova build firefoxos
$ cordova run firefoxos

Open Web App for Android:

$ mozilla-apk-cli ./platforms/firefoxos/www/ sermon.apk
$ adb install sermon.apk

on Android:

$ cordova build android 
$ cordova run android

on iOS simulator:

$ cordova build ios 
$ cordova run ios --emulator

on iOS device:

$ cordova build ios 
$ cordova run ios

Trouble Shooting

Q: Why the log always shows 'No connection'?
A: Pleas check your network connection, and make sure your server supports HTTP 'HEAD' request, sometimes it works for certain path.

Q: Why it didn't check in the background?
A: You must manually open the app again after system restart, and make sure you (or the GC) didn't kill the app in the recent app list.

Q: Why it always shows 'Checked just now'?
A: The last check time is updated when app resumes, so you can check updates by turning the screen off and on, or by switching the app off and back.

Q: My battery is low, how can I turn the background check off?
A: Just terminate the app from the recent app list.

Reference