스케줄러 select height 오류 보정 중
This commit is contained in:
parent
0d388b8c42
commit
703a279ffa
|
|
@ -89,7 +89,7 @@
|
|||
}
|
||||
|
||||
.select-style {
|
||||
@apply block w-full px-2 py-1.5 border border-default-slate/50 rounded-xs text-base-background
|
||||
@apply block w-full px-2 py-1.5 border border-default-slate/50 rounded-xs text-base-background appearance-none
|
||||
}
|
||||
|
||||
.select-style option {
|
||||
|
|
|
|||
|
|
@ -18,11 +18,11 @@
|
|||
<div class="text-xl flex items-center space-x-1 w-full h-full">
|
||||
<%= select_tag "schedule[#{s.id}][hour]",
|
||||
options_for_select((0..23).map { |h| [h.to_s.rjust(2, '0'), h] }, s.hour),
|
||||
class: "select-style text-white min-w-[60px] h-full" %>
|
||||
class: "select-style text-white min-w-[60px]" %>
|
||||
<div>:</div>
|
||||
<%= number_field_tag "schedule[#{s.id}][minute]",
|
||||
s.minute, min: 0, max: 59, step: 1, inputmode: "decimal",
|
||||
class: "input-style min-w-[60px] h-full" %>
|
||||
class: "input-style min-w-[60px]" %>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
|
|
|||
18
modbus.rb
18
modbus.rb
|
|
@ -22,13 +22,13 @@ begin
|
|||
end
|
||||
end
|
||||
rescue
|
||||
# error_message = "[#{Time.now}] #{mode} 실행 실패 (station_id: #{controller_id}, value: #{value})"
|
||||
# res = Sms.send_one(
|
||||
# {
|
||||
# to: '01062619801',
|
||||
# from: '01062619801',
|
||||
# text: error_message
|
||||
# }
|
||||
# )
|
||||
# puts res
|
||||
error_message = "[#{Time.now}] #{mode} 실행 실패 (station_id: #{controller_id}, value: #{value})"
|
||||
res = Sms.send_one(
|
||||
{
|
||||
to: '01062619801',
|
||||
from: '01062619801',
|
||||
text: error_message
|
||||
}
|
||||
)
|
||||
puts res
|
||||
end
|
||||
|
|
|
|||
Loading…
Reference in New Issue