Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

e.g. For Adding bg_color/bg_image , font face and font color for home screen  
      click on customer_theme_design -> click on insert  
      -> Add → menu_id : 1 
                    → bg_image : images/settings/settings-bg.png 
                    → bg_color : 0xff211d30 
                    → FontFace : bold
                   
→ text_fontColor : 0xff211d30 
                    →  customer_id : boxid(serial_number)  

TroubleShooting

To confirm the client-server setup is working as expected:

  1. Ensure firewall is disabled
  2. Try the following URL in the browser first and then try the same using curl command in the box.

Browser:
http://localhost:8080/CustomUI/getThemeConfig?customer_id=OEABAgME9i

Box:
curl http://<Server_ip>:<Server_port>/CustomUI/getThemeConfig?customer_id=OEABAgME9i

If you are not getting data in the box try: ping <Server_ip>

eg: root@mediabox:~# ping 192.168.18.3

        PING 192.168.18.3 (192.168.18.3): 56 data bytes

        64 bytes from 192.168.18.3: seq=0 ttl=128 time=35.467 ms

        64 bytes from 192.168.18.3: seq=1 ttl=128 time=2.238 ms

        64 bytes from 192.168.18.3: seq=2 ttl=128 time=2.214 ms

If Ping is success, try http://192.168.18.3:8080/CustomUI/getPosition?customer_id=O in the browser to get the corresopnding data.

["premium Apps","Recommended for you","metro Apps"]

Then try the curl for the same in the box:
~# curl http://192.168.18.3:8080/CustomUI/getPosition?customer_id=OEABAgME9i

     response:  ["premium Apps","Recommended for you","metro Apps"]

If you are getting the appropriate response for the curl, Then the client server connection is successful.

To get the corresponding customization changes in UI:

  1. Add the following in /opt/www/build/static/server/Serverconfig.json
    "Server_ip": ip address of the server machine in which the xampp server is setup
    Note: Ping to this ip should be successful as we tried in the previous step
    "Server_port": port of Tomcat server
  2. Add the following boxid in /opt/www/build/static/server/Serverconfig.json
    "serial_number": OEABAgME9i
  3. Reboot

The corresponding changes will be reflected in the Accelerator UI.