• Lew_For
  • NEWBIE
  • 0 Points
  • Member since 2014

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 2
    Replies
I have a Raspberry Pi setup as a web server, which can control power outlets. I currently just have a webpage which I can specify the device, amount of time,  on/off and a password. This is controlled using a Python script.

At first, I was just using variables in the URL, but now I have a simple, more user-friendly index page, which POSTs the variables to the same Python script.

But my end goal isn't to manually control the power from the webpage. I would like to use the REST API to automatically send a POST command to the Pi, to turn on a power outlet which has a light connected to it. So when a 'P1' case comes in from a client, Salesforce instantly turns a beacon light on in the office.

I know this is possible, and believe it should be faily straight forward now I have the POST setup, but I don't have much experience in programming, and none using APIs. I also don't have direct access to the Salesforce config side either, so I want to try and learn how everything works first before giving it to the admin.

I have done some research, but can only really find info on posting to Salesforce, rather than posting from Salesforce. We already have email alerts on new cases, so I don't think it could be too different from that.

Any ideas on where to start?
I have a Raspberry Pi setup as a web server, which can control power outlets. I currently just have a webpage which I can specify the device, amount of time,  on/off and a password. This is controlled using a Python script.

At first, I was just using variables in the URL, but now I have a simple, more user-friendly index page, which POSTs the variables to the same Python script.

But my end goal isn't to manually control the power from the webpage. I would like to use the REST API to automatically send a POST command to the Pi, to turn on a power outlet which has a light connected to it. So when a 'P1' case comes in from a client, Salesforce instantly turns a beacon light on in the office.

I know this is possible, and believe it should be faily straight forward now I have the POST setup, but I don't have much experience in programming, and none using APIs. I also don't have direct access to the Salesforce config side either, so I want to try and learn how everything works first before giving it to the admin.

I have done some research, but can only really find info on posting to Salesforce, rather than posting from Salesforce. We already have email alerts on new cases, so I don't think it could be too different from that.

Any ideas on where to start?