Detect client - Printable Version +- Logic Machine Forum (https://forum.logicmachine.net) +-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1) +--- Forum: Visualization (https://forum.logicmachine.net/forumdisplay.php?fid=9) +--- Thread: Detect client (/showthread.php?tid=822) |
Detect client - rocfusion - 01.06.2017 Hi, Is there a way to determine the client, ie an hostname or mac address? For example you have an iPad in each room, based on the hostname you could then display a specific page that contain lighting controls of that room. Thanks, Roger RE: Detect client - buuuudzik - 01.06.2017 You can create for every room different login and password and give it access only to for specified room page. RE: Detect client - Erwin van der Zwart - 01.06.2017 Hi Roger, Client information can only be received by a serverside call and is not available directly from browser information. This means you need a file on your system that you open and this can give you the client information. I use a .lp file for this, so if you want to do this it means you need to do it by some self created startpage app or change the content of the index.html and redirect from there to your .lp file and this .lp file can determine based on IP what page should be shown. I think i'ts easier to give every user a seperate acount and give acces to only there page. I requested a option to give each user a selectable startpage, but it's not there yet, so lets hope my request will be build in some day (: Sample of a .lp file that can do what you want: Code: <!DOCTYPE html> Erwin RE: Detect client - rocfusion - 01.06.2017 Thank you |