Web page interface software
Ron (2686) 63 posts |
Hello Thanks |
Dave Higton (1515) 3534 posts |
My central heating controller is on a Raspberry Pi, and has one main app, with two other apps that control the hardware (one does relays and a thermostat via GPIO, the other a communicates with a radio interface via Ethernet). I also run WebJames, which has several dynamic HTML pages, generated in BASIC in WebJames’s cgi-bin folder. When a web page needs to get any information or change any setting in the heating controller, the BASIC communicates wuth the controller’s main app via Wimp messages. Does that sound like an appropriate architecture for what you want to do? |
Ron (2686) 63 posts |
Hi Dave, yes, very much so. Can you give me a basic crash course on the html and cgi operation? Cheers |
Dave Higton (1515) 3534 posts |
HTML is a big topic. My best suggestion is to take an existing text-only web site (mine at http://davehigton.me.uk is text-only), choose an HTML tutorial website, and edit your copy of the HTML in accordance with what you learn and what features you want. Keep using an HTML validator to check that the HTML you have written is correct. CGI is really about generating HTML from BASIC. My best suggestion is to install WebJames on your computer and follow the tutorials that come with it. At this early stage in your learning, trial and error is important. You will likely write wrong stuff far more often than right, but that’s just the nature of the beast, so don’t be disheartened, don’t give up, just keep learning! |
Ron (2686) 63 posts |
Thanks, will do. Cheers |
Robin Hodson (438) 4 posts |
It could be easier to write it as an API server, which can grow with your needs. All it listens to are simple GET and maybe POST requests, with text output that isn’t even HTML. All the fancy stuff can be elsewhere, and it’s easier to use it in different applications. Typical GET request looks like: Typical output looks like: Or you could drop the complex JSON output, and just have: |