Simple widget to display forex rates for different currencies.
##Dependencies
Add it to dashing's gemfile:
gem 'httparty'
and run bundle install
. Everything should work now :)
##Usage
To use this widget, copy the forex.rb
file in your /jobs
folder.
To include the widget in a dashboard, add the following snippet to the dashboard layout file:
<li data-row="2" data-col="2" data-sizex="1" data-sizey="1">
<div data-id="gbp" data-view="Number" data-title="GBP"></div>
##Settings
Add as many of these you like, but make sure to change the 'id' values to the desired exchange rate. By default we have 4, "aed", "gbp", "aud", "eur". Since the api returns a lot more, you can edit the 'forex.rb' file to add currencies. You can also change the base (USD by default) in the url.
The data is updated every 30 seconds, this can again be changed in the 'todoist_tasks.rb' file.
This uses the standard widget for displaying Numbers.
Please leave a review and your feedback below, Thank you :)