FullPageOS icon indicating copy to clipboard operation
FullPageOS copied to clipboard

How to set FullPageDashboard tabs

Open tailorvj opened this issue 9 years ago • 18 comments

Connect to http://fullpageos.local/FullPageDashboard/ from another computer on the same network and edit dashboard tabs as you wish, then restart the raspberry pi

You can set the time for each tab by clicking the timer icon on the top left

tailorvj avatar Jun 08 '16 11:06 tailorvj

What if you want to do this programatically? I see there is a urls.json file that gets read, but no idea where this JSON file is supossed to be placed...

dnadales avatar Jun 22 '17 12:06 dnadales

@capitanbatata YOu can edit urls.json, and it will only be considered in the first boot (So you need to edit it before you boot). Also there is an api script in php (which is not maintained)

guysoft avatar Jun 22 '17 14:06 guysoft

Thanks. The question is in which directory this file has to be placed (root?, /vat/www/?). And what is the format? I assume something like

[
{
  "title": "Some title",
  "url": "some url"
},
...
]

dnadales avatar Jun 22 '17 14:06 dnadales

I think from what you are describing you can just use /boot/fullpagedashboard.txt

guysoft avatar Jun 23 '17 21:06 guysoft

I'm confused. Can I just run multiple URLs on multiple lines to /boot/fullpagedashboard.txt or am I stuck with the clunky index.php created for FullPageDashboard - which shows a "tab" and doesn't show the pages at full size (resized) - instead showing a scrollbar on the right and a tab with the timer on the top corner.

esaruoho avatar Aug 11 '17 07:08 esaruoho

@esaruoho You can stop using FullPageDashbaord, or you can write better code for it.

guysoft avatar Aug 11 '17 09:08 guysoft

urls.json is in /var/www/html/FullPageDashboard/urls.json. Modify this file to directly control the multiple URLs displayed. Note that this file is created by FullPageDashboard.

According to @tailorvj above, you can set the time for each tab by clicking the timer icon on the top left. If you prefer, I saw in one of the JavaScript files that each page is displayed for 30 seconds. Search for "30" and replace this with the number of seconds you want.

jmcgeheeiv avatar Jun 21 '18 21:06 jmcgeheeiv

@guysoft May I ask if there is a way to have different URLs located at /boot/fullpageos.txt?

Also when adding another Tab on the FullPageDashboard, I am getting this error below. What could be the reason about it? Thanks. fullpage

thecuriouskid avatar Aug 08 '18 07:08 thecuriouskid

@thecuriouskid Please read the issue. Regarding your url. please provide it.

guysoft avatar Aug 08 '18 08:08 guysoft

@guysoft Sorry for the confusion. What I mean is that could I insert multiple URLs in /boot/fullpageos.txt and where they will be switching from time to time? Like this one below. fullpage1

thecuriouskid avatar Aug 08 '18 08:08 thecuriouskid

@thecuriouskid See https://github.com/guysoft/FullPageOS/issues/36#issuecomment-399247665 I says what you can do, its inside this issue. /boot/fullpageos.txt sets the main page, not the urls inside FullPageDashboard which controls the multiple tabs.

guysoft avatar Aug 08 '18 08:08 guysoft

@guysoft Yes, I understand that it should be under that one. But could it also be done at /boot/fullpageos.txt?

thecuriouskid avatar Aug 08 '18 08:08 thecuriouskid

No, that would make the configuration files ambiguous.

guysoft avatar Aug 08 '18 11:08 guysoft

I tried to display multiple URLs with FullPageDashboard. By editing /boot/fullpagedashboard.txt I got 404 - not found error. This for example http://www.google.com. With CTRL+T and entering the same address it works.

What might be the problem?

I also tried to modify /var/www/html/FullPageDashboard/urls.json, obviously it doesn't still work.

Displaying one external URL works fine with /boot/fullpageos.txt

Version is 2019-06-17_2019-04-08-fullpageos-stretch-lite-0.10.0

jarsiv avatar Jul 23 '19 09:07 jarsiv

@jarsiv Use the gui. done edit /boot/fullpagedashboard.txt , that only works on first boot

guysoft avatar Aug 05 '19 10:08 guysoft

@guysoft Can you please udpate the README.md with a clear documentation how to provision fullpageos with multiple URLs which gets cycled ? I think this is a very popular use case and even after reading this issue (after I found it) I'm still not sure how to do it properly (i.e. do the URLS need to get slashes escaped ?).

varac avatar Feb 07 '20 09:02 varac

@varac Yes that should be done and would close this old issue. BTW pull request are welcome, its not high priority here.

Tl;dr edit /boot/fullpagedashboard.txt and it only works on first boot.

guysoft avatar Feb 07 '20 10:02 guysoft

when you edit the fullpageos.txt and point it to the fullpagedashboard, make sure you type it in case correct, as it is case sensitive. Then you can browse to the site and add in the sites with the gui.

DarrylHodges avatar Jul 21 '23 11:07 DarrylHodges