ROBIN -  Open Source Mesh Network Forum Index ROBIN - Open Source Mesh Network
users community forum
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Different Splash Page Per Node

 
Post new topic   Reply to topic    ROBIN - Open Source Mesh Network Forum Index -> OrangeMesh Dashboard
View previous topic :: View next topic  
Author Message
Ads






Posted: Sun Aug 20, 2017 8:53 am    Post subject: Ads

Back to top
tprinty
User
User


Joined: 26 May 2009
Posts: 3

PostPosted: Tue May 26, 2009 11:26 pm    Post subject: Different Splash Page Per Node Reply with quote

Hello,

I was wondering if OrangeMesh supports a different splash page/redirect page per node.

I would like to be able to customize these pages based on the node the user connects to. Is something like this possible?

Thanks
-Tom Printy
Back to top
View user's profile Send private message
ispyisail
Site Admin
Site Admin


Joined: 12 Sep 2008
Posts: 4604
Location: New Zealand

PostPosted: Wed May 27, 2009 12:42 am    Post subject: Reply with quote

From my understanding, no

Not out of the box anyway
Back to top
View user's profile Send private message
tprinty
User
User


Joined: 26 May 2009
Posts: 3

PostPosted: Wed May 27, 2009 3:56 am    Post subject: Reply with quote

So If I wanted to add this feature should I wait for the new realease or should I go ahead an modify the current release?

Is this a feature that others would like?


Thanks
-Tom Printy
Back to top
View user's profile Send private message
koelneruwe
Intermediate User
Intermediate User


Joined: 09 Aug 2008
Posts: 97
Location: Cologne, Neubrandenburg

PostPosted: Wed May 27, 2009 5:18 am    Post subject: Reply with quote

YES! I would like it.
Back to top
View user's profile Send private message Visit poster's website
ispyisail
Site Admin
Site Admin


Joined: 12 Sep 2008
Posts: 4604
Location: New Zealand

PostPosted: Wed May 27, 2009 6:07 am    Post subject: Reply with quote

Quote:
So If I wanted to add this feature should I wait for the new realease or should I go ahead an modify the current release?


The source for the current test release has not been released yet.

Send you code to Antonio so he can include it in a future release
Back to top
View user's profile Send private message
shasan
Moderator
Moderator


Joined: 16 Feb 2008
Posts: 178
Location: Chapel Hill, NC

PostPosted: Thu May 28, 2009 1:47 am    Post subject: Reply with quote

Is it not possible to do that in Coova? I know for the basic splash (nodogsplash) it's a modification to the dashboard you'd need (I'd be happy to advise on how to make it work if you're interested). But I don't know if you'd need to do ROBIN modifications to make this work with a more sophisticated captive portal.

_________________

Only registered users can see links on this forum!
Register or Login on forum!


unc-chapel hill, class of 2010
Back to top
View user's profile Send private message Send e-mail Visit poster's website
funchip
Moderator
Moderator


Joined: 12 Sep 2008
Posts: 267
Location: Sacramento, California, USA

PostPosted: Sat May 30, 2009 2:36 am    Post subject: Reply with quote

In theory, it's possible with MeshConnect dashboard. You basically set the dashboard to the NoDogSplash mode ("Use Simple Access Control"), and power up the nodes one-by-one and load up a different splash page template each time.

After all the tamplates are loaded to the individual node, clear out the "Splash template URL" field on the dashboard. I believe whatever the template you loaded would stay. Keep the "Enable Splash" checked.

Now, the feature of splash page has not been well tested. So I can't say for sure the procedure will work. Feel free to give it a try, since it not too hard anyway.

Good luck. Smile
Back to top
View user's profile Send private message
tprinty
User
User


Joined: 26 May 2009
Posts: 3

PostPosted: Mon Jun 01, 2009 3:23 am    Post subject: Reply with quote

Ok so there is some interest in me doing this. I think I will take this on.

Here is what I envision:

On each node configuration screen I would like an option to create a new splash page or use the default splash page, and an option for a different redirect page or use the default one.

What software source should I plan to modify?

How should I submit my changes?

Thanks
-Tom Printy
Back to top
View user's profile Send private message
funchip
Moderator
Moderator


Joined: 12 Sep 2008
Posts: 267
Location: Sacramento, California, USA

PostPosted: Mon Jun 01, 2009 7:46 am    Post subject: Reply with quote

@tprinty, you may try on MeshConnect dashboard, go to "System Settings", under "Access Point 1 (Public) Settings", select "Use Simple Access Control". Check "Enable Splash" and fill the field "Splash template URL" with the address that your node can download the html from. Do this for one node a time.

To verify the result, SSH to the node, check if the template is downloaded and saved as /etc/nodogsplash/htdocs/splash.html

After having the templates downloaded to individual node, remove the entry of "Splash template URL". Then you may turn on all the nodes. The template html should stay as long as the "splash template URL" is empty on the dashboard.
Back to top
View user's profile Send private message
EricWarnke
Moderator
Moderator


Joined: 09 Jul 2008
Posts: 290
Location: Edmonton, AB, Canada and Santiago, Chile

PostPosted: Fri Jun 19, 2009 1:44 am    Post subject: Reply with quote

We just hacked something together but don't use it. Just write a custom.sh script to set the redirect URL to domainname.com/splash.php?id=[insert MAC] that way you can just tell your website which page to display based on MAC address.

_________________

Only registered users can see links on this forum!
Register or Login on forum!

|
Only registered users can see links on this forum!
Register or Login on forum!

Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
ispyisail
Site Admin
Site Admin


Joined: 12 Sep 2008
Posts: 4604
Location: New Zealand

PostPosted: Fri Jun 19, 2009 2:21 am    Post subject: Reply with quote

Quote:
We just hacked something together but don't use it. Just write a custom.sh script to set the redirect URL to domainname.com/splash.php?id=[insert MAC] that way you can just tell your website which page to display based on MAC address.


Can you leave us a copy of the full script?
Back to top
View user's profile Send private message
EricWarnke
Moderator
Moderator


Joined: 09 Jul 2008
Posts: 290
Location: Edmonton, AB, Canada and Santiago, Chile

PostPosted: Fri Jun 19, 2009 4:20 am    Post subject: Reply with quote

This is the custom.sh file. Please note that we had some problems with MD5 values being different and things not updating properly, however it theoretically works fine.

Code:
#!/bin/sh

# Custom rev 1

cd /tmp
wget -O per-node.sh http://free-wifi.ca/make-custom.php/per-node.sh?mac=`uci get node.general.myMAC`
wget -O custom-splash.html http://free-wifi.ca/make-custom-html.php/custom-splash.html?mac=`uci get node.general.myMAC`
chmod 755 per-node.sh

if [ -f /tmp/per-node.sh -a -s /tmp/per-node.sh ] ; then
  if [ -f /tmp/custom-splash.html -a -s /tmp/custom-splash.html ] ; then
    mv /tmp/custom-splash.html /etc/nodogsplash/htdocs/splash.html
  fi
  /tmp/per-node.sh
fi

_________________

Only registered users can see links on this forum!
Register or Login on forum!

|
Only registered users can see links on this forum!
Register or Login on forum!

Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    ROBIN - Open Source Mesh Network Forum Index -> OrangeMesh Dashboard All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
c d
e



Powered by phpBB © 2001, 2005 phpBB Group

Abuse - Report Abuse - TOS & Privacy.
Powered by forumup.it free forum, create your free forum! Created by Hyarbor & Qooqoa
Confirmed

Page generation time: 0.121