I'm making an Alarm Clock and I got the AM PM to work, which was hell but I Cannot turn off the alarm clocks measure so it goes off at the specific time regardless. :/ Disable the measure doesn't seem to work and I don't know what to do to fix this.
Side Notes: The Alarmpath just opens my music player, and state is set to 1 and set to change through meter buttons.And the Value(w/e)Set are changed through other meters and they are the actual time the alarm is set too. But How do I disable the measure so it doesn't go off? :/
Last edited by Spotknull on January 14th, 2017, 9:28 pm, edited 3 times in total.
can you explain to me how that works, incase I later on wanna make a snooze button?
Also this change didn't fix the original problem of the alarm going off while it's still disabled. :/
That actually made it worse, now the alarm goes off whenever the skin is reloaded.
Spotknull wrote:can you explain to me how that works, incase I later on wanna make a snooze button?
Also this change didn't fix the original problem of the alarm going off while it's still disabled. :/
That actually made it worse, now the alarm goes off whenever the skin is reloaded.
The idea is the following: the formula of the [MeasureAlarm] measure converts the values of the [MeasureGetAlarmAMPM], [MeasureGetAlarmHour] and [MeasureGetAlarmMin] measures into a decimal number between 0 and 24. The (12*(#ValueAMPMSet#-1)+((#ValueHourSet#=12)?0:#ValueHourSet#)+(#ValueMinSet#/60)) part of the IfCondition makes a same kind of conversion of the ValueAMPMSet, ValueHourSet and ValueMinSet variables. These two values are compared by the IfCondition option. The #AlarmPath1# is executed when the first value is greater then the second one.
I'm not sure how are you disabling the alarm, because you've posted just the measures. Also don't know how and when the value of the state variable is changing.
balala wrote:The idea is the following: the formula of the [MeasureAlarm] measure converts the values of the [MeasureGetAlarmAMPM], [MeasureGetAlarmHour] and [MeasureGetAlarmMin] measures into a decimal number between 0 and 24. The (12*(#ValueAMPMSet#-1)+((#ValueHourSet#=12)?0:#ValueHourSet#)+(#ValueMinSet#/60)) part of the IfCondition makes a same kind of conversion of the ValueAMPMSet, ValueHourSet and ValueMinSet variables. These two values are compared by the IfCondition option. The #AlarmPath1# is executed when the first value is greater then the second one.
I'm not sure how are you disabling the alarm, because you've posted just the measures. Also don't know how and when the value of the state variable is changing.
I'm trying to disable it using a button to set the variable of #state# to 1. Here's the button I'm using.
the [ButtButton4] meter don't has a ButtonImage option, which is needed to can set the image of the button. If you don't add this option, the button won't be visible, even if you show the meter, using a !ShowMeter bang.
at the very first moment, each meter is hidden. You won't see nothing out of your skin.
If I'm wrong about any of these comments, please pack your config and upload it. To be honest, so far I can't clearly see what and how you would like to do.
The button is meant to be as an invisible overlay of the two combined images. Visibility isn't an issue. Functionality is. The button hides and images all hide and show correctly but I'm having issues turning off a measure so it doesn't execute the alarm. That's the issue. I tried setting a variable of the measure so it would activate or deactivate the measure. That hasn't worked. If you have any suggestions on how to do this with a meter, that's what I'm looking for.
I'm currently using the button measure the set the variable of #state# which is supposed to disable the measure that activates the executable for the alarm. The set variable bang doesn't seem to be working.
As I said above, I'd need the whole config. It has some button meters (which are using some images, like outlineL.png) and it'd be much simpler if I'd have the config, without having to rebuild everything. So, please pack and post the config. Otherwise it's very hard to help.