Skip to content

Commit

Permalink
move twitter stream
Browse files Browse the repository at this point in the history
  • Loading branch information
justintrudell committed Apr 24, 2016
1 parent c2f9ccd commit 904dadd
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions src/main/java/API/Entry.java
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,12 @@ public class Entry {
static OkHttpClient client = new OkHttpClient();

public static void main(String[] args) throws Exception {
RunTwitterStream();

Map<String, String> map = new HashMap<>();
map.put("color_quality", "-1");
staticFileLocation("/public");
// Create
DAOEntryMethodCaller.createTables();
RunTwitterStream();

get("/", (req, res) -> new ModelAndView(map, "index"), new JadeTemplateEngine());

Expand Down
2 changes: 1 addition & 1 deletion src/main/java/DAO/DataAccessObject.java
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ public static JsonArray processCities() throws Exception {
jobj.addProperty("latitude", rs.getDouble("latitude"));
jobj.addProperty("temp", rs.getDouble("temp"));
jobj.addProperty("weight", rs.getDouble("intensity"));
if(rs.getDouble("intensity") > 1000d)
if(rs.getDouble("intensity") > 150d)
SendTweet(rs.getDouble("intensity"), GetLocation.CoordsToCity(rs.getDouble("longitude"), rs.getDouble("latitude")));
jarr.add(jobj);
}
Expand Down
Empty file added userData.db
Empty file.
Binary file modified userEntries.db
Binary file not shown.

0 comments on commit 904dadd

Please sign in to comment.