Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Newbie help combining two scripts
#5
Quote:For some reason my-url/get-temp does not do anything
You should be able to get current temperature just by typing my-url/get-temp in browser.
Try fake temperature values instead, e.g.
self.wfile.write(json.dumps({'temp_c': 10, 'temp_f': 10}))
If this works, the problem in the block that getting temperature.
Reply


Messages In This Thread
Newbie help combining two scripts - by emuola - Oct-01-2020, 06:36 AM
RE: Newbie help combining two scripts - by scidam - Oct-01-2020, 07:50 AM
RE: Newbie help combining two scripts - by emuola - Oct-01-2020, 10:41 AM
RE: Newbie help combining two scripts - by emuola - Oct-01-2020, 01:45 PM
RE: Newbie help combining two scripts - by emuola - Oct-02-2020, 03:14 PM
RE: Newbie help combining two scripts - by scidam - Oct-02-2020, 10:27 AM
RE: Newbie help combining two scripts - by scidam - Oct-02-2020, 11:39 PM
RE: Newbie help combining two scripts - by emuola - Oct-03-2020, 09:30 AM
RE: Newbie help combining two scripts - by emuola - Oct-03-2020, 02:15 PM
RE: Newbie help combining two scripts - by scidam - Oct-03-2020, 11:45 AM
RE: Newbie help combining two scripts - by emuola - Oct-03-2020, 06:03 PM
RE: Newbie help combining two scripts - by emuola - Oct-04-2020, 07:50 AM
RE: Newbie help combining two scripts - by scidam - Oct-03-2020, 11:40 PM
RE: Newbie help combining two scripts - by scidam - Oct-04-2020, 12:09 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Combining 2 scripts wpothers 5 4,792 Feb-21-2017, 12:38 PM
Last Post: wavic

Forum Jump:

User Panel Messages

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