Quantcast
Channel: ThingSpeak IoT Community - All Forums
Viewing all articles
Browse latest Browse all 1833

piajola on No data ---> React ---> Tweet ---> Not working (?)

$
0
0

Hi Helge,

All this is a work in progress (I hope it continue to work)
I am "tracking"  my channel data recording to "see" the missing data points, as you say. To know where the trouble is. Sometimes ISP fail, sometimes WiFi "issue", sometimes electrical contacts ...

I use MATLAB Analysis, with TimeControl each 5 minutes. (More flexible than React)

-- t1 = datetime('now','TimeZone','America/Lima')   % use your TimeZone
   What time is it "right now" (local) when running this

-- t = t1 - minutes(5) - seconds(second(t1))
   Hour 5 min less 00 sec i.e. before "right now"

-- [Data, Taim] = thingSpeakRead(readChannelID, 'numminutes', 5, 'fields', [1,2])
   As I check every 5 minutes then I read the last 5 minutes

-- lin=length(Taim)
   How many lines in Taim array (if I send each minute must be 5 lines if all O.K.)

-- sumi=sum(Taim>t)
   Count how many lines in Taim array are "newer" than t i.e. data arrived

So sumi tells me how many data points recognize ThingSpeak. Now tell me, in my case via SMS to my phone (regular 2G, no 3G needed)

-- if sumi<=3
--     response = webwrite(mandalURL, 'devid',DeviceID, VarA1,ValA1, VarB1,ValB1, VarC1,ValC1)
-- end
   ThingSpeak's webwrite sends to mandalURL the values you want/need

mandalURL is http://www.pushingbox.com that mentions you can use the next:
Email
Just a mere email service for being notified by email
Twitter
Tweet notification
Karotz
Voice notification (tts), make your Karotz speaking on an event
Prowl
Push notification service for iPhone
Pushalot
Push notification service for Windows 8 and Windows Phone
Toasty
Push notification service for Windows Phone
Notify My Android
Push notification service for Android
Newtifry
Push notification service for Android
Pushbullet
Push notification service for iOS, Android, Windows, Firefox and Chrome
CustomURL
Set your own service !

My cellPhone carrier give us free email that echoes the subject via SMS, all for free 🙂

So my way is
No data ---> MATLAB Analysis-TimeControl ---> pushingbox(via email) ---> SMS ---> HEY, Not working!!

I hope this hyper crash explanation is understandable 😉

Cheers

P.S. Also I hope my english is not "toooo bad"


Viewing all articles
Browse latest Browse all 1833

Trending Articles