Jump to content

door sign website (better way to change contents)

I have a raspberry pi on my door connected to an old laptop monitor. on startup I have the pi load a webpage in chromium kiosk mode.

 

I am trying to find the best way to code that webpage. Currently I have a github project and in order to change it I have to change the html of the page and then push my changes from my laptop

 

I am hosting the site on github sites so I can't add php becuse they dont have php exicution.

https://github.com/cTurtle98/doorsign

https://cturtle98.github.io/doorsign/

 

I was wondering if there is a way to make it so that I can go to a second page on the site on another device and input the message I want displayed into an html form and have it updated when i hit the submit button at the bottom of the form.

maybe this could be done with javascript? I had a version of the sign where instead of making different versions of the page and changing what one is diplayed with css (see code on github) i had the divs like in the template version and changed the contents of the div with javascript. (i never uploaded that version to github) 

 

basically I need a page I can go to on a secondary device and input somethign to a form that will become a javascript variable for the contents of my door sign and then live update the sign on my door. (it would be nice if i could have a login pop up like when you go to the web interface for your wifi router so that other people dont randomly change my door message)

cTurtle98 - Desktop

Spoiler

CPU: i7 7700k

COOLER: Thermaltake - Water 3.0 Extreme S
MOBO: Asrock z270 killer sli/ac

RAM: G.Skill Trident Z 32 GB (4 x 8 GB) DDR4-3200

SSD 1: Intel - 600p Series 1TB M.2-2280 (Windows)

SSD 2: Samsung 970 Evo 1 TB M.2-2280 NVME (POP_OS)

GPU: MSI - GTX 1070

PSU: EVGA - SuperNOVA G2 550W 80+ Gold Fully-Modular

CASE: Thermaltake - Versa H26

cTurtle98 - Portable PC

Spoiler

CPU: R5 1600

COOLER: NH-L9a-AM4

MOBO: ASRock - AB350 Gaming-ITX/ac

RAM: 16GB (2 x 8GB) Corsair - Vengeance LPX DDR4-3200

SSD 1: Intel - 600p Series 512 GB M.2-2280 (Windows)

SSD 2: 860 Evo 1 TB 2.5" (Manjaro)

SSD 3: PNY - CS1311 120 GB 2.5" (POP_OS)

GPU: Gigabyte GeForce GTX 1650 4 GB MINI ITX OC

PSU: HDPLEX 400 AC-DC DC-ATX Combo

CASE: NFC Skyreach 4 mini

 

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×