A radio alarm clock which, at the defined time, activates radio streaming and increases the volume and intensity of the light every minute. It is possible to deactivate the alarm by rotating the device. In the first part of the app it is possible to indicate the hour and minute of the alarm and the radio channel.
Compatibility
{ "do": [ { "set": [ "h", "=", 8 ] }, { "set": [ "m", "=", 0 ] }, { "radio": { "setChannel": 0, "url": "http://icestreaming.rai.it/1.mp3" } }, { "set": [ "b", "=", 0 ] }, { "timer": { "do": [ { "if": { "is": [ "hour", "==", "h" ], "then": [ { "if": { "is": [ "minute", "==", "m" ], "then": [ { "if": { "is": [ "second", "<", 10 ], "then": [ { "system": { "volume": 3 } }, { "radio": { "channel": 0 } }, { "timer": { "do": [ { "set": [ "b", "+=", 20 ] }, { "light": { "brightness": "b", "color": 11, "duration": 0 } }, { "system": { "volume": "+" } } ], "every": 60, "id": 1, "play": 5 } } ] } } ] } } ] } } ], "every": 10, "id": 0, "play": -1 } }, { "on": { "do": [ { "timer": { "id": 1, "play": 0 } }, { "light": { "brightness": "b", "color": 0, "duration": 0 } }, { "radio": { "play": 0 } } ], "event": "cubicPositionChanged" } } ]}