找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
楼主: 99010

(20160326)数码相框初步折腾

 火.. [复制链接]
发表于 2016-4-11 20:22 | 显示全部楼层
sehu 发表于 2016-4-1 11:47
获取天气数据的yahoo weather API接口变动,导致天气数据无法获取失败问题,最后,终于被我找到了最新的yah ...

请问去哪儿查找城市代码?谢谢
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2016-4-12 10:06 | 显示全部楼层
hiboyhiboyhiboy 发表于 2016-4-9 07:44
原数据链接失效,只能重构AQI数据了。
每小时运行一次脚本,图片能显示24小时内情况。

雅虎天气链接又失效了,能不能换个国内的天气预报api,速度还快点
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2016-4-12 10:15 | 显示全部楼层
天气和时间都不显示。。。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2016-4-12 10:16 | 显示全部楼层
不知道什么原因
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2016-4-12 10:45 | 显示全部楼层
harryke 发表于 2016-4-7 08:29
天气改成这样,但/usr/share/lcd4linux/mytheme/data/weather里的数据始终还是以前的,无变化。如果清空数 ...

你好,我手动执行脚本仍然不能获取数据,终端显示收不到数据,会是哪些问题呢?
wget -O /tmp/weather 'http://xml.weather.yahoo.com/forecastrss?w=2137085&u=c'
if [ $? = 0 ]; then
        cat /tmp/weather | grep '<yweather' | awk -F'"' 'BEGIN {C1=1;}{ \
                {if (substr($1, 11, 8)=="location") L1=$2} \
                {if (substr($1, 11, 4)=="wind") {L81=$2; L82=$4; L83=$6}} \
                {if (substr($1, 11, 10)=="atmosphere") { L91=$2; L92=$4; L93=$6; \
                {if($8=="0") L94="S"} {if($8=="1") L94="R"} {if($8=="2") L94="F"}}} \
                {if (substr($1, 11, 9)=="astronomy") {LA1=$2; LA2=$4}} \
                {if (substr($1, 11, 9)=="condition") {L2=$4; L3=$6"c"}} \
                {if (substr($1, 11, 8)=="forecast") {if (C1==1) {L4=$12;L5=$6"cdu"$8"c";C1=0} else {L6=$12;L7=$6"cdu"$8"c"}}}} \
                END \
                { while (length(L3) < 4) {L3="n"L3}; while (length(L5) < 10) {L5="n"L5}; while (length(L7) < 10) {L7="n"L7}; \
                i=index(LA1,":");Xss=substr(LA1,0,i) substr(LA1, i+1, 2); \
                i=index(LA2,":");Xse=substr(LA2,0,i) substr(LA2, i+1, 2);  \
                printf "%s\n%s\n%s\n%s\n%s\n%s\n%s\nLv.%s Dir.%s\042 %skm/h\nH.%s%% %skm %smb %s\nRise %s Set %s\n%s\n%s\n", \
                L1,L2,L3,L4,L5,L6,L7,L81,L82,L83,L91,L92,L93,L94,LA1,LA2,Xss,Xse}' \
                > /usr/share/lcd4linux/theme128/data/weather
else
         exit $?
fi

exit 0
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2016-4-12 10:49 | 显示全部楼层
南小鸟 发表于 2016-4-10 16:22
WIn环境下链接AIDA64的效果

求共享,822610608@qq.com
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2016-4-12 10:51 | 显示全部楼层
nekotora 发表于 2016-4-10 23:59
感谢楼上各位大神
求问 lcd4linux-dpf_r1184-2_ar71xx.ipk.rar 和 lcd4linux-dpf_r1200-2_ar71xx.ipk.rar  ...

.conf文件里的路径要修改,在最后几行。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2016-4-12 10:53 | 显示全部楼层
pandorbox系统貌似安装不上
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2016-4-12 12:22 来自手机 | 显示全部楼层
南小鸟 发表于 2016-4-10 16:22
WIn环境下链接AIDA64的效果

很好看啊,能不能共享配置啊40301073@qq.com
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2016-4-12 12:52 | 显示全部楼层
淡蛋但忧伤 发表于 2016-4-12 12:22
很好看啊,能不能共享配置啊40301073@qq.com

看我在板块发的帖
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2016-4-12 17:17 | 显示全部楼层
我只能试试啦
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2016-4-12 17:17 | 显示全部楼层
最新的xml开头的那个雅虎也挂掉了
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2016-4-12 22:13 | 显示全部楼层
买了,还在路上,先收藏了
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2016-4-12 22:44 | 显示全部楼层
IdealMe 发表于 2016-4-12 10:53
pandorbox系统貌似安装不上

我的貌似lcd4linux装上了,但是连接lcd时,提示port 错。

[root@PandoraBox:/tmp]#lcd4linux
openPort: error open
GPS PLUGIN, Error: openPort -1
[root@PandoraBox:/tmp]#lcd4linux -l
LCD4Linux 0.11.0-SVN-1158
Copyright (C) 2005, 2006, 2007, 2008, 2009 The LCD4Linux Team <lcd4linux-devel@users.sourceforge.net>

available display drivers:
   ASTUSB              : ASTUSB display interface
   FW8888              : Allnet-FW8888
   IRLCD               : USBtiny LCD controller
   LCD2USB             : LCD2USB homebrew USB interface for HD44780 text displays
   NULL                : NULL driver for testing purposes
   picoLCD             : picoLCD 20x2 Text LCD
   serdisplib          : OPTREX323 LSU7S1011A E08552 PCD8544 PCF8511 LPH7366 LPH7690 NOKIA7110 NEC21A LPH7508 HP12542R ERICSSONT2X ERICSSONR520 T6963 TLX1391 T6963SERMOD SED133X S1D13700 N3510I S1D15G10 KS0108 CTINCLUD LH155 SHARP240 OLED96X36X1 OLED96X64X16 OLED128X64X4 BL160128A 4DOLED282815 L4ME5I L4M132C GOLDELOX STV8105 DG16080 DG1608011
   SimpleLCD           : generic vt100
   T6963               : T6963
   USBHUB              : USBHUB
   USBLCD              : USBLCD
   VNC                 : vnc server

serdisplib: header version 1.97, library version 1.97, available sub-drivers:

display name        alias names           description
------------------  --------------------  -----------------------------------
   OPTREX323                              Optrex 323 display                 
   LSU7S1011A       ALPS                  ALPS display with display module kit by pollin
   E08552                                 EPSON E0855-2 display with display module kit by pollin
   PCD8544                                generic driver for PCD8544-based displays
   PCF8511                                generic driver for PCF8511-based displays
   LPH7366                                LPH7366 display with backlight     
   LPH7690                                LPH7690 display                    
   NOKIA7110        SED1565               Nokia 7110 display (SED1565-based)
   NEC21A           SKYPER                NEC 21a (Skyper) display module   
   LPH7508                                LPH7508 display module with display module kit by pollin
   HP12542R                               Hyundai HP12542R display module with display module kit by pollin
   ERICSSONT2X      E///T2X               Ericsson T20/T28/T29 i2c-displays  
   ERICSSONR520     E///R520,R520         Ericsson R520/T65 i2c-displays     
   T6963            T6963C                generic driver for T6963-based displays
   TLX1391                                Toshiba TLX1391 display (T6963-based)
   T6963SERMOD                            T6963-based display module with built-in parallel to serial converter
   SED133X          SED1330,SED1335       generic driver for SED1330/SED1335-based displays
   S1D13700                               generic driver for S1D13700-based displays
   N3510I           N3530                 driver for Nokia 3510i/3530 displays (S1D15G14-based)
   S1D15G10         N6100                 driver for Nokia 6100 and compliant displays (S1D15G10-based)
   KS0108                                 generic driver for KS0108-based displays
   CTINCLUD                               c't includ USB-display            
   LH155                                  generic driver for LH155-based displays
   SHARP240                               Sharp M078CKA 240x64 (LH155-based)
   OLED96X36X1                            Pictiva 96X36 OLED 1bit            
   OLED96X64X16                           Pictiva 96X64 colour OLED 16bit   
   OLED128X64X4                           Pictiva 128X64 yellow OLED 4bit   
   BL160128A                              Bolymin BL160128A colour OLED 18bit
   4DOLED282815     4DOLED128             4DOLED-282815 colour OLED 18bit   
   L4ME5I                                 linux4media USB-interface E-5i-USB
   L4M132C                                linux4media USB-interface w/ 132x65 colour display
   GOLDELOX         UOLED160,UOLED128     displays driven by GOLDELOX-MD1 module
   STV8105          OLED256X64X4          Pictiva 256X64 yellow OLED 4bit   
   DG16080                                DG-16080 160x80                    
   DG1608011                              DG-16080-11 160x80 (non-square pixels)

available plugins:
  cfg, math, string, test, time, cpuinfo, exec, event, gps, huawei, loadavg, meminfo, netdev, netinfo, ppp, proc_stat, uptime
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2016-4-12 23:49 | 显示全部楼层
我的相框到手了,学习学习。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

有疑问请添加管理员QQ86788181|手机版|小黑屋|Archiver|恩山无线论坛(常州市恩山计算机开发有限公司版权所有) ( 苏ICP备05084872号 )

GMT+8, 2024-4-25 10:15

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

| 江苏省互联网有害信息举报中心 举报信箱:js12377 | @jischina.com.cn 举报电话:025-88802724 本站不良内容举报信箱:68610888@qq.com 举报电话:0519-86695797

快速回复 返回顶部 返回列表