-
Notifications
You must be signed in to change notification settings - Fork 41
Description
First of all forget my lack of knowledge, i do not intend to lose any of your time with questions that may sound "silly" but, as said, my lack of knowladge does not allow me to do better.
I am using PIconnect to get tags, or signals, which my company uses to start ML models, get graphs, and so on; with the help of Python.
I am increadibly greatful of all the work i have been able to do so far, but recently, when looking for certain tags over the last month (end of May and beggining of june) i start to get this error:
I am using the code i paste below and when i change the "end date" to, for example, 20/03/2025 code works.
import PIconnect as PI
import pandas as pd
import numpy as np
import datetime as dt
import time
import matplotlib.pyplot as plt
import os
import seaborn as sns
PI.PIConfig.DEFAULT_TIMEZONE = 'Etc/GMT-2'
tags = ["BCNEXTEXT_Extractora.BCNEXTEXT_RCRC_06.Condition.Condition",
"BCNEXTEXT_VTVT_18.I_Valor",
"BCNEXTDCV_TTTT_42A.I_Valor",
"BCNEXTDCV_diferencia_TT_torre.I_Valor",
"BCNEXTDCV_TTTT_38.I_Valor",]
start_time = "01/01/2025 07:00:00"
end_time = "31/05/2025 07:00:00"
time_interval = "5m"
data25 = pd.DataFrame()
with PI.PIServer(server='BCN-NT-PISRV01') as server:
for i in range(len(tags)):
points = server.search(tags)[i]
data25[i] = points.interpolated_values(start_time, end_time, time_interval)
data25.columns = tags
data25.index = data25.index.tz_localize(None)
data25.rename(columns={"BCNEXTDCV_TTTT_42A.I_Valor": 'tt42A',
"BCNEXTEXT_VTVT_18.I_Valor": 'vt18',}
, inplace = True)
data25
