Thingspeak

The ThingSpeak Service provides access to the ThingSpeak IoT analytics platform. For more information, check out https://thingspeak.com/.

Terms of use: https://thingspeak.com/pages/terms

RPCS

Thingspeak.channelDetails(id: Number)

Get various details about the channel, including location, fields, tags and name.

Arguments:

  • id: Number (Number) - channel ID

Returns: Object (Object) - Channel details.

Thingspeak.channelFeed(id: String, numResult: Number)

Get channel feed.

Arguments:

Thingspeak.privateChannelFeed(id: String, numResult: Number, apiKey: String)

Request data from a private channel

Arguments:

  • id: String (String) - ID of the private channel feed

  • numResult: Number (Number) - Number of results to fetch

  • apiKey: String (String) - Thingspeak API key

Thingspeak.searchByLocation(latitude: Latitude, longitude: Longitude, distance: BoundedNumber<0>?, limit: Number?, updatedSince: Date?)

Search for channels by location.

Arguments:

  • latitude: Latitude (Latitude) - latitude to search near

  • longitude: Longitude (Longitude) - longitude to search near

  • distance: BoundedNumber<0>? (BoundedNumber) - max distance from location in meters (default 100000 = 100Km)

  • limit: Number? (Number) - max number of results to return (default 15)

  • updatedSince: Date? (Date) - only include results which have (some) new data since this date (default no time-based filtering)

Returns: List<Object> (List | Object) - search results

Thingspeak.searchByTag(tag: String, limit: Number?, updatedSince: Date?)

Search for ThingSpeak channels by tag.

Arguments:

  • tag: String (String) - tag to search for

  • limit: Number? (Number) - max number of results to return (default 15)

  • updatedSince: Date? (Date) - only include results which have (some) new data since this date (default no time-based filtering)

Returns: List<Object> (List | Object) - search results

Thingspeak.searchByTagAndLocation(tag: String, latitude: Latitude, longitude: Longitude, distance: BoundedNumber<0>?, limit: Number?, updatedSince: Date?)

Search for channels by tag and location.

Arguments:

  • tag: String (String) - tag to search for

  • latitude: Latitude (Latitude) - latitude to search near

  • longitude: Longitude (Longitude) - longitude to search near

  • distance: BoundedNumber<0>? (BoundedNumber) - max distance from location in meters (default 100000 = 100Km)

  • limit: Number? (Number) - max number of results to return (default 15)

  • updatedSince: Date? (Date) - only include results which have (some) new data since this date (default no time-based filtering)

Returns: List<Object> (List | Object) - search results