Jump to content
Geoff_2

I need some help.

Recommended Posts

My solution will need more than js  but I thought this is probably the most relevant section to post into.

Background

In the house I have two Raspberry Pi's used for security monitoring, temperature monitoring and remote switching of hot water power supply. The Pi's use Python scripts and the interface to users is via database and local web pages. I used a lot of info from w3schools when putting together the web pages.

 

I have attached the two relevant .php pages currently used to switch power to hot water and a screen shot of their output. I wanted to add the option of timer control to the input and have tried some options adding radio buttons but am getting stuck at an early stage splitting the <form> into sections.

I have attached an image mock up of desired output. I wanted to change to have two radio buttons, with the relative input to the inactive radio button greyed out. I need to have a  variable I can write to the database indicating which radio button is active.

Any direction on how to achieve my target would be greatly appreciated.

Current.jpg

Draft1.jpg

hws.php hwsupdate.php

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...