Giter VIP home page Giter VIP logo

Comments (12)

willemdh avatar willemdh commented on June 3, 2024 2

@ThomDietrich @dimon222
Ok, fixed the invader them today. Unless you guys give me a good reason not to update master with dev-willem in the next week I'm going into production.

from firemotd.

willemdh avatar willemdh commented on June 3, 2024

@dimon222 @ThomDietrich Seems like in Ubuntu you need to compile it :(

./configure && make && sudo make install

https://stedolan.github.io/jq/download/

This is kind of annoying I guess for everyone not using yum...,?

from firemotd.

ThomDietrich avatar ThomDietrich commented on June 3, 2024

Repository installation confirmed on Ubuntu 14.04 and Raspbian 8 (which I didn't expect).
No problems on my side.

from firemotd.

willemdh avatar willemdh commented on June 3, 2024

Can you post the full installation instructions for Ubuntu? Tx

from firemotd.

dimon222 avatar dimon222 commented on June 3, 2024

Debian (so should probably affect all the debian based builds) - available in official repo via
sudo apt-get install jq

image

from firemotd.

ThomDietrich avatar ThomDietrich commented on June 3, 2024

This will do

sudo apt install jq

With the focus on older systems @dimon222 's apt-get option might be safer

from firemotd.

willemdh avatar willemdh commented on June 3, 2024

@tavinus @ThomDietrich

Feel free to checkout dev-willem

Test run with sudo ./FireMotD -E

Output /var/tmp/FireJson.json:

{
  "version": {
    "Generated": "@logon",
    "Value": " 7.11.170608 ",
    "LastRun": "2017-07-11 16:19:05,835"
  },
  "hostname": {
    "Generated": "@logon",
    "Value": "n02.outsideit.net",
    "LastRun": "2017-07-11 16:19:05,835"
  },
  "hostip": {
    "Generated": "@logon",
    "Value": "172.104.134.172",
    "LastRun": "2017-07-11 16:19:05,835"
  }
}

So my plan is to build the json data file in steps. That way I can work on it when I have the time and the old method will keep working for some time.

More-utils is required too now in orde to use sponge. https://rentes.github.io/unix/utilities/2015/07/27/moreutils-package/

from firemotd.

ThomDietrich avatar ThomDietrich commented on June 3, 2024

Sounds good and going at it step by steps is reasonable! Way to go! 🎉

from firemotd.

willemdh avatar willemdh commented on June 3, 2024

@ThomDietrich @dimon222 Ok, forget what I said, I reworked the whole thing. No backwards compatibility, as it's just too much hassle. So most functionalities have been ported. All data is written to and read from the json file /var/tmp/FireMotD.json

Could you please test it and let me know what you think. I would want to push to master asap. Only the invader and the html theme haven't been ported yet. The rest should work. it contains a default json, my goal is to make this an external file in the near future, but for now it's hardcoded.

Start with running it at least once like this:

sudo ./FireMotD -S

Then run with

./FireMotD --Theme Modern

This means we can finally use sudo commands and gather even more information. Looking forward to your opinion.

from firemotd.

willemdh avatar willemdh commented on June 3, 2024

Did another commit with some bugfixes.

from firemotd.

ThomDietrich avatar ThomDietrich commented on June 3, 2024

Hey, I was a bit busy lately. The proposal and code I saw looked good and I'm sure you did a great job implementing and testing everything. I'll speak up if problems present themselves ;)

For me this will be interesting because I'll need to update the FireMotD routine in openHABian!

from firemotd.

willemdh avatar willemdh commented on June 3, 2024

Moved dev-willem to master. Closing this issue. Feel free to make new ones if you do encounter problems.

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.