Git Product home page Git Product logo

Comments (6)

TimEvWw avatar TimEvWw commented on July 18, 2024

The idea there is that the system waits for a refresh signal during one
minute (it's named 'refresh' because I use this method a lot to trigger
screen refreshes when new data arrives). If after one minute there is no
signal received, it will check the database to see if a command has been
received without setting the refresh flag. So that signal goes wrong. That
would explain it.

On Tue, Feb 24, 2015 at 4:11 AM, Rory Aronson [email protected]
wrote:

Hey @TimEvWw https://github.com/TimEvWw, Rick and I were messing with
the latest bot and found that commands had a delay of about a minute. We
looked into the controller source code and found this:

https://github.com/FarmBot/farmbot-raspberry-pi-controller/blob/bbc816cb80ad84150404a26872ff75660da93c42/lib/controller.rb#L128

Is there a reason the + 60 is there?


Reply to this email directly or view it on GitHub
#50.

from farmbot_os.

RickCarlino avatar RickCarlino commented on July 18, 2024

Do you think there will be any repercussions for lowering the number more, maybe to 1?

from farmbot_os.

TimEvWw avatar TimEvWw commented on July 18, 2024

Higher system load mainly. SQLite was a bit sluggish for continuous polling
for my taste (hence the refresh system) but it works as a quick fix.

On Tue, Feb 24, 2015 at 3:07 PM, Rick Carlino [email protected]
wrote:

Do you think there will be any repercussions for lowering the number
lower, like to 1?


Reply to this email directly or view it on GitHub
#50 (comment)
.

from farmbot_os.

roryaronson avatar roryaronson commented on July 18, 2024

Ok, so menu.rb is scheduling a command, but not setting the refresh flag?

I removed the +60 altogether locally and watched the CPU go to 85% haha

from farmbot_os.

TimEvWw avatar TimEvWw commented on July 18, 2024

I think that the setting of the flag was done in the same routine as writing of the command but it was lost in refactoring. Will check.

Op 24-feb.-2015 om 22:35 heeft Rory Aronson [email protected] het volgende geschreven:

Ok, so menu.rb is scheduling a command, but not setting the refresh flag?

I removed the +60 altogether locally and watched the CPU go to 85% haha


Reply to this email directly or view it on GitHub.

from farmbot_os.

TimEvWw avatar TimEvWw commented on July 18, 2024

Refresh is modified.

from farmbot_os.

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.