在Shell脚本中显示xml文件中的图像

在Shell脚本中显示xml文件中的图像,shell,sed,Shell,Sed,我有一个shell脚本,可以捕捉天气,然后将其显示在我的raspberry pi上,但我想添加基于温度的图像。我有一些图片,只是不知道如何将其添加到shell脚本中。它使用sed从xml文件中获取数据。代码如下: #!/bin/sh echo Feeting Cambridge weather.. wget -O yw.htm http://weather.yahooapis.com/forecastrss?w=12779904\&u=f -o log.txt echo Processi

我有一个shell脚本,可以捕捉天气,然后将其显示在我的raspberry pi上,但我想添加基于温度的图像。我有一些图片,只是不知道如何将其添加到shell脚本中。它使用
sed
从xml文件中获取数据。代码如下:

#!/bin/sh
echo Feeting Cambridge weather..
wget -O yw.htm http://weather.yahooapis.com/forecastrss?w=12779904\&u=f -o log.txt
echo Processing..
grep -A4 -i 'Current' yw.htm > yw
sed '1d' yw > yw2
sed '2d' yw2 > yw
sed -i 's/<br \/>//g' yw
sed -i 's/<BR \/>//g' yw
sed -i 's/High/\nHigh/g' yw
echo `date` >> yw
echo Displaying..
sudo ./weather.py
echo Done

什么不起作用?您希望从
html
页面提取哪些数据?图像在哪里?它们与温度的关系如何?
python
脚本的作用是什么?您希望此图像显示在何处?我在photoshop中创建了图像,或者更好,如果您在代码中启动url,它会显示一些图像,我可以显示这些图像吗?您最好在python文件中执行大部分操作,包括基于一系列数字生成一个图像名称……我不知道如何使用xml文件,尽管我不擅长
os.system('netsurf file///home/pi/yw')