Skip to content
This repository has been archived by the owner on Jul 19, 2020. It is now read-only.

foursquare job error #5

Closed
visibilityspots opened this issue Jun 5, 2013 · 6 comments
Closed

foursquare job error #5

visibilityspots opened this issue Jun 5, 2013 · 6 comments
Assignees

Comments

@visibilityspots
Copy link

Hi I got this error when trying to use the foursquare plugin

I just copied the erb file into my dashboard-project/jobs/ directory

All other plugins are working fine, did I missed a step?

scheduler caught exception:
undefined method []' for nil:NilClass */jobs/foursquare_venue.rb:25:inblock in <top (required)>'

@Ephigenia
Copy link
Owner

I guess there’s something wrong when analyzing the scraped foursquare venue site. I’ll check that next week.

@visibilityspots
Copy link
Author

Hi, in the meantime I figured out another approach to get the foursquare informations using their api => https://github.com/visibilityspots/dashing-scripts. That way you don't rely on the sites html code..

@nickste
Copy link
Contributor

nickste commented Dec 19, 2013

Foursquare (DE) changed the "Total Visitors" text on their site to "Besucher insgesamt". You can fix the foursquare.rb script by changing the following line (23) from:
checkins_people = /rightColumn.+Total Visitors.+venueStatCount.+data-count="([\d.,]+)">.+venueStatCount/
to
checkins_people = /rightColumn.+Besucher insgesamt.+venueStatCount.+data-count="([\d.,]+)">.+venueStatCount/

@Ephigenia
Copy link
Owner

@nickste thanks for the hint but maybe you want to change and test it yourself using the "edit" button on the file and and/or send a pull request with that change?

BTW: How do you test the dashboard? I’m having difficulties to run dashing start due to an issue in the event machine which is used and not compatible with the ruby i have on my max. Tipps appreciated.

/usr/local/Cellar/ruby/2.0.0-p0/lib/ruby/gems/2.0.0/gems/eventmachine-1.0.3/lib/rubyeventmachine.bundle: [BUG] Segmentation fault

@nickste
Copy link
Contributor

nickste commented Dec 19, 2013

@Ephigenia I've edited/tested and submitted the pull request.

I can't seem to recreate the error you're receiving. Do you get the same error when you create a clean dashing project with dashing new new_dash ?

I'm using Ruby 2.0.0 and Rails 4.0.0

@ghost ghost assigned Ephigenia Dec 19, 2013
@Ephigenia
Copy link
Owner

@nickste thanks! I’ve managed to update my gems with gem update --system and after that I'm able to test the stuff again. I’ll check your pull request in the afternoon!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants