Giter VIP home page Giter VIP logo

Comments (7)

willemdh avatar willemdh commented on June 15, 2024 1

@dirkclemens You need to configure the cronjob to get and store this information in FireMotD.json. The information you do see is generated at logon, the rest needs to be generated with a cronjob. (unless you edit the FireMotD.json yourself)

/usr/local/bin/FireMotD -S

Let me know how it goes.

from firemotd.

willemdh avatar willemdh commented on June 15, 2024 1

@mikechabot you can already define in the template when information is updated. Just put @LogON instead of @Cron check https://github.com/OutsideIT/FireMotD/blob/master/FireMotD-reference.json

from firemotd.

ThomDietrich avatar ThomDietrich commented on June 15, 2024

@willemdh to prevent this misunderstanding in future maybe it would be a good idea to show a warning when the json is old or missing?

from firemotd.

willemdh avatar willemdh commented on June 15, 2024

@ThomDietrich Good idea, I'll see about adding that. Also you need the packages moreutils and jq to make it work.

from firemotd.

mikechabot avatar mikechabot commented on June 15, 2024

+1 for the ability to dynamically generate the JSON during each run. Maybe a "-D" flag or something, although I understand it may not be super optimized.

I'm using a custom template to show a limited block of information on a 3.5" touchscreen.

############################################################
############################################################
## Ip -> 192.168.1.144
## Release -> Raspbian GNU/Linux 9 (stretch)
## Kernel -> Linux 4.14.34-v7+
## Platform -> Raspberry Pi 3 Model B Plus Rev 1.3
## Updates -> 18 apt updates available.
############################################################
############################################################

After running sudo apt-get update and sudo apt-get dist-upgrade, I was still shown the output above, although my IP had changed, and the packages had been updated.

I stumbled across this issue and /usr/local/bin/FireMotD -S did the trick:

############################################################
############################################################
## Ip -> 192.168.1.73
## Release -> Raspbian GNU/Linux 9 (stretch)
## Kernel -> Linux 4.14.34-v7+
## Platform -> Raspberry Pi 3 Model B Plus Rev 1.3
## Updates -> 0 apt updates available.
############################################################
############################################################

I wouldn't mind waiting N seconds for the file to generate before being displayed, just so long as its up-to-date 👍

Killer lib by the way!

from firemotd.

mikechabot avatar mikechabot commented on June 15, 2024

@willemdh Ugh, how'd I miss that. Awesome, tyvm.

from firemotd.

willemdh avatar willemdh commented on June 15, 2024

Closing this, a warning is shown when the exportfile is unexistant

from firemotd.

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.