sfeakes / sprinklerd Goto Github PK
View Code? Open in Web Editor NEWSprinkler controller for use with home automation hubs, HomeKit & MQTT
License: Other
Sprinkler controller for use with home automation hubs, HomeKit & MQTT
License: Other
hi sean,
what version of node.js and npm does the plugin work with?
I set on sprinklerd.config MASTER_VALVE=0 but the master relay still turning ON. This is normal?
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! :)
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?
Hi for some reason when I use Run on calendar schedule the Zone 1 never start, the rest of the zones works fine.
Any idea how to fix or check that?
Hi again Sean. Upon boot i am getting the error of duplicate UUID again:
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:
/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?
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.
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.
Getting 404 errors on installing of homebridge-sprinklerd
npm ERR! 404 Not Found - GET https://registry.npmjs.org/homebridge-sprinklerd - Not found
Are you using aqualinkd for sprinklerd?
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 π
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.
We have installed the homebridge-sprinklerd plug in successfully and added the platform into config.json.
When we run homebridge it says that the platform sprinklerd is not linked to any plug in.
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"
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.
Zone 1 schedule not working after update the raspberry pi. Iβm trying to change how long watering but always back to 0 min.
I seem to have relay 8 out of commission as I have removed the jumper and wired the board to the pi as per you instructions. Relay 8 seems to be on at all times. What do you think I have done incorrectly?
Hi, would you entertain registering the plugin?
registry.npmjs.org is referenced by config-ui-x for updates to the plugin. be great if it were registered but i dont understand the work involved with that so hence the qn..?
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
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)
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'
how to update to the new version?
Hi have anyway to have time to set less than 5 min?
[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.
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
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!!!
Hi Sean,
Is it possible you could edit the sprinklerDarkskys.sh to work with Openweather? Instead of "precipProbability" they present chance of rain as "pop" and the URL is slightly different too:
https://api.openweathermap.org/data/2.5/forecast?q=Melbourne,AU&appid=123456abcd
vs
https://api.darksky.net/forecast/"$darkskyAPI"/"$location
A declarative, efficient, and flexible JavaScript library for building user interfaces.
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. πππ
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google β€οΈ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.