3:19 pm
July 16, 2014

4:05 pm

Admin
March 14, 2011

Hi,
I just wrote a simple plugin that should allow you to get the channel ID depending on the channel page it exists on: https://thingspeak.com/plugins/4482 . Just view-source, and you should see the JavaScript code that should help you out.
lee
2:23 pm
July 16, 2014

2:33 pm

Admin
March 14, 2011

It's a little more complicated, but you could extract the API keys from a JSON list of your channels. Please see "List My Channels" under the documentation here: https://thingspeak.com/docs/channels#index .
lee
7:36 am

August 20, 2018

This is indeed possible by using that channel API call, although it only works for the plugins when the are embedded in the channel page (iframe). When you detach the plugin to display it into a separate window/tab, it doesn't have any reference to the channel anymore, so you'd need a fallback channel + api key. Here's an example.
You can get your User API key from Account > Profile (https://thingspeak.com/account/profile).
code here: https://pastebin.com/ikSCch3k
(couldn't find any way to post code to this forum without losing formatting)
Most Users Ever Online: 166
Currently Online:
33 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, huldacormierModerators: cstapels: 460
Administrators: Hans: 405, lee: 457