Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7973123
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T08:01:28+00:00 2026-06-04T08:01:28+00:00

I am trying have a set of python scripts report their status to a

  • 0

I am trying have a set of python scripts report their status to a set of micro controllers.

So my idea for this is to have the python scripts each create their own webpage that can be viewed by the micro controllers, but is there anyway to have the script itself keeping the page served, i.e. an apache library so that if the script crashes or is not running the page is not served or a way to make the page have a default value if the script is not running.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T08:01:30+00:00Added an answer on June 4, 2026 at 8:01 am

    You can also have a look at twisted.web

    A very basic example:

    from twisted.web.server     import Site
    from twisted.web.resource   import Resource
    from twisted.internet       import reactor
    
    class StatusPageResource(Resource):
        isLeaf           = True
    
        def __init__(self, param1):
            self.param1 = param1
            # Call the constructor of the super class
            Resource.__init__(self)
    
        def render_GET(self, request):
            return "<html><body>%s</body></html>" % self.param1
    
    
    my_res = Resource()
    my_res.putChild('GetStatusPage1', StatusPageResource(param1='abc'))
    my_res.putChild('GetStatusPage2', StatusPageResource(param1='xyz'))
    
    factory = Site(my_res)
    reactor.listenTCP(8080, factory)
    print 'Runnning on port 8080'
    reactor.run()
    

    Now point your browser to http://localhost:8080/GetStatusPage1 (for example)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a Python script and I am trying to set a variable so
I'm trying to have a site set up so when the page loads there
im trying to achieve something but i dont really know how I have set
I'm trying to use git behind a proxy and i have set up the
I'm trying to do the following: I have a set of images and select
Trying to learn about php's arrays today. I have a set of arrays like
I have been trying to set the value of a hidden input by using
I have been trying out the MoreLikeThis Bundle to bring back a set of
For while I have been trying to set the Page Scaling of Excel page
I'm trying to multithread something and i have my program set up such that

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.