Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/agungferdi/Smart_Farming
/ functions
Functions
234 in github.com/agungferdi/Smart_Farming
⨍
Functions
234
◇
Types & classes
28
↓ 34 callers
Function
cn
(...inputs: ClassValue[])
iot-dashboard/src/lib/utils.ts:4
↓ 25 callers
Function
sendError
( c: Context, error: unknown, status: ContentfulStatusCode = 400, )
iot-backend/src/utils/errorHandler.ts:6
↓ 21 callers
Function
sendResponse
( c: Context, data: any, message: string = 'Success', status: ContentfulStatusCode = 200, )
iot-backend/src/utils/responseHandler.ts:45
↓ 11 callers
Method
begin
iot-devices/src/sensors/RainSensor.cpp:7
↓ 10 callers
Method
readData
iot-devices/src/sensors/RainSensor.cpp:12
↓ 7 callers
Method
getTemperature
iot-devices/src/sensors/DHT11Sensor.cpp:31
↓ 6 callers
Method
printDebugInfo
iot-devices/src/sensors/RainSensor.cpp:27
↓ 5 callers
Method
getPercentage
iot-devices/src/sensors/SoilMoistureSensor.cpp:19
↓ 5 callers
Function
toBigIntId
(val: unknown)
iot-backend/src/utils/mqtt.utils.ts:49
↓ 4 callers
Function
gracefulShutdown
(signal: string)
iot-backend/src/index.ts:108
↓ 4 callers
Function
http
( path: string, init?: RequestInit, isMqtt: boolean = false, )
iot-dashboard/src/lib/api.ts:62
↓ 4 callers
Method
isRainDetected
iot-devices/src/sensors/RainSensor.cpp:23
↓ 4 callers
Function
toNum
(v: number | string)
iot-dashboard/src/hooks/useSensorData.ts:18
↓ 3 callers
Function
applyThemeClass
(theme: Theme)
iot-dashboard/src/components/theme-provider.tsx:21
↓ 3 callers
Function
cleanup
()
iot-backend/src/services/mqtt.service.ts:96
↓ 3 callers
Method
createSensorData
(data: CreateSensorDataInput)
iot-backend/src/services/sensorData.service.ts:16
↓ 3 callers
Method
getHumidity
iot-devices/src/sensors/DHT11Sensor.cpp:35
↓ 3 callers
Method
getLatest
()
iot-backend/src/repositories/relayLog.repository.ts:23
↓ 3 callers
Method
getLatestSensorData
()
iot-backend/src/services/sensorData.service.ts:34
↓ 3 callers
Method
getMany
(query: RelayLogQuery)
iot-backend/src/repositories/relayLog.repository.ts:35
↓ 3 callers
Function
getPayloadConfigFromPayload
( config: ChartConfig, payload: unknown, key: string )
iot-dashboard/src/components/ui/chart.tsx:308
↓ 3 callers
Method
getStatus
iot-devices/src/sensors/WaterLevelSensor.cpp:19
↓ 3 callers
Method
logRelayStateChange
( relayStatus: boolean, triggerReason: string, sensorReadingId: bigint, )
iot-backend/src/services/relayLog.service.ts:175
↓ 2 callers
Function
assertEnv
()
iot-backend/src/services/mqtt.service.ts:15
↓ 2 callers
Method
clearDisplay
iot-devices/src/display/OLEDDisplay.cpp:126
↓ 2 callers
Function
convertToPercentage
iot-devices/src/utils/SensorCalibration.cpp:8
↓ 2 callers
Method
create
(data: CreateRelayLogInput)
iot-backend/src/repositories/relayLog.repository.ts:9
↓ 2 callers
Function
createClient
()
iot-backend/src/services/mqtt.service.ts:47
↓ 2 callers
Method
createRelayLog
(data: CreateRelayLogInput)
iot-backend/src/services/relayLog.service.ts:16
↓ 2 callers
Method
deleteOldRecords
(daysToKeep: number = 30)
iot-backend/src/repositories/relayLog.repository.ts:183
↓ 2 callers
Function
determineStatus
iot-devices/src/utils/SensorCalibration.cpp:30
↓ 2 callers
Function
disconnectDatabase
()
iot-backend/src/database/connection.ts:24
↓ 2 callers
Function
disconnectMqtt
()
iot-backend/src/services/mqtt.service.ts:186
↓ 2 callers
Function
extractRelayStatus
(obj: any)
iot-backend/src/utils/mqtt.utils.ts:36
↓ 2 callers
Method
getById
(id: bigint)
iot-backend/src/repositories/relayLog.repository.ts:73
↓ 2 callers
Method
getCurrentStatus
()
iot-backend/src/repositories/relayLog.repository.ts:177
↓ 2 callers
Function
getMqttClient
()
iot-backend/src/services/mqtt.service.ts:78
↓ 2 callers
Method
getRawValue
iot-devices/src/sensors/WaterLevelSensor.cpp:15
↓ 2 callers
Method
getStats
(hours: number = 24)
iot-backend/src/repositories/relayLog.repository.ts:83
↓ 2 callers
Method
healthCheck
(c: Context)
iot-backend/src/controllers/relayLog.controller.ts:219
↓ 2 callers
Method
isRelayActive
iot-devices/src/actuators/ModemRelay.cpp:22
↓ 2 callers
Function
matchTopic
( filter: string, topic: string, )
iot-backend/src/utils/mqtt.utils.ts:3
↓ 2 callers
Method
setRelayState
iot-devices/src/actuators/RelayController.cpp:34
↓ 2 callers
Function
shutdown
(signal: string)
iot-backend/src/mqtt-worker.ts:23
↓ 2 callers
Function
startMqttListeners
()
iot-backend/src/services/mqtt.listener.ts:172
↓ 2 callers
Function
tryParseJSON
(bufOrStr: Buffer | string)
iot-backend/src/utils/mqtt.utils.ts:24
↓ 2 callers
Function
useChart
()
iot-dashboard/src/components/ui/chart.tsx:27
↓ 2 callers
Function
waitForMqttReady
(timeoutMs = 10_000)
iot-backend/src/services/mqtt.service.ts:82
↓ 1 callers
Method
cleanupOldData
(daysToKeep: number = 30)
iot-backend/src/services/sensorData.service.ts:216
↓ 1 callers
Method
cleanupOldLogs
(daysToKeep: number = 30)
iot-backend/src/services/relayLog.service.ts:289
↓ 1 callers
Method
cleanupRelayLogs
(c: Context)
iot-backend/src/controllers/relayLog.controller.ts:196
↓ 1 callers
Method
cleanupSensorData
(c: Context)
iot-backend/src/controllers/sensorData.controller.ts:128
↓ 1 callers
Method
connectMQTT
iot-devices/src/network/MQTTClient.cpp:159
↓ 1 callers
Method
connectWiFi
iot-devices/src/network/MQTTClient.cpp:107
↓ 1 callers
Method
control
iot-devices/src/actuators/RelayController.cpp:20
↓ 1 callers
Function
controlPump
iot-devices/src/main.cpp:150
↓ 1 callers
Function
fetchRelayLogs
(limit = 10, offset = 0)
iot-dashboard/src/lib/api.ts:124
↓ 1 callers
Function
fetchSensorDataPage
(limit = 10, offset = 0)
iot-dashboard/src/lib/api.ts:86
↓ 1 callers
Method
getCurrentRelayStatus
()
iot-backend/src/services/relayLog.service.ts:153
↓ 1 callers
Method
getLatestRelayLog
(c: Context)
iot-backend/src/controllers/relayLog.controller.ts:36
↓ 1 callers
Method
getLatestRelayLog
()
iot-backend/src/services/relayLog.service.ts:34
↓ 1 callers
Method
getLatestSensorData
(c: Context)
iot-backend/src/controllers/sensorData.controller.ts:51
↓ 1 callers
Method
getOperationDuration
(hours: number = 24)
iot-backend/src/services/relayLog.service.ts:217
↓ 1 callers
Method
getRelayLogById
(id: bigint)
iot-backend/src/services/relayLog.service.ts:94
↓ 1 callers
Method
getRelayLogs
( query: RelayLogQuery, )
iot-backend/src/services/relayLog.service.ts:61
↓ 1 callers
Method
getRelayStats
(c: Context)
iot-backend/src/controllers/relayLog.controller.ts:87
↓ 1 callers
Method
getRelayStats
(hours: number = 24)
iot-backend/src/services/relayLog.service.ts:121
↓ 1 callers
Method
getSensorData
( query: SensorDataQuery, )
iot-backend/src/services/sensorData.service.ts:61
↓ 1 callers
Method
getSensorDataById
(id: bigint)
iot-backend/src/services/sensorData.service.ts:94
↓ 1 callers
Method
getSensorDataStats
(hours: number = 24)
iot-backend/src/services/sensorData.service.ts:121
↓ 1 callers
Function
getWaterLevelConfig
(level: string)
iot-dashboard/src/components/WaterLevelStatusCard.tsx:32
↓ 1 callers
Method
handleMessage
iot-devices/src/network/MQTTClient.cpp:219
↓ 1 callers
Function
handleRelayMessage
(topic: string, payload: Buffer)
iot-backend/src/services/mqtt.listener.ts:78
↓ 1 callers
Function
handleSensorMessage
( topic: string, payload: Buffer, )
iot-backend/src/services/mqtt.listener.ts:41
↓ 1 callers
Method
hasStateChanged
iot-devices/src/actuators/RelayController.cpp:43
↓ 1 callers
Function
initializeComponents
iot-devices/src/main.cpp:95
↓ 1 callers
Method
isConnected
iot-devices/src/network/MQTTClient.cpp:346
↓ 1 callers
Function
isRelayTopic
(topic: string)
iot-backend/src/services/mqtt.listener.ts:37
↓ 1 callers
Function
isSensorTopic
(topic: string)
iot-backend/src/services/mqtt.listener.ts:33
↓ 1 callers
Method
loop
iot-devices/src/network/MQTTClient.cpp:204
↓ 1 callers
Function
main
()
iot-backend/src/mqtt-worker.ts:6
↓ 1 callers
Function
mqttStatus
()
iot-backend/src/services/mqtt.service.ts:201
↓ 1 callers
Function
publishMessage
( topic: string, payload: PublishPayload, qos: 0 | 1 | 2 = 0, retain = false, )
iot-backend/src/services/mqtt.service.ts:119
↓ 1 callers
Function
publishRelayCommand
(payload: { relayStatus: boolean; sensorReadingId?: string; qos?: 0 | 1 | 2; retain?: boolean; topic
iot-dashboard/src/lib/api.ts:175
↓ 1 callers
Method
publishRelayLog
iot-devices/src/network/MQTTClient.cpp:300
↓ 1 callers
Method
publishSensorData
iot-devices/src/network/MQTTClient.cpp:273
↓ 1 callers
Function
readAllSensors
iot-devices/src/main.cpp:118
↓ 1 callers
Function
sendDataToMQTT
iot-devices/src/main.cpp:200
↓ 1 callers
Function
serializeBigInt
(value: any)
iot-backend/src/utils/responseHandler.ts:9
↓ 1 callers
Function
setTheme
(t: Theme)
iot-dashboard/src/components/theme-provider.tsx:68
↓ 1 callers
Method
shouldActivate
iot-devices/src/actuators/RelayController.cpp:16
↓ 1 callers
Function
testSensors
iot-devices/src/main.cpp:217
↓ 1 callers
Function
updateDisplay
iot-devices/src/main.cpp:193
↓ 1 callers
Method
updateLastState
iot-devices/src/actuators/RelayController.cpp:47
↓ 1 callers
Method
updateSensorData
iot-devices/src/display/OLEDDisplay.cpp:97
↓ 1 callers
Function
useHealth
()
iot-dashboard/src/hooks/useHealth.ts:10
↓ 1 callers
Function
useRelayLogs
(limit: number = 10)
iot-dashboard/src/hooks/useRelayLogs.ts:29
↓ 1 callers
Function
useSensorData
(limit: number = 10)
iot-dashboard/src/hooks/useSensorData.ts:35
↓ 1 callers
Function
useTheme
()
iot-dashboard/src/components/theme-provider.tsx:96
↓ 1 callers
Method
validateSensorData
(data: CreateSensorDataInput)
iot-backend/src/services/sensorData.service.ts:162
next →
1–100 of 234, ranked by callers