Python Forum
appending variabl a URL for requests.post step
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
appending variabl a URL for requests.post step
#4
It has occurred to me that this is a long roundabout way of dissecting and reassembling a URL. Since I am not actually passing a variable to Tasker (such as a numeric value of temperature), I am simply relaying a state change (greater or less than a temperature). I could be just as easily creating a URL that has the "alert" populated at the end of the "base" for each possible condition. Since Tasker/Join/AutoRemote triggers on specific (sometimes case specific) keywords, it would be best if I only had it trigger on a few keywords.

Thank you to those who took the time to respond to this. While it is possible for this to work, it is waaaaay too much work on the other end to capture and react to the spectrum of the possible values returned as the "alert" variable. I shall be content with just having the pi react to threshold breaches and reporting them to the Android ecosystem that is my interface.
Reply


Messages In This Thread
RE: appending variabl a URL for requests.post step - by duckredbeard - Sep-05-2020, 01:14 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Can't log in with requests post LilDog 2 7,277 Mar-11-2019, 08:16 AM
Last Post: yourv3nom
  No route to host error when using requests.post in python on raspberry pi mariummalik22 0 4,790 Jan-06-2018, 08:34 PM
Last Post: mariummalik22

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020