Giter Club home page Giter Club logo

Comments (5)

enesbcs avatar enesbcs commented on July 19, 2024 1

I am afraid there are some more hidden bugs.. But thanks, this one closed.

from rpieasy.

enesbcs avatar enesbcs commented on July 19, 2024

It's interesting as "and" worked in my first testings.. could you switch Log level to Debug and see "Parsed condition" lines? I will check it today evening. /it's morning now here :) /
In fact "and" is not implemented by me, i am using the Python Eval() command to evaluate expressions. There must be some string related problems such as 0.00 is not equal to 0 or type mismatch. Could you add some detail about "station" and "auto"?

from rpieasy.

Budman1758 avatar Budman1758 commented on July 19, 2024

"Station" is a dummy device where I store values. The hours value is incremented up 1 every hour. After a set time this value is used to start the watering sequence. So [station#hours] is just a dummy value.
"Auto" is a switch connected to a PI GPIO. "auto" is the switch name and "switch" is the value name. So [auto#switch is simply a switch that is either 1 or 0. (input pullup) in the hardware settings.

192.168.1.62 Feb 11 22:35:00 RPIEasy kern debug Irrigation Parsed condition: if 48>47 and 0=0 False

Debug Developer Level. Above line is all that shows. I get that via syslog. I do not have serial connected. If need be I can set that up.

from rpieasy.

enesbcs avatar enesbcs commented on July 19, 2024

== is not equal to = in python.. using eval() is convenient choice, but equal signes needs to be converted back and forth.. i think it is fixed in commit 60ec0f8

from rpieasy.

Budman1758 avatar Budman1758 commented on July 19, 2024

Another bug seems to have been exterminated!!

from rpieasy.

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.