Type/to search
0
Follow
0
Followers
روبوٹ خودکار آغاز اور روکنے کا مسئلہ
Help
Created 2020-10-30 15:12:13  
 4
 1493

میں گھریلو فیوچر کو کنٹرول کرنے کے لئے استعمال کیا جاتا ہے، اور یہ ایک دن کے لئے کام کر سکتا ہے، لیکن کبھی کبھار مندرجہ ذیل مسائل ہیں، کیوں؟

Traceback (most recent call last): File "<string>", line 982, in init_ctx File "<string>", line 119, in <module> File "<string>", line 65, in main File "<string>", line 27, in api URLError: <urlopen error [Errno 104] Connection reset by peer>

جزوی کوڈ اس طرح ہے: if currentime (()>0.2100 and currentime (() <0.2359 and currentwday (()!=6 and currentwday (()!=0 and status==False:# غیر ہفتے کے آخر میں روزانہ 8:55 سے 3:01 تک روبوٹ کو چالو کریں
status=True
LogStatus("0.2100--0.2359,Restart")
robotftrade=api('RestartRobot',RobotFTrade)
Log (("robotftrade پر عملدرآمد شروع،api==",robotftrade)
swtradetrade=api('RestartRobot',swTrade)
Log (("swtradetrade پر عملدرآمد شروع،api==",swtradetrade)
Sleep(10000)
if currentime ((() <0.0855 or currentwday ((() == 6 or currentwday (()) == 0 and status== True: # 8 بج کر 55 منٹ سے کم یا ہفتہ یا اتوار کو روبوٹ کو روکنا
status=False
LogStatus("0.0000--0.900 or weekend,StopRobot")
robotftrade=api('StopRobot',RobotFTrade)
Log (("robotftrade عملدرآمد روک دیا گیا,api==",robotftrade)
swtradetrade=api('StopRobot',swTrade)
Log (("swtradetrade پر عملدرآمد روک دیا گیا,api==",swtradetrade)
Sleep(10000)

Related Recommendations
Comment
All comments (4)

    但是出现错误后机器人就不能自动启停了啊,只能人工介入。这样不就失去了机器人管理员的意义了?

    6 years ago

    网络连接错误,策略不中断没影响

    6 years ago

    connection reset by peer 我也是出现这个问题 出现了策略就中断了呀 只能人工再去点击重启 这个要如何解决? 就是中断了能否自动再启动机器人???

    5 years ago

    你需要做好容错就行,具体看一下社区置顶的初级教程

    5 years ago
  • 1
Forums
PINE Language
Get the app
iPhone Download
© 2015 - ∞ INVENTOR PTE LTD (SG)