Not working: Cheerlights + TweetControl + Arduino Ethernet | ThingSpeak API | Forum

The ThingSpeak community site has been upgraded to a new site. This site is currently in read-only mode. You can ask questions or post and read discussions on the new site.
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
Not working: Cheerlights + TweetControl + Arduino Ethernet
No permission to create posts
March 22, 2012
8:22 pm
Avatar
Eng_michel

Silver
Members
Forum Posts: 10
Member Since:
March 20, 2012
sp_UserOfflineSmall Offline

Hi everybody. I'm trying to make cheerlights work but I still can't get the trigger on the arduino.

I'm using TweetControl and I think something is wrong with my settings. 

Could u please take a look and tell me what I am doing wrong? 

Here it is:

- TweetControl settings:

Login: (ANONYMOUS) / Hashtag: #crazyeth / ThingHTTP action: ThingSpeak Channel Updater

- ThingHTTP settings:

Nome: ThingSpeak Channel Updater
Key: ******************
URL: http://api.thingspeak.com/update
Login: @arduinoeth
Senha: ********
Método: GET
Content/type:  
Versão do HTTP: 1.1
Servidor:  
Parâmetros:
 
Corpo: key=*******&field1=%%trigger%%&status=%%status%%
Texto de busca:  
Criada em: 20/03/2012 às 19:15

 

-Channel settings:

ID do canal: 2013
Nome: Canal 2013
Chave de Escrita: ****************
Descrição: Arduino!!
Tags: #crazyeth
Registros: 1956
Criada em: 14/03/2012 às 11:19
Latitude:  
Longitude:  
Altitude:  
Campo 1:  
   

 

May I have to use React?

I did also set the "channel" to 2013 and "Field" to 1 on the arduino sketch.

Why do I think that the problem is on settings? Because I got the arduino sketch from cheerlights website and it seems to be working perfectly. 

On the serial response the arduino says: "CheerLight Command Received: (no match)".

Just for u 2 know: I'm using Arduino Uno R3 + Ethernet Shield (Wiznet) and software Arduino 1.0

Thank you guys!!

March 22, 2012
9:59 pm
Avatar
Hans
Natick, MA

Admin
Forum Posts: 411
Member Since:
January 18, 2011
sp_UserOfflineSmall Offline

I have updated the documentation for TweetControl. The step-by-step is the example that I have listed.

The part that is confusing is the filter keyword part of TweetControl. Our TweetControl service listens to the Twitter stream and millions of tweets flow by. We filter out all of the tweets that contain the filter keywords:

  • #thingspeak
  • thingspeak
  • #tweetcontrol
  • tweetcontrol
  • #iobridge
  • iobridge
  • #cheeerlights
  • cheerlights
Then we scan the remaining tweets for trigger keywords that user's have setup. If there is a match, we execute the associated ThingHTTP request.
Let us know if that helps out.
March 22, 2012
11:22 pm
Avatar
Eng_michel

Silver
Members
Forum Posts: 10
Member Since:
March 20, 2012
sp_UserOfflineSmall Offline

Well, thanks for so fast answer Hans!

I was already using #thingspeak as my hashtag, and it isn't working...

Is there any problem if I use #thingspeak as my hashtag trigger alert at tweetcontrol tab?

I did also tried using another hashtags but nothing.

I'm studying all the docs and trying to discover what is wrong.

However, if sbd find something wrong in my settings, please let me know!

PLEASE!!!!

Thank you

March 22, 2012
11:25 pm
Avatar
Eng_michel

Silver
Members
Forum Posts: 10
Member Since:
March 20, 2012
sp_UserOfflineSmall Offline

Tell me one thing, if I tweet:

 #crazyeth Red asdfg

where #crazyeth is my hastag alert, Red is the command for my arduino to turn on the red light and asdfg is a random string. 

what goes to field "1"?

Red, right?! 

March 22, 2012
11:30 pm
Avatar
Hans
Natick, MA

Admin
Forum Posts: 411
Member Since:
January 18, 2011
sp_UserOfflineSmall Offline

In your ThingHTTP settings, change Metodo to "POST" – I think that is your issue.

March 22, 2012
11:37 pm
Avatar
Hans
Natick, MA

Admin
Forum Posts: 411
Member Since:
January 18, 2011
sp_UserOfflineSmall Offline

You also do not need the login info in the ThingHTTP settings both Login and Senha. Delete both of those fields - you would use that if you needed to use basic authentication.

March 22, 2012
11:44 pm
Avatar
Eng_michel

Silver
Members
Forum Posts: 10
Member Since:
March 20, 2012
sp_UserOfflineSmall Offline

I changed it as u said. Results:

I saw that before changing, the serial output showed me an error always when I tweeted. It used to take some seconds (~10s) to give me an answer. 

Now it just gives me the error message ("no match") at the same time. No delay!

That's already something!!!!!!!

March 22, 2012
11:47 pm
Avatar
Eng_michel

Silver
Members
Forum Posts: 10
Member Since:
March 20, 2012
sp_UserOfflineSmall Offline

Ok.. I deleted login and password.. no changes..

March 22, 2012
11:51 pm
Avatar
Eng_michel

Silver
Members
Forum Posts: 10
Member Since:
March 20, 2012
sp_UserOfflineSmall Offline

What should I put on Channel 2013 > Field 1?

March 22, 2012
11:59 pm
Avatar
Hans
Natick, MA

Admin
Forum Posts: 411
Member Since:
January 18, 2011
sp_UserOfflineSmall Offline

Put field1=red (actually type out red). Since you are using #crazyeth as the trigger %%trigger%% is being linked to "#crazyeth". In this case, you will need to make seperate ThingHTTP requests for each command that you want to support, such as one for blue and green...

You're getting close...

March 23, 2012
12:07 am
Avatar
Eng_michel

Silver
Members
Forum Posts: 10
Member Since:
March 20, 2012
sp_UserOfflineSmall Offline

Really close man!! But no nice answer yet...

March 23, 2012
12:21 am
Avatar
Eng_michel

Silver
Members
Forum Posts: 10
Member Since:
March 20, 2012
sp_UserOfflineSmall Offline

On Thing HTTP settings, what should i write @:

- parameter field – Name and value (just before server)

- text to search (the last field)

sorry, but mine is in portuguese, so i''m not sure these are the right names.

March 23, 2012
1:19 am
Avatar
Hans
Natick, MA

Admin
Forum Posts: 411
Member Since:
January 18, 2011
sp_UserOfflineSmall Offline

Here are the only settings required:

URL: http://api.thingspeak.com/update

Método: POST

Corpo: key=*******&field1=red&status=%%status%%

March 27, 2012
5:38 pm
Avatar
Eng_michel

Silver
Members
Forum Posts: 10
Member Since:
March 20, 2012
sp_UserOfflineSmall Offline

Yay!! That's working!!!!!

I tried many things one of these days and it worked.. As i was too tired, i gone to sleep. The next morning I started modifying the arduino sketch and some settings.. stopped working! Tried to reverse.. nothing again!

Now I see that I unmarked "make public" (tornar público) on the channel settings…

That's why it was not working… Hans, we were really close!!!!

Thank you very much man!!

Now it is working… not that stable.. but works!! Just an arduino code problem…

For those who may want to know wich code I'm using: Cheerlights arduino ethernet sketch. Just deleted the codes related with GE Color Effect Light, since I'm not using it, but leds and a door lock.

 

Now this is the scene:

I tweet to my arduino to open my door. It opens, but as the field 1 still filled with the command, the arduino continues sending the command to open the door every 5 secs.

What I tried to do: attach both TweetControl sketch and Thing Tweet sketch, so when the arduino received the command, it should write "reset" (or any other thing different from the trigger) at the field 1.

So I did and something weird happened: One of the methods of ThingTweet sketch doesn't let the arduino read my channel's field 1!!

I've never seen nothing like this!!

I upload the TweetControl sketch and it works, but i upload the same sketch + "void updateThingSpeak(String tsData)" and it stops working…

Have anyone tried it before?! Do I need to open another topic ('cause of new problem)?

Ty guys! Ty Hans!

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:

JadeFloralde98, mgnthe54, Zain-Ul-Abidin, wellbeingcentresuk, Vamsi, frankmehlhop

Moderators: cstapels: 460

Administrators: Hans: 405, lee: 457