Permalink
Browse files

Merge branch 'master' of github.com:geoloqi/PonchoApp

  • Loading branch information...
2 parents 51273ac + 7b1ea5d commit f4279930b9222640b74b970014272c38d3e15005 @aaronpk aaronpk committed Jun 2, 2012
Showing with 2 additions and 10 deletions.
  1. +2 −10 app.rb
View
12 app.rb
@@ -20,22 +20,14 @@ def process_users
l = Geoloqi::Session.new(access_token: $geoloqi_app_token).get 'location/last', user_id: user.user_id
f = Hashie::Mash.new darksky_forecast(l.location.position.latitude, l.location.position.longitude)
- f = Hashie::Mash.new({"currentTemp"=>61,
- "currentSummary"=>"clear",
- "hourSummary"=>"8 simultaneous hurricanes forever",
- "isPrecipitating"=>false,
- "minutesUntilChange"=>0,
- "checkTimeout"=>1050})
-
-# if user.extra.hour_summary.nil?
+ if user.extra.hour_summary.nil?
Geoloqi::Session.new.app_post "user/update/#{user.user_id}", extra: {hour_summary: 'clear'}
-# end
+ end
if f.hourSummary != 'clear' && user.extra.hour_summary != f.hourSummary
Geoloqi::Session.new.app_post "user/update/#{user.user_id}", extra: {hour_summary: f.hourSummary}
Geoloqi::Session.new(access_token: $geoloqi_app_token).post 'message/send', user_id: user.user_id, text: f.hourSummary
end
-
end
end

0 comments on commit f427993

Please sign in to comment.