[text] IOT_2

Viewer

  1. import urllib3
  2.  
  3. READ_API_KEY = '1292MQRFER6N1XD0'
  4. Channel_id = 2537500
  5.  
  6. http = urllib3.PoolManager()
  7.  
  8.  
  9. r1 = http.request('GET', f'https://api.thingspeak.com/channels/{Channel_id}/fields/1.json?results=2')
  10. print(r1.data)
  11.  
  12. r2 = http.request('GET', f'https://api.thingspeak.com/channels/{Channel_id}/fields/2.json?results=2')
  13. print(r2.data)
  14.  

Editor

You can edit this paste and save as new:


File Description
  • IOT_2
  • Paste Code
  • 06 May-2024
  • 351 Bytes
You can Share it: