So im part of a school project trying to monitor an aquaponics system and for now we are trying to make a webhook to that thingspeak takes the information from the photon and puts it inot an app. we are testing things around with thingspeak but this hook-error keeps popping up. i followed the tutorial for making a webhook but made my own program to get the potentiometer readings from the photon to go to the thingspeak. this is my program:
#include <string.h>
int potPin = A0;
void setup(){
}
void loop() {
// Use analogRead to read the potentiometer reading
// This gives us a value from 0 to 4095
String pot = String(analogRead(potPin));
//Sends the information from pot onto the webhook into ThingSpeak
Particle.publish("pot", pot, PRIVATE);
delay(10000);
}
Your program is good, you just need to install the particle cli on your computer, then create a file ‘webhook.json’ and then at the command line execute: