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
jsonto your Gemfile and runbundle install - Create a file named
mywind.ymlin theconfigfolder 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/javascriptsfolder -
Download the file
mywind.rbbelow into thelibfolder -
Then either:
- Download the coffee/scss/html files below into a widget folder named
mywind - Download the
mywind-job.rbfile below into thejobsfolder
Or simply:
dashing install 9041024This method also downloads
mywind.rbinto 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-idattributes 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").