신규 추가 작업 중

This commit is contained in:
2025-05-29 08:46:12 +09:00
parent a117d417f4
commit 2d174d4fd0
34 changed files with 892 additions and 175 deletions

View File

@@ -1,2 +0,0 @@
class DeviceController < ApplicationController
end

View File

@@ -0,0 +1,25 @@
class EnvironmentController < ApplicationController
def index
@controllers = Controller.all
end
def view_temp
@controller = Controller.find(params[:id])
@schedule = Schedule.where(controller_id: params[:id]).order(:hour, :minute)
end
def view_humidity
@controller = Controller.find(params[:id])
@schedule = Schedule.where(controller_id: params[:id]).order(:hour, :minute)
end
def view_co2
@controller = Controller.find(params[:id])
@schedule = Schedule.where(controller_id: params[:id]).order(:hour, :minute)
end
def view_area
@controller = Controller.find(params[:id])
@schedule = Schedule.where(controller_id: params[:id]).order(:hour, :minute)
end
end

View File

@@ -0,0 +1,2 @@
class NutrientController < ApplicationController
end

View File

@@ -0,0 +1,2 @@
class RackController < ApplicationController
end

View File

@@ -1,2 +0,0 @@
class WebController < ApplicationController
end