"results" not working on thingspeak from GitHub | 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
"results" not working on thingspeak from GitHub
No permission to create posts
February 18, 2014
5:38 am
Avatar
fred
New Member
Members
Forum Posts: 3
Member Since:
February 18, 2014
sp_UserOfflineSmall Offline

Hello,

I've just installed the thingspeak iobridge from GitHub (https://github.com/other/thingspeak)

The "results" option doesn't appear in menu and doesn't work with HTTP POST (ie) :

http://127.0.0.1:3000/channels/1/charts/1?results=30&dynamic=true

The database log take into account the HTTP POST but seems to not compute the "result" option (?) :

started GET "/channels/1/charts/1?results=10&dynamic=true" for 127.0.0.1 at 2014-02-18 11:36:11 +0100
Processing by ChartsController#show as HTML
Parameters: {"results"=>"10", "dynamic"=>"true", "channel_id"=>"1", "id"=>"1"}
User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
Rendered charts/show.html.erb (0.3ms)
Completed 200 OK in 6ms (Views: 0.8ms | ActiveRecord: 0.2ms)

Many thanks

February 18, 2014
12:32 pm
Avatar
lee

Admin
Forum Posts: 457
Member Since:
March 14, 2011
sp_UserOfflineSmall Offline

Hi Fred,

I just tested this out on my end and everything works as expected:
SELECT created_at, entry_id, field1 FROM `feeds` WHERE `feeds`.`channel_id` = 1 AND (`feeds`.`created_at` BETWEEN '2010-01-01 05:00:00' AND '2014-02-18 17:27:52') ORDER BY created_at desc LIMIT 30

Can you try the following:
update your repository: `git pull origin master`
restart your server (control-c, `rails server`)
try opening the charts page again

lee

February 19, 2014
5:22 am
Avatar
fred
New Member
Members
Forum Posts: 3
Member Since:
February 18, 2014
sp_UserOfflineSmall Offline

Thank you, it works fine now :-)

Fred

Forum Timezone: America/New_York

Most Users Ever Online: 166

Currently Online:
29 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:

Advantagetreeexperts, laundrydaddyuk, techhhelp5, ken, tran, huldacormier

Moderators: cstapels: 460

Administrators: Hans: 405, lee: 457