title: Use with Excel data to display on Dashing Dashboard?
body: <p>I'm trying to get an example of the following code from <a href="https://github.com/Shopify/dashing/issues/78" rel="nofollow noreferrer">github</a> that looks to be a dead topic for my Linux/Ubuntu install. I have been trying to scrape data from my company intranet using "mechanize" see <a href="https://stackoverflow.com/questions/29292643/scraping-a-site-that-requires-login-username-and-password-on-two-separate-pages">stack question for details</a>. Since I'm not smart enough to figure a way around my login issue I thought I would try and feed data from an excel sheet as a work around until I can figure out the mechanize route. Once again I'm not smart enough to get the provided code to work on Linux because I'm getting the following error:</p>
  
  <p><strong>`kqueue=': kqueue is not supported on this platform (EventMachine::Unsupported)</strong></p>
  
  <p>If I'm understanding correctly from the information provided in the original source, the problem is that <code>kqueue</code> isn't supported in Linux. The OP states that <code>inotify</code> is an alternative but I've had no luck finding a similar example using it to display Excel in a widget.</p>
  
  <p>Here is the code that is shown on GitHub and would like help converting it to work on Linux:</p>
  
  <pre><code>require 'roo'
  
  EM.kqueue = EM.kqueue?
  file_path = "#{Dir.pwd}/spreadsheet.xls"
  
  def fetch_spreadsheet_data(path)
    s = Roo::Excel.new(path)
    send_event('valuation',   { current: s.cell(1, 2) })
  end
  
  module Handler
    def file_modified
      fetch_spreadsheet_data(path)
    end
  end
  
  fetch_spreadsheet_data(file_path)
  
  EM.next_tick do
    EM.watch_file(file_path, Handler)
  end
  </code></pre>