lmstack 3 years ago
parent
commit
2b86d461cf

+ 0 - 3
LIB/FRONTEND/LeakCurrent/deploy_6060.py

@@ -22,9 +22,6 @@ if __name__ == "__main__":
     end_time=datetime.datetime.strftime(now_time,"%Y-%m-%d 09:00:00")
     start_time=datetime.datetime.strftime(pre_time,"%Y-%m-%d 09:00:00")
     
-    end_time = "2021-08-13 09:00:00"
-    start_time = "2018-06-01 00:00:00"
-    
     # 更新sn列表
     host='rm-bp10j10qy42bzy0q7.mysql.rds.aliyuncs.com'
     port=3306

+ 2 - 4
LIB/FRONTEND/SignalMonitor/deploy.py

@@ -17,10 +17,8 @@ if __name__ == "__main__":
     # 时间设置
     now_time = datetime.datetime.now()
     pre_time = now_time + dateutil.relativedelta.relativedelta(days=-1)
-    end_time=datetime.datetime.strftime(now_time,"%Y-%m-%d 00:00:00")
-    start_time=datetime.datetime.strftime(pre_time,"%Y-%m-%d 00:00:00")
-    end_time = "2021-08-12 12:00:00"
-    start_time = "2021-08-12 00:00:00"
+    end_time=datetime.datetime.strftime(now_time,"%Y-%m-%d 12:00:00")
+    start_time=datetime.datetime.strftime(pre_time,"%Y-%m-%d 12:00:00")
     
     # 更新sn列表
     host='rm-bp10j10qy42bzy0q7.mysql.rds.aliyuncs.com'

+ 2 - 1
LIB/FRONTEND/deltsoc/deploy_6060.py

@@ -21,7 +21,8 @@ if __name__ == "__main__":
     pre_time = now_time + dateutil.relativedelta.relativedelta(weeks=-2)
     end_time=datetime.datetime.strftime(now_time,"%Y-%m-%d 09:00:00")
     start_time=datetime.datetime.strftime(pre_time,"%Y-%m-%d 09:00:00")
-    
+    # end_time="2021-08-01 09:00:00"
+    # start_time="2019-01-01 00:00:00"
     # 更新sn列表
     host='rm-bp10j10qy42bzy0q7.mysql.rds.aliyuncs.com'
     port=3306

+ 7 - 0
LIB/FRONTEND/soh/deploy_4840.py

@@ -22,6 +22,9 @@ if __name__ == "__main__":
     end_time=datetime.datetime.strftime(now_time,"%Y-%m-%d 01:00:00")
     start_time=datetime.datetime.strftime(pre_time,"%Y-%m-%d 01:00:00")
     
+    # end_time="2021-08-02 01:00:00"
+    # start_time="2019-01-01 00:00:00"
+    
 
     # 更新sn列表
     host='rm-bp10j10qy42bzy0q7.mysql.rds.aliyuncs.com'
@@ -72,6 +75,10 @@ if __name__ == "__main__":
             if df_sn.loc[i, 'imei'][6:9] != '440':
                 continue
             sn = df_sn.loc[i, 'sn']
+            
+            # if sn in SNnums_4840.tolist():
+            #     print(sn)
+            #     continue
             logger.info("pid-{} 4840 SN: {} START!".format(os.getpid(), sn))
             res = NCMSoh.cal_soh(sn, end_time, start_time)
             if not res.empty:

+ 5 - 0
LIB/FRONTEND/soh/deploy_6040.py

@@ -21,6 +21,8 @@ if __name__ == "__main__":
     pre_time = now_time + dateutil.relativedelta.relativedelta(months=-1)#上个月时间
     end_time=datetime.datetime.strftime(now_time,"%Y-%m-%d 01:00:00")
     start_time=datetime.datetime.strftime(pre_time,"%Y-%m-%d 01:00:00")
+    # end_time="2021-08-03 01:00:00"
+    # start_time="2019-01-01 00:00:00"
     
     # 更新sn列表
     host='rm-bp10j10qy42bzy0q7.mysql.rds.aliyuncs.com'
@@ -75,6 +77,9 @@ if __name__ == "__main__":
             if df_sn.loc[i, 'imei'][6:9] != '640':
                 continue
             sn = df_sn.loc[i, 'sn']
+            # if sn in SNnums_6040.tolist():
+            #     print(sn)
+            #     continue
             logger.info("pid-{} 6040 SN: {} START!".format(os.getpid(), sn))
             res = NCMSoh.cal_soh(sn, end_time, start_time)
             if not res.empty:

+ 7 - 3
LIB/FRONTEND/soh/deploy_6060.py

@@ -23,6 +23,8 @@ if __name__ == "__main__":
     pre_time = now_time + dateutil.relativedelta.relativedelta(months=-1)#上个月时间
     end_time=datetime.datetime.strftime(now_time,"%Y-%m-%d 01:00:00")
     start_time=datetime.datetime.strftime(pre_time,"%Y-%m-%d 01:00:00")
+    # end_time="2021-08-01 01:00:00"
+    # start_time="2019-01-01 00:00:00"
     
     # 更新sn列表
     host='rm-bp10j10qy42bzy0q7.mysql.rds.aliyuncs.com'
@@ -65,10 +67,9 @@ if __name__ == "__main__":
     logger.info("pid is {}".format(os.getpid()))
     
 
-    # SNdata_6040 = pd.read_excel('骑享资产梳理-20210621.xlsx', sheet_name='6040骑享')
+
     # SNdata_6060 = pd.read_excel('骑享资产梳理-20210621.xlsx', sheet_name='6060')
-    # SNnums_6060=SNdata_6060['SN号']
-    # SNnums_6040=SNdata_6040['SN号']
+    # SNdata_6060=SNdata_6060['SN号']
     # now_time=datetime.datetime.now().strftime('%Y-%m-%d %H:%M:%S')
     # now_time = "2021-08-01 00:00:00" # 定时任务开启时,需要删除改行!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
     # now_time=datetime.datetime.strptime(now_time,'%Y-%m-%d %H:%M:%S')
@@ -81,6 +82,9 @@ if __name__ == "__main__":
             if df_sn.loc[i, 'imei'][6:9] != '660':
                 continue
             sn = df_sn.loc[i, 'sn']
+            # if sn in SNdata_6060.tolist():
+            #     print(sn)
+            #     continue
             logger.info("pid-{} 6060 SN: {} START!".format(os.getpid(), sn))
             res = LFPSoh.cal_soh(sn, end_time, start_time)
             if not res.empty: