RED line in my list of working MATLAB Analysis code | ThingSpeak Apps | Forum

Avatar

Please consider registering
Guest

Search

— Forum Scope —






— Match —





— Forum Options —





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

Register Lost password?
sp_Feed sp_TopicIcon
RED line in my list of working MATLAB Analysis code
Avatar
piajola

Gold
Forum Posts: 75
sp_UserOfflineSmall Offline
1
August 31, 2016 - 8:58 pm
sp_Permalink sp_Print sp_EditHistory

Hi TS Staff, (perhaps Adarsh)

 

I have a MATLAB Analysis

with this TimeControl

Name          Recurrence         Last Ran                Run At
directo iclaro Every 30 minutes 2016-08-31 7:00 pm 2016-08-31 7:30 pm

Also I have checked this Notify me via email if this MATLAB Analysis fails when triggered by TimeControl or React.

I see in RED in my list of MATLAB Analysis my code failed with this:

Output
Error using readContentFromWebService
The server returned the message: "Bad Gateway" for URL, 'http://api.pushingbox.com/pushingbox' (with HTTP response code 502).

Error in webwrite
[varargout{1:nargout}] = readContentFromWebService(connection, options);

In http://www.pushingbox.com History I have

31 August 2016 at 19:00:??     MISSING I have not this line, the TS failure
31 August 2016 at 18:00:14    T H x icla      my hourly report

31 August 2016 at 17:47:06    no juruncia    due to brownout

31 August 2016 at 17:42:06    no juruncia    due to brownout
31 August 2016 at 17:37:05    no juruncia    due to brownout
31 August 2016 at 17:32:05    no juruncia    due to brownout
31 August 2016 at 17:27:06    no juruncia    due to brownout
31 August 2016 at 17:22:06    no juruncia    due to brownout
31 August 2016 at 17:17:04    no juruncia    due to brownout
31 August 2016 at 17:12:05    no juruncia    due to brownout

I have had ~ 1hr brownout, when checking in pushingbox what ThingSpeak sent via webwrites I noted the email "Notify me via email..." was not sent
Can you check this please?

Thank you Smile

P.S. I   my local time is now 19:43 and the
Run At
2016-08-31 7:30 pm
ran OK

P.S. II  my local time is now 20:13 and the
Run At
2016-08-31 8:00 pm
is RED again without an email to me...Confused

P.S. III   my local time is now 20:35 and the
Run At
2016-08-31 8:30 pm
ran OK

Avatar
Adarsh_Murthy

Forum Posts: 59
sp_UserOfflineSmall Offline
2
September 1, 2016 - 3:00 pm
sp_Permalink sp_Print

Hi piajola,

As you noticed, the "Notify me via email..." feature of a TimeControl or React is not functioning. We will be re-enabling this feature soon.  

Also, regarding the 502 Http error code from pushingbox.com, I wanted to note that this is a pushingbox server failure. 

In the meanwhile, if you want to prevent errors due to webread failures, an option to consider is to use the 'try', 'catch' construct:

http://www.mathworks.com/help/matlab/ref/try.html

 

Thanks

Avatar
piajola

Gold
Forum Posts: 75
sp_UserOfflineSmall Offline
3
September 2, 2016 - 3:42 pm
sp_Permalink sp_Print

Hi Adarsh,

First some first of all,

First first of all, thank you for answering me
Second first of all, thank you for clearing my doubts and the link
Third first of all, my apologies for the delay. I checked the forum yesterday morning but not after Smile

I will 'try' to 'catch' the 502 from pushingbox ...
If I 'catch' the error I will 'try' to send myself an email telling me the 502 error

Pseudo code

                     try

                              webwrite(hourly report)

                      catch

                               webwrite( email myself)

can it work?

More questions, how we know "the parts" of Matlab can we use (read last blog)

Again Thank you 

Forum Timezone: America/New_York

Most Users Ever Online: 114

Currently Online:
28 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

rw950431: 252

Vinod: 164

cstapels: 96

piajola: 75

vespapierre: 63

Adarsh_Murthy: 59

Newest Members:

candacele1

WilliamBer

roxieob18

Metawatch

ozayagw

ubabeutiti

Forum Stats:

Groups: 4

Forums: 17

Topics: 1313

Posts: 4565

 

Member Stats:

Guest Posters: 1

Members: 5703

Moderators: 0

Admins: 2

Administrators: Hans, lee