GithubHelp home page GithubHelp logo

sfeakes / sprinklerd Goto Github PK

View Code? Open in Web Editor NEW
25.0 6.0 5.0 7.71 MB

Sprinkler controller for use with home automation hubs, HomeKit & MQTT

License: Other

C 95.63% Makefile 0.24% C++ 0.71% Shell 1.46% HTML 1.95%
raspberypi mqtt-client sprinkler-controller sprinkler api smarthub home-automation

sprinklerd's People

Contributors

sfeakes avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

sprinklerd's Issues

MASTER_VALVE=0

I set on sprinklerd.config MASTER_VALVE=0 but the master relay still turning ON. This is normal?

Request future

I want be able to have push buttons to start watering manually. One button for each zone, push onence start watering,push one more time stop watering.

You think this is possible?

Thank you! :)

Web front end zones switch on but gui switch doesn't

When I click ON in the GUI the zone is turned on (pin is toggled) but the GUI shows off still. When the timer finishes there is no MQTT sent of zone turning off just timer complete is this the intended operation?

Just check with a LED on the GPIO no Power toggling on GPIO. Permissions?

Web service and sprinklerd stops working

Hi again Sean. Upon boot i am getting the error of duplicate UUID again:
image
Previously i have deleted all files in /accessories and /persist yet the problem resurfaces. Homebridge proceeds to start ok, sprinklerd as well. Scheduler starts the zones correctly, but when it gets to the last zone, it fails.. cant control via homebridge and cant access via browser. reboot gets it going again. other unusual part of boot is:
image

/etc/cron.d: scheduler appears to be working properly and cron writes changes that i make in the browser or via homebridge.
is it possible that other accessories when they get added obtain the same uuid?

Step by step raspberry pi and HomeKit

Hi thanks for developing this great sprinkler system! I be very happy if you can do step by step installation for raspberry pi and HomeKit. Plus if have YouTube video to. I don’t know much coding so be super super helpful for me. Thank you.

Error when triggering 24hr sprinkler delay Darkskys

Hi Sean,

Getting following error when triggering 24hr sprinkler delay Darkskys:

pi@raspberrypi:~/SprinklerD/extras $ sh sprinklerDarkskys.sh
sprinklerDarkskys.sh: 35: [: 0.29: unexpected operator
Probability of rain today is 29.00%sprinklerDarkskys.sh: 45: sprinklerDarkskys.sh: 0: not found

Installed bc and jq. Are there other ways to do it as Dark Sky is cutting all existing subscribers off at the end of 2021.

Wiring 8 channel 5v relays to Pi3b

Hi. Very keen to give this project a go. I have a Pi3b and was wondering what the wiring schematic should be? Also, if only powering 24v sprinkler solenoids do I need to connect external power to the relay board. A little confused 😐

Segfault when enabling MQTT

HI, I think I'm getting a segfault when MQTT is enabled.

The intHandler() is getting called at line 356 of sprinkler.c with a SEGFAULT signal. This only happens when I enable MQTT as follows:

10 # mqtt stuff (address and topic are mandatory if you want to use MQTT)
11 MQTT_ADDRESS = 192.168.1.19:1883
12 MQTT_USER = pi
13 MQTT_PASSWD = pi
14 MQT_TOPIC = sprinklerd

Any help appreciated. I'm happy to debug further.

Feature request

Would be perfect if the software allowed no usage of Rpi GPIO and only Domoticz IDX devices as switches (i guess it only supports triggering from Domoticz not to domoticz) . I have all valves controlled by Domoticz but this applications integrations against homekit is so much cleaner since it uses "valves"

Scheduling assistance

Hi. The schedule is accessible via the web browser and when i enter start times for each zone, the start time passes without the program starting the zones. fyi, i can see the zones and manually activate them via the browser.

cron.d file permissions

Hi!
My sprinklers weren't running on the schedule and I found the following error when checking: service cron status
cron[1072]: (*system*sprinklerd) INSECURE MODE (group/other writable) (/etc/cron.d/sprinklerd)

I found a fix by running: sudo chmod 644 /etc/cron.d/sprinklerd

I'm running on an RPI 4b with with RPI Raspberry Pi OS Lite image + manual install of home bridge & sprinklerd

NODEJS 13.9

Once upgraded to NodeJs 13.9, sprinklerd still starts, can still switch on/off the arduino relay board zones via the GPIOs, and the 'My Sprinklers' button illuminates in Homekit.
However, the individual zone buttons themselves no longer work and if manually triggered they display 'Idle'. this is also the case for 'run on calendar', and 'cycle all zones'.

Is there something that I need to recompile Sean or rebuild?
(had to upgrade NodeJS as other plugins needed later than 8.x)

need help on schedule

I did I clean install this week in 2 raspberry pizero.
Turn ON and OFF manually is working OK, but schedule not working in both PI.
I did:
sudo nano /etc/default/cron
#EXTRA_OPTS='-l' change to EXTRA_OPTS='-l'

upgrading to HB1.3.0 produces 'model' error on boot

[23/02/2021, 7:04:56 pm] [homebridge-sprinklerd] This plugin threw an error from the characteristic 'Model': Error: [Model] characteristic must have a length of more than 1 character otherwise HomeKit will reject this accessory. Ignoring new value.
at Characteristic.validateUserInput (/usr/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Characteristic.ts:1991:38)
at Characteristic. (/usr/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Characteristic.ts:1457:21)
at step (/usr/lib/node_modules/homebridge/node_modules/tslib/tslib.js:143:27)
at Object.next (/usr/lib/node_modules/homebridge/node_modules/tslib/tslib.js:124:57)
at /usr/lib/node_modules/homebridge/node_modules/tslib/tslib.js:117:75
at new Promise ()
at Object.__awaiter (/usr/lib/node_modules/homebridge/node_modules/tslib/tslib.js:113:16)
at Characteristic.handleGetRequest (/usr/lib/node_modules/homebridge/node_modules/hap-nodejs/dist/lib/Characteristic.js:632:24)
at Characteristic. (/usr/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Characteristic.ts:2127:22)
at step (/usr/lib/node_modules/homebridge/node_modules/tslib/tslib.js:143:27) See https://git.io/JtMGR for more info.

cycle all zones hangs: possible homebridge issue

Hi Sean,

Unusual activity in log, Sprinklerd didnt get beyond Zone3. What is rngd[398] referenced below? must be something that is interfering with Sprinklerd because its not the first time its happened. Funnily enough, if it doesnt occur, the 'cycle all zones'' manages to work though all zones successfully.

Feb 4 19:59:45 Homebridge sprinklerd: Turning on Zone 1
Feb 4 19:59:45 Homebridge sprinklerd: Turning on Zone 0
Feb 4 20:00:29 Homebridge vncserver-x11[426,root]: Connections: disconnected: 192.168.0.40::52980 (TCP) ([ViewerClosed] VNC Viewer closed)
Feb 4 20:00:45 Homebridge sprinklerd: Turning off Zone 1
Feb 4 20:00:45 Homebridge sprinklerd: Turning on Zone 2
Feb 4 20:01:45 Homebridge sprinklerd: Turning off Zone 2
Feb 4 20:01:45 Homebridge sprinklerd: Turning on Zone 3
Feb 4 20:04:16 Homebridge rngd[398]: stats: bits received from HRNG source: 80064
Feb 4 20:04:16 Homebridge rngd[398]: stats: bits sent to kernel pool: 34848
Feb 4 20:04:16 Homebridge rngd[398]: stats: entropy added to kernel pool: 34848
Feb 4 20:04:16 Homebridge rngd[398]: stats: FIPS 140-2 successes: 4
Feb 4 20:04:16 Homebridge rngd[398]: stats: FIPS 140-2 failures: 0
Feb 4 20:04:16 Homebridge rngd[398]: stats: FIPS 140-2(2001-10-10) Monobit: 0
Feb 4 20:04:16 Homebridge rngd[398]: stats: FIPS 140-2(2001-10-10) Poker: 0
Feb 4 20:04:16 Homebridge rngd[398]: stats: FIPS 140-2(2001-10-10) Runs: 0
Feb 4 20:04:16 Homebridge rngd[398]: stats: FIPS 140-2(2001-10-10) Long run: 0
Feb 4 20:04:16 Homebridge rngd[398]: stats: FIPS 140-2(2001-10-10) Continuous run: 0
Feb 4 20:04:16 Homebridge rngd[398]: stats: HRNG source speed: (min=645.960; avg=754.343; max=809.418)Kibits/s
Feb 4 20:04:16 Homebridge rngd[398]: stats: FIPS tests speed: (min=3.887; avg=5.806; max=7.112)Mibits/s
Feb 4 20:04:16 Homebridge rngd[398]: stats: Lowest ready-buffers level: 2
Feb 4 20:04:16 Homebridge rngd[398]: stats: Entropy starvations: 0
Feb 4 20:04:16 Homebridge rngd[398]: stats: Time spent starving for entropy: (min=0; avg=0.000; max=0)us
Feb 4 20:17:01 Homebridge CRON[2962]: (root) CMD ( cd / && run-parts --report /etc/cron.hourly)
Feb 4 21:04:16 Homebridge rngd[398]: stats: bits received from HRNG source: 120064
Feb 4 21:04:16 Homebridge rngd[398]: stats: bits sent to kernel pool: 64608
Feb 4 21:04:16 Homebridge rngd[398]: stats: entropy added to kernel pool: 64608
Feb 4 21:04:16 Homebridge rngd[398]: stats: FIPS 140-2 successes: 6
Feb 4 21:04:16 Homebridge rngd[398]: stats: FIPS 140-2 failures: 0
Feb 4 21:04:16 Homebridge rngd[398]: stats: FIPS 140-2(2001-10-10) Monobit: 0
Feb 4 21:04:16 Homebridge rngd[398]: stats: FIPS 140-2(2001-10-10) Poker: 0
Feb 4 21:04:16 Homebridge rngd[398]: stats: FIPS 140-2(2001-10-10) Runs: 0
Feb 4 21:04:16 Homebridge rngd[398]: stats: FIPS 140-2(2001-10-10) Long run: 0
Feb 4 21:04:16 Homebridge rngd[398]: stats: FIPS 140-2(2001-10-10) Continuous run: 0
Feb 4 21:04:16 Homebridge rngd[398]: stats: HRNG source speed: (min=645.960; avg=772.373; max=812.076)Kibits/s
Feb 4 21:04:16 Homebridge rngd[398]: stats: FIPS tests speed: (min=3.887; avg=6.174; max=7.112)Mibits/s
Feb 4 21:04:16 Homebridge rngd[398]: stats: Lowest ready-buffers level: 2
Feb 4 21:04:16 Homebridge rngd[398]: stats: Entropy starvations: 0
Feb 4 21:04:16 Homebridge rngd[398]: stats: Time spent starving for entropy: (min=0; avg=0.000; max=0)us

sorry for the stupid question

hi,
kind of noob so... sorry
my homebridge is on a pi server
my watering system is far away
if i got this right then all i have to do in the server is to install 3 packages and update the platform and its ip in the configuration file. is this right? this means that the server has no idea how much zones there are and he pulls that information from the pi that is connected to the valves.
did i get the architecture correct in my head?
thanks!!!

"Include in status"

It would be very handy to see the status of the sprinklers in the banner at the top of Homekit. Can the "My Sprinklers' button display its status or even better the individual zones?
thumbnail_IMG_2040

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.