User Tools

Site Tools


setting_up_the_slave_umds

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
setting_up_the_slave_umds [2016/12/21 17:33] – [Edit getData File] walkeradminsetting_up_the_slave_umds [2016/12/21 17:48] – [Edit launchUMD File] walkeradmin
Line 144: Line 144:
 \\  \\ 
 \\  \\ 
-    sudo wget -q http://ipaddress/my_data.txt >null -O my_data.txt+To change the IP Address use:
 \\  \\ 
 +    sudo nano /home/pi/Python/getData
 \\  \\ 
 You could use HostNames, but I have found hostnames on Pi's pretty unreliable. You could use HostNames, but I have found hostnames on Pi's pretty unreliable.
Line 152: Line 153:
  
 ---- ----
-==== Raspi Config  ====+==== Edit launchUMD File  ==== 
 +\\  
 +The launchUMD file contains a link to the UMDisplay0x.py file 
 +\\  
 +<file> 
 +#!/bin/sh 
 +# launchUMD.sh 
 +# navigate to home directory, then to this directory then launch script 
 + 
 +cd / 
 +cd home/pi/Python 
 +sudo python UMDisplay01.py & 
 +cd / 
 +</file>   
 +\\  
 +This file needs to be edited so that the line <color blue>sudo python UMDisplay</color><color red>1</color><color blue>.py &</color> points to the correct UMD Device (so if this is your third UMD Device it needs to contain UMDisplay0<color red>3</color> 
 +\\  
 +    sudo nano launchUMD.sh 
 +\\  
 + 
 +---- 
 +==== Edit UMDsiplay0x File  ==== 
 +\\  
 +The UMDisplay0x file contains the code to write to the LCD. We do have to edit this file to tell it which of the two LCD lines to display from the my_data.txt file 
 +\\  
 +<file> 
 +# write line 1 and 2 to the LCD 
 +lcd_string(" " + line1,LCD_LINE_1) 
 +lcd_string(" " + line2,LCD_LINE_2) 
 +</file> 
 +\\  
 +<color red>Line1</color> refers to the line in the <color red>my_data.txt</color> file. So if this was UMD3, then you would want lines 5 and 6. so this would be: 
 +\\  
 +    lcd_string(" " + line5,LCD_LINE_1) 
 +    lcd_string(" " + line6,LCD_LINE_2) 
 +\\  
 +<color red>LCD_LINE_1</color> refers to the Line on the LCD (Line 1 is the top, line 2 is the bottom) 
 +\\  
 +\\  
 +Edit the UMDisplay0x.py file by using: 
 +\\  
 +    sudo nano /home/pi/Python/UMDisplay0x.py 
 +\\  
 + 
 +---- 
 + 
setting_up_the_slave_umds.txt · Last modified: 2023/03/09 22:35 by 127.0.0.1