Help beginner | General | Forum

Avatar

Please consider registering
Guest

sp_LogInOut Log In sp_Registration Register

Register | Lost password?
Advanced Search

— Forum Scope —






— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

sp_Feed sp_TopicIcon
Help beginner
No permission to create posts
December 10, 2018
3:41 am
Avatar
Ilarioq
New Member
Members
Forum Posts: 2
Member Since:
December 10, 2018
sp_UserOfflineSmall Offline

Hello everyone, I'm new in the forum, I'm a beginner. I have a problem that I can not solve, it often happens that the python scripts stop due to lack of internet connection. Is it possible to restart the scripts?
thanks a lot

December 11, 2018
11:33 am
Avatar
cstapels
Moderator
Members


Moderators
Forum Posts: 861
Member Since:
March 7, 2017
sp_UserOfflineSmall Offline

Is it possible for you to add a connectivity check to the loop?
These are written in Arduino C, but many of the examples here check the connectivity in the main loop.
If it is disconnected, it reconnects, you could add something similar in your python code.
https://www.mathworks.com/help/thingspeak/esp8266.html

Then you wouldn't have to restart the script.

December 17, 2018
4:22 am
Avatar
Ilarioq
New Member
Members
Forum Posts: 2
Member Since:
December 10, 2018
sp_UserOfflineSmall Offline

I solved with a precise configuration of the script "restarter.py" and its execution every hour through a cron from root.

Forum Timezone: America/New_York

Most Users Ever Online: 166

Currently Online:
17 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

rw950431: 272

Vinod: 240

piajola: 95

turgo: 70

vespapierre: 63

Adarsh_Murthy: 62

Member Stats:

Guest Posters: 1

Members: 8665

Moderators: 1

Admins: 2

Forum Stats:

Groups: 3

Forums: 14

Topics: 1600

Posts: 5760

Newest Members:

briskpanda, Dejw0089, Yassine Ben Salah, anis, 43994554AKS, suda

Moderators: cstapels: 460

Administrators: Hans: 405, lee: 457