Comments (7)
@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.
@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.
@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.
@ThomDietrich Good idea, I'll see about adding that. Also you need the packages moreutils
and jq
to make it work.
from firemotd.
+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.
@willemdh Ugh, how'd I miss that. Awesome, tyvm.
from firemotd.
Closing this, a warning is shown when the exportfile is unexistant
from firemotd.
Related Issues (20)
- FireMotD v9.16.180717 fails to work after upgrading from v8.08.171007 HOT 5
- Slowness of themes based on theme files HOT 3
- Orange theme not there anymore HOT 1
- Advanced info only available through the 'Original' theme HOT 10
- after upgrade turn FireMotD slow on show up HOT 13
- Makefile issue line 42 HOT 3
- Error while reading the PostgreSQL version HOT 1
- Shellcheck Compliance HOT 2
- Kibana Version cache hardcoded HOT 1
- hostname is stil hardcoded in cache
- Feature request: Temperature reporting
- Feature Request: display available memory instead of used+buffers/cache
- Auto detect dnf
- Ubuntu 20.04 HOT 9
- Unable to parse ip
- "Uptime" gives the uptime at point in time of previous login HOT 1
- FireMotD takes very long to render system info HOT 11
- Highlighting noteworthy data HOT 3
- make uninstall do not remove the cron job HOT 4
- Fedora 27 - Unable to parse ip. Please debug HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from firemotd.