Artem-Darius Weber 1 year ago
parent fe8b297048
commit 67dd05a1c0

@ -6,15 +6,9 @@
<component name="ChangeListManager">
<list default="true" id="fa9b3ab0-bfd5-4e07-8e87-da3d901a4d2e" name="Changes" comment="">
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/README.md" beforeDir="false" afterPath="$PROJECT_DIR$/README.md" afterDir="false" />
<change beforePath="$PROJECT_DIR$/weather_platform/apps/agw/src/measures/measures.controller.ts" beforeDir="false" afterPath="$PROJECT_DIR$/weather_platform/apps/agw/src/measures/measures.controller.ts" afterDir="false" />
<change beforePath="$PROJECT_DIR$/weather_platform/apps/py-tg-bot-weather-agent/main.py" beforeDir="false" afterPath="$PROJECT_DIR$/weather_platform/apps/py-tg-bot-weather-agent/main.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/weather_platform/package-lock.json" beforeDir="false" afterPath="$PROJECT_DIR$/weather_platform/package-lock.json" afterDir="false" />
<change beforePath="$PROJECT_DIR$/weather_platform/package.json" beforeDir="false" afterPath="$PROJECT_DIR$/weather_platform/package.json" afterDir="false" />
<change beforePath="$PROJECT_DIR$/weather_platform/pages/src/lib/dashboard/dashboard.tsx" beforeDir="false" afterPath="$PROJECT_DIR$/weather_platform/pages/src/lib/dashboard/dashboard.tsx" afterDir="false" />
<change beforePath="$PROJECT_DIR$/weather_platform/ui-modules/src/index.ts" beforeDir="false" afterPath="$PROJECT_DIR$/weather_platform/ui-modules/src/index.ts" afterDir="false" />
<change beforePath="$PROJECT_DIR$/weather_platform/ui-modules/src/lib/sensors-humidity-graph/sensors-humidity-graph.tsx" beforeDir="false" afterPath="$PROJECT_DIR$/weather_platform/ui-modules/src/lib/sensors-humidity-graph/sensors-humidity-graph.tsx" afterDir="false" />
<change beforePath="$PROJECT_DIR$/weather_platform/ui-modules/src/lib/sensors-temperature-graph/sensors-temperature-graph.tsx" beforeDir="false" afterPath="$PROJECT_DIR$/weather_platform/ui-modules/src/lib/sensors-temperature-graph/sensors-temperature-graph.tsx" afterDir="false" />
<change beforePath="$PROJECT_DIR$/weather_platform/ui/src/index.ts" beforeDir="false" afterPath="$PROJECT_DIR$/weather_platform/ui/src/index.ts" afterDir="false" />
</list>
<option name="SHOW_DIALOG" value="false" />
<option name="HIGHLIGHT_CONFLICTS" value="true" />

@ -20,3 +20,7 @@
![Screenshot 2023-10-08 at 01.45.59.png](assets%2FScreenshot%202023-10-08%20at%2001.45.59.png)
``
# Presentation
[Untitled.zip](assets%2FUntitled.zip)

Binary file not shown.

@ -97,6 +97,10 @@ export class MeasuresController {
msg_value = calculateTemperature(Number(msg_value)).toString();
}
if (math_time == "0") {
math_time = Date.now().toString();
}
const measure_create_data: MeasureCreateDTOLocalClass = {
sendedInDate: sendedInDate,
sensor_uuid: sensor_uuid,
@ -139,7 +143,12 @@ export class MeasuresController {
@Get('get-for-ai')
async getAgregatorsForAI() {
const res = await this.measuresService.get({});
const res = await this.measuresService.get({
orderBy: {
time: "desc"
},
take: 10
});
const newArray = res.map(item => ({
sensor_uuid: item.sensor_uuid,
agregator_uuid: item.agregator_uuid,

@ -12,7 +12,7 @@ from langchain.agents import create_json_agent, AgentExecutor
from langchain.agents.agent_toolkits import JsonToolkit
import os
OPENAI_API = "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"
OPENAI_API = "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"
os.environ["LANGCHAIN_TRACING_V2"] = "true"
os.environ["LANGCHAIN_ENDPOINT"] = "https://api.smith.langchain.com"

Loading…
Cancel
Save