Skip to content

Commit

Permalink
Merge branch 'dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanbc committed May 7, 2016
2 parents 9715649 + e687812 commit 9b90d96
Show file tree
Hide file tree
Showing 11 changed files with 234 additions and 29 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
uptimey
=======

[![Build Status](https://travis-ci.org/stefanbc/uptimey.svg?branch=dev)](https://travis-ci.org/stefanbc/uptimey) [![Dependency Status](https://www.versioneye.com/user/projects/572c7efaa0ca35004cf77288/badge.svg?style=flat)](https://www.versioneye.com/user/projects/572c7efaa0ca35004cf77288)
[![Build Status](https://travis-ci.org/stefanbc/uptimey.svg?branch=master)](https://travis-ci.org/stefanbc/uptimey) [![Dependency Status](https://www.versioneye.com/user/projects/572c7efaa0ca35004cf77288/badge.svg?style=flat)](https://www.versioneye.com/user/projects/572c7efaa0ca35004cf77288)

If you're proud of your server uptime, because you put a lot of time into configuring it, then you can showcase it with **uptimey** - a beautiful Server Uptime Monitor!

Expand All @@ -17,9 +17,9 @@ Features
* Knows your aprox server location (based on IP).
* Tweet your awesome uptime!
* Screenshot the server uptime and show it to your devops buddies! :)
* Configure it to your liking. You can modify the `client/bin/settings.json` file.
* Configure it to your liking. You can modify the `client/bin/settings.json` file. Checkout the [SETTINGS.md](SETTINGS.md) file for more info.

![Screenshot](https://i.imgur.com/BdIzEkg.png)
![Screenshot](https://i.imgur.com/sbvuMBB.png)

Requirements
--
Expand Down Expand Up @@ -48,6 +48,6 @@ Available Grunt tasks:

* `grunt` - will build the whole project.
* `grunt watch` - will watch for any file modifications and will build. Will also build on start.
* `grunt test` - will test the main app js file using `jshint` (more tests are comming soon).
* `grunt test` - will test the main app js file using `jshint` (more tests are coming soon).

For local development you can use Vagrant and you can check if the build passes using Travis-CI.
173 changes: 173 additions & 0 deletions SETTINGS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,173 @@
Settings
===

If you want to modify the way uptimey behaves and looks you can use the `client/bin/settings.json` file. This file once modified will adjust various things.

Below are the things that can be modified and the explanation to each one of them.

File structure
---

By default this is how the file should look. By removing any of the lines, you might break the app.

```
{
"background_color" : "",
"background_image" : "",
"buttons": [{
"refresh" : true,
"advanced" : true,
"twitter" : true,
"google-plus" : false,
"facebook" : false,
"screenshot" : true
}],
"debug_mode" : false,
"default_view" : "default",
"display_timezone" : "Europe/Bucharest",
"font_color" : "",
"font_family" : "",
"menu_placement" : "top",
"remove_menu" : false,
"show_am_pm" : true,
"show_location" : true,
"show_menu_always" : false,
"use_24h_clock" : false
}
```

Parameters
---

```
background_color
```
**(string) (optional)** You can set the desired background color for the app in a HEX or RGB format.

**Default**: empty

---

```
background_image
```
**(string) (optional)** By default the app uses a random image from [Unsplash](http://unsplash.com) but you can specify an URL to another image.

**Default**: empty

---

```
buttons
```
**(bool) (required)** If you want you can disable or enable one of the buttons in the top menu using a boolean value. Available buttons are: refresh, advanced, twitter, google-plus, facebook, screenshot.

**Default**:

```
"refresh" : true,
"advanced" : true,
"twitter" : true,
"google-plus" : false,
"facebook" : false,
"screenshot" : true
```

---

```
debug_mode
```
**(bool) (optional)** You can enable the debug mode for the app.

**Default**: false

---

```
default_view
```
**(string) (required)** Changed the default view of the app. Available options include: default, advanced.

**Default**: default

---

```
display_timezone
```
**(string) (required)** Set the display timezone for all dates and time featured in the app. You can use the timezones featured [here](http://php.net/manual/en/timezones.php).

**Default**: Europe/Bucharest

---

```
font_color
```
**(string) (optional)** You can set the desired font color for the app in a HEX or RGB format.

**Default**: empty

---

```
font_family
```
**(string) (optional)** You can set the desired font family for the app.

**Default**: empty

---

```
menu_placement
```
**(string) (required)** Set the default placement for the top menu. Available options include: top, bottom, left, right.

**Default**: top

---

```
remove_menu
```
**(bool) (optional)** Remove the main buttons menu entirely.

**Default**: false

---

```
show_am_pm
```
**(bool) (required)** Use this to show or hide the AM / PM operators when showing the time.

**Default**: true

---

```
show_location
```
**(bool) (required)** If you want to show or hide the location of your server you can use this parameter.

**Default**: true

---

```
show_menu_always
```
**(bool) (optional)** Use this parameter if you want to main button menu to be always toggled and opened.

**Default**: false

---

```
use_24h_clock
```
**(bool) (optional)** You can show the clock in a 24h format if you don't want to show it in a 12h format.

**Default**: false
2 changes: 1 addition & 1 deletion client/bin/app.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 9b90d96

Please sign in to comment.