Displays the number of Bluecars available from an Autolib' station.
The following dependencies are required. Please add them to your dashing gemfile.
gem 'httparty'
Run bundle install
To install this widget into you dashboard, just run this command :
dashing install a2396a5166f831cbba84d2120bc92942
Insert the HTML code in your erb
file like this :
<li data-row="1" data-col="1" data-sizex="1" data-sizey="1">
<div data-id="autolib" data-view="Autolib"></div>
</li>
-
You'll need the API key, I managed to find it thanks to the RATP iOS app 😏
-
You can send me an email and I'll gladly give it to you 😉 : [email protected]
-
To find the
STATION_ID
of your Autolib' nearest station, parse this link (the syntax is usually City/Street/Number) : -
http://apixha.ixxi.net/APIX?keyapp=#{API_KEY}&cmd=searchPoiByCategory&categories=als&apixFormat=json
This widget is released under the MIT License.
Feel free to leave comments for any improvements.