Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
mqtt plugin question
#10
An interesting thread!

I think one change that needs to happen in SIP is to modify the structure of the irrigation program data that SIP uses.

Right now it is based on the original OpenSprinkler Arduino code that SIP was originally ported from and was optimized to save space in the Arduino's limited memory.

I had started to convert the programs data structure to a Python dictionary so that each setting could be accessed by a key (eg "duration = 60" to set the duration to 60sec.) this would make it easy to change irrigation parameters on the fly.
That project got sidetracked a while back but I think I will get back on it. That would also make it possible to add new parameters from a plugin.

During the development of SIP I have avoided using a database to minimize writing to the SD card in order to prolong its life. Lately I have been looking at redis an in-memory database that has Python and Nodejs clients (among others) available to interface with it. It might be useful.
https://redis.io/

Version 4.0 and + specifically supports Raspberry Pi.

Dan
Reply


Messages In This Thread
mqtt plugin question - by astrogerard - 2017 May 21, 07:26 PM
RE: mqtt plugin question - by dan - 2017 May 21, 09:25 PM
RE: mqtt plugin question - by astrogerard - 2017 May 22, 11:23 AM
RE: mqtt plugin question - by dan - 2017 May 22, 08:24 PM
RE: mqtt plugin question - by astrogerard - 2018 Jan 04, 07:59 PM
RE: mqtt plugin question - by dmonty - 2018 Jan 11, 08:01 AM
RE: mqtt plugin question - by dan - 2018 Jan 05, 02:03 AM
RE: mqtt plugin question - by astrogerard - 2018 Jan 05, 08:50 AM
RE: mqtt plugin question - by astrogerard - 2018 Jan 17, 07:13 PM
RE: mqtt plugin question - by dan - 2018 Jan 18, 02:51 AM
RE: mqtt plugin question - by dmonty - 2018 Jan 18, 07:00 AM
RE: mqtt plugin question - by astrogerard - 2018 Jan 22, 03:35 PM
RE: mqtt plugin question - by dmonty - 2018 Jan 18, 08:44 AM
RE: mqtt plugin question - by dan - 2018 Jan 18, 05:24 PM
RE: mqtt plugin question - by dan - 2018 Jan 23, 03:35 PM

Forum Jump:


Users browsing this thread: 2 Guest(s)