Skip to content

Commit

Permalink
remove For The Birds module; update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
mgeraci committed Aug 29, 2016
1 parent 5a102e2 commit d9d74d0
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 44 deletions.
11 changes: 8 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,14 @@ workon auto-hud
pip install -r requirements.txt
```

Then, to start the server, run `python auto-hud.py`, and hit localhost:5000.
But you'll need to add a configuration file before it starts up. What
configuration file? Glad you asked.
Then, to start the server, run:

```
python auto-hud.py
```

Tehn visit localhost:5000. But you'll need to add a configuration file before
it starts up properly. What configuration file? Glad you asked.

## Configuration
Auto HUD requires two configuration files in the project root to run,
Expand Down
4 changes: 0 additions & 4 deletions constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
'weather',
'birthdays',
'chores',
'birdPodcasts',
'subway',
'song',
'noConnection',
Expand All @@ -23,9 +22,6 @@
'choresPollTime': 1000 * 60,
'choresUrl': '/chores',

'birdPodcastsPollTime': 1000 * 60 * 5,
'birdPodcastsUrl': 'http://www.lauraerickson.com/radio/program-count',

'subwayPollTime': 1000 * 60,
'subwayUrl': '/mta-service-status',
'subwayRemoteUrl': 'http://web.mta.info/status/serviceStatus.txt',
Expand Down
15 changes: 0 additions & 15 deletions static/js/AutoHUDController.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -78,21 +78,6 @@ window.AutoHUDController = {
})


# chores
#############################################################################

birdPodcastsGetter: ->
$.ajax(C.birdPodcastsUrl, {
type: "GET"
success: (data) =>
res = {
birdPodcastCount: data.program_count
}

@model.set(res)
})


# weather
#############################################################################

Expand Down
14 changes: 0 additions & 14 deletions static/js/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,20 +134,6 @@ window.AutoHUDController = {
})(this)
});
},
birdPodcastsGetter: function() {
return $.ajax(C.birdPodcastsUrl, {
type: "GET",
success: (function(_this) {
return function(data) {
var res;
res = {
birdPodcastCount: data.program_count
};
return _this.model.set(res);
};
})(this)
});
},
weatherGetter: function() {
var url;
if (this.useTestWeatherData) {
Expand Down
8 changes: 0 additions & 8 deletions templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -96,14 +96,6 @@ <h2>
<% } %>
</script>

<script id="birdPodcasts-template" type="text/template">
<% if (d.birdPodcastCount) { %>
<ul class="hud-section hud-section-birthdays">
<li><%= d.birdPodcastCount %> For the Birds episodes</li>
</ul>
<% } %>
</script>

<script id="subway-template" type="text/template">
<% if (d.subway) { %>
<ul class="hud-section hud-section-subway">
Expand Down

0 comments on commit d9d74d0

Please sign in to comment.