Dashing widget to show details about your Italian Wind mobile contracts. It supports both prepaid SIM cards and contracts and can display:
- credit
- voice traffic
- text traffic
- data traffic
- expiries
This widget relies on the same HTTP API used by the mobile Wind apps, which is undocumented and can break at any time
Wind's HTTP API only serves private customers, it cannot be used for business contracts
- Add
json
to your Gemfile and runbundle install
- Create a file named
mywind.yml
in theconfig
folder and set your credentials and mobile contracts:
- user: "your wind.it user"
password: "your wind.it password"
contracts:
some_widget_id: "a mobile number"
another_widget_id: "another mobile number"
-
Download gauge.js into the
assets/javascripts
folder -
Download the file
mywind.rb
below into thelib
folder -
Then either:
- Download the coffee/scss/html files below into a widget folder named
mywind
- Download the
mywind-job.rb
file below into thejobs
folder
Or simply:
dashing install 9041024
This method also downloads
mywind.rb
into the jobs folder, that is OK although unnecessary and can be deleted from there - Download the coffee/scss/html files below into a widget folder named
-
Finally create a dashboard and use the same widgets ids set in the configuration files as
data-id
attributes and setdata-view="Mywind"
:
<li data-row="1" data-col="1" data-sizex="1" data-sizey="1">
<div data-id="some_widget_id" data-view="Mywind" data-title="My Internet Key"></div>
</li>
A mobile prepaid SIM with a data plan requires two columns' space (data-sizex="2"
).
A contract mobile broadband SIM fits into one column (data-sizex="1"
).