मैं घरेलू वायदा के स्वतः स्टार्ट और बंद को नियंत्रित करने के लिए उपयोग किया जाता है, और शायद एक दिन के लिए यह सामान्य रूप से काम कर सकता है, लेकिन कभी-कभी निम्नलिखित समस्याएं होती हैं, क्या कारण है
Traceback (most recent call last): File “”, line 982, in init_ctx File “”, line 119, in File “”, line 65, in main File “”, line 27, in api URLError:
कुछ कोड इस प्रकार हैंः 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) लॉग ((“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) लॉग ((“robotftrade निष्पादन बंद कर दिया, api==”,robotftrade) swtradetrade=api(‘StopRobot’,swTrade) लॉग ((“swtradetrade निष्पादन बंद कर दिया,api==”,swtradetrade) Sleep(10000)