Skip to content

Commit

Permalink
Switch monitorApiKey and numberOfDays for Uptime Robot
Browse files Browse the repository at this point in the history
  • Loading branch information
crazy-max committed Apr 19, 2017
1 parent 91f69ae commit 1bd8766
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -936,8 +936,8 @@ <h3 id="miscellaneous"> Miscellaneous </h3>
<td><code>https://img.shields.io/uptimerobot/status/m778918918-3e92c097147760ee39d02d36.svg</code></td>
</tr>
<tr><th> Uptime Robot ratio (30 days): </th>
<td><img src='https://img.shields.io/uptimerobot/ratio/m778918918-3e92c097147760ee39d02d36/30.svg?maxAge=2592000' alt=''/></td>
<td><code>https://img.shields.io/uptimerobot/ratio/m778918918-3e92c097147760ee39d02d36/30.svg</code></td>
<td><img src='https://img.shields.io/uptimerobot/ratio/30/m778918918-3e92c097147760ee39d02d36.svg?maxAge=2592000' alt=''/></td>
<td><code>https://img.shields.io/uptimerobot/ratio/30/m778918918-3e92c097147760ee39d02d36.svg</code></td>
</tr>
</tbody></table>

Expand Down
6 changes: 3 additions & 3 deletions server.js
Original file line number Diff line number Diff line change
Expand Up @@ -6034,7 +6034,7 @@ cache(function(data, match, sendBadge, request) {
// API documentation : https://uptimerobot.com/api
camp.route(/^\/uptimerobot\/status\/(.*)\.(svg|png|gif|jpg|json)$/,
cache(function(data, match, sendBadge, request) {
var monitorApiKey = match[1]; // eg, u956-afus321g565fghr519
var monitorApiKey = match[1]; // eg, m778918918-3e92c097147760ee39d02d36
var format = match[2];
var badgeData = getBadgeData('status', data);
var options = {
Expand Down Expand Up @@ -6100,8 +6100,8 @@ cache(function(data, match, sendBadge, request) {
// API documentation : https://uptimerobot.com/api
camp.route(/^\/uptimerobot\/ratio\/(.*)\/(.*)\.(svg|png|gif|jpg|json)$/,
cache(function(data, match, sendBadge, request) {
var monitorApiKey = match[1]; // eg, u956-afus321g565fghr519
var numberOfDays = match[2]; // eg, 30
var numberOfDays = match[1]; // eg, 30
var monitorApiKey = match[2]; // eg, m778918918-3e92c097147760ee39d02d36
var format = match[3];
var badgeData = getBadgeData('uptime', data);
var options = {
Expand Down
4 changes: 2 additions & 2 deletions try.html
Original file line number Diff line number Diff line change
Expand Up @@ -939,8 +939,8 @@ <h3 id="miscellaneous"> Miscellaneous </h3>
<td><code>https://img.shields.io/uptimerobot/status/m778918918-3e92c097147760ee39d02d36.svg</code></td>
</tr>
<tr><th> Uptime Robot ratio (30 days): </th>
<td><img src='/uptimerobot/ratio/m778918918-3e92c097147760ee39d02d36/30.svg' alt=''/></td>
<td><code>https://img.shields.io/uptimerobot/ratio/m778918918-3e92c097147760ee39d02d36/30.svg</code></td>
<td><img src='/uptimerobot/ratio/30/m778918918-3e92c097147760ee39d02d36.svg' alt=''/></td>
<td><code>https://img.shields.io/uptimerobot/ratio/30/m778918918-3e92c097147760ee39d02d36.svg</code></td>
</tr>
</tbody></table>

Expand Down

0 comments on commit 1bd8766

Please sign in to comment.