This project creates an iOS widget to monitor washing machines and dryers in all CBS dorms using the Scriptable App.
Moreover, the widget lets users check their current balance of their laundry tag.
- See the status of laundry machines and dryers
- Colour encoding quickly shows the status of the machines
- Red: In use
- Yellow: Soon to finish
- Green: Machine ready / finished
- Rings show progress of each machine
- Display current balance of your laundr tag
All features are also explained in the graphic below:
-
Create a new script inside Scriptable.
-
Rename the script by clicking on its name in the top. (You might skip this step 😜)
-
Copy the code for you dorm from HERE into the empty script.
Options are:- Porcelaenshaven
- Holger Danske Kollegiet
- Nimbusparken
- Kathrine kollegiet
The file you are copying can be found under CBSLaundryWidget.js.
-
Add the Scriptable widget to your homescreen (hold on an app until it shakes and click the "+" button on the upper left corner).
The suggested size is small. -
Click on the newly created widget and select the newly created script.
- Optional: Under Parameter enter your username and password to see your current Saniva balance.
The format should be <username>;<password>
Example: 123;0000 - Optional: Change the setting When Interacting from Open App to Run Script to update the widget by clicking on it.
The variable dorm determines the dorm displayed. Insert your dorm name (in quotes, spelling important). Options are:
- Porcelaenshaven
- Holger Danske Kollegiet
- Nimbusparken
- Kathrine kollegiet
The script available on the website https://www.niclaslach.de/copyCBSLaundryWidgetCode changes this value automatically.