Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
blocks:app-note:world_clock [2020-11-03 09:19]
admin Minor tweaks and a link fix
blocks:app-note:world_clock [2022-06-22 19:06] (current)
admin removed atom references
Line 3: Line 3:
 This application note shows how to use a Web Block to show a reception-style world clock. The web page shown uses the local player's time, interpreted using multiple time zones. This applies Daylight Savings Time and GMT offset as appropriate. This application note shows how to use a Web Block to show a reception-style world clock. The web page shown uses the local player's time, interpreted using multiple time zones. This applies Daylight Savings Time and GMT offset as appropriate.
  
-:!: This script assumes your player's clock is set properly. Read more here on the use of [[:blocks#time_keeping_in_the_blocks_system| time in Blocks.]]+:!: This assumes your player's clock is set properly. 
  
 ===== Installation ===== ===== Installation =====
  
-First follow this [[blocks:app-note:start|general setup]]. Use this {{:blocks:app-note:world_clock:worldclock-root.zip|PIXILAB-Blocks-root}}, which contains all you need for this application note. Once that is done, follow these steps:+First follow this [[blocks:app-note:start|general setup]]. Use this {{ :blocks:app-note:world_clock:worldclock-root.zip |PIXILAB-Blocks-root}}, which contains all you need for this application note. Once that is done, follow these steps:
  
  
Line 15: Line 15:
   - Open a second browser window and type in the URL: http://localhost:8080/spot/. If this fails, you may be using a different port on your system. Check the URL bar of the editor window opened before to find the correct port number.   - Open a second browser window and type in the URL: http://localhost:8080/spot/. If this fails, you may be using a different port on your system. Check the URL bar of the editor window opened before to find the correct port number.
   - Locate the main display in the editor, double-click it and reassign it to the ID shown in the test spot window opened in the previous step.   - Locate the main display in the editor, double-click it and reassign it to the ID shown in the test spot window opened in the previous step.
-. 
  
 You should now see the world clock on the display spot.  You should now see the world clock on the display spot. 
Line 29: Line 28:
 ===== Configure locations ===== ===== Configure locations =====
  
-Open the root folder in Atom (or your favourite editorand open the /public/html/WorldClock/config.json file.+Open the root folder a [[blocks:drivers:tools|code editor]] and open the /public/html/WorldClock/config.json file.
  
 {{:blocks:app-note:world_clock:configtimezones.png?nolink&800|}} {{:blocks:app-note:world_clock:configtimezones.png?nolink&800|}}