Giter Site home page Giter Site logo

Linux终端如何显示图片 about wxbot HOT 6 CLOSED

liuwons avatar liuwons commented on June 24, 2024
Linux终端如何显示图片

from wxbot.

Comments (6)

liuwons avatar liuwons commented on June 24, 2024

@weaming 显示什么图片?二维码还是图片消息?二维码的话直接在terminal里打印,消息图片的话是以url的形式提供给用户的,用户自己下载处理。

from wxbot.

weaming avatar weaming commented on June 24, 2024

@liuwons 二维码打印不出来。

  • 希望增加功能:保存上次session相关数据,出错时手动启动时能先尝试上次会话的信息,避免再次登录。可增加时间间隔作一个预判。
  • Bug:经常出现Nonetype之类的错误,或者卡死情况,不一定是网速不好。

from wxbot.

liuwons avatar liuwons commented on June 24, 2024

@weaming 你用的哪个发行版的Linux,用的什么terminal?

  • 出错后再次扫码登录是必须,因为服务器端已经判定为下线了
  • NoneType的错误的确挺多,慢慢排查。卡死是sync时卡在POST请求那了,我在不同环境下测了感觉还是网络的原因。

from wxbot.

weaming avatar weaming commented on June 24, 2024

VPS cenos 6.6

/usr/bin/xdg-open: line 402: htmlview: command not found
/usr/bin/xdg-open: line 402: firefox: command not found
/usr/bin/xdg-open: line 402: mozilla: command not found
/usr/bin/xdg-open: line 402: netscape: command not found
/usr/bin/xdg-open: line 402: links: command not found
/usr/bin/xdg-open: line 402: lynx: command not found
xdg-open: no method available for opening 'qr.png'

就是那种因为卡住什么的必须重启的时候,或者出错然后重启的时候,这样也算下线?

from wxbot.

liuwons avatar liuwons commented on June 24, 2024

@weaming VPS上没有GUI环境所以打不开png图片?可以将VPS上的图片下载到本地打开扫描么。

卡住太长时间之后服务器端会因为长时间没有交互而判定客户端已下线。
出错后重启可以考虑利用上次保存的session,后面可以添加此功能。

from wxbot.

weaming avatar weaming commented on June 24, 2024

哈哈 麻烦。

from wxbot.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.