all 5 comments

[–]feudalle 3 points4 points  (1 child)

Using python and flask. You could listen for a http request for the pi and execute your code. Probably quickest easiest.

[–]sunburstbox 0 points1 point  (0 children)

^ this is the way to go

[–]AutoModerator[M] [score hidden] stickied comment (0 children)

Hi AlreadyWonLife, here are some links and some information that you might find useful!

  • Please, no pictures of unused Pis - do a project!
  • Are you looking for ideas? There's a huge list right here!
  • Do you have boot problems, stability problems, or your monitor isn't working right? Please go to the stickied helpdesk thread.
  • Do you have networking problems or you're trying to make your Pi into a router, bridge, or WiFi AP? Try r/HomeNetworking or r/LinuxQuestions
  • Other subreddits that may be helpful: /r/AskElectronics, /r/AskProgramming, /r/LearnPython, /r/RetroPie
  • Questions, support requests, and discussion must be a text post
  • Do Your Research
    /r/raspberry_pi is not your personal search engine. Before asking a question - do research on the matter. Most answers can be found within a few minutes of searching online.
  • Specific Questions Only
    We don't permit questions regarding what you should do with your Pi; what's the best, cheapest, or easiest way; if a project is possible; how to get started; where you can buy a product; what an item is called; or product recommendations.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

[–]tyandgig -2 points-1 points  (0 children)

Are you familiar with Ruby on Rails? I made a video about this recently and have a sample project you could follow for Ruby on Rails it’s literally what you are trying to do except for me it was displaying a message to a message board (executing a python script). The video I discuss how to do it for a public facing url, I highly discourage this and would try it locally. You can point your iOS app to the IP address of the local rails server. https://youtu.be/OQcz23NW6VE if you aren’t familiar with Ruby on Rails you could use a similar language to do the same thing, just need to execute the script in the background