Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
mqtt plugin question
#11
Gerard: do you have a repository where your MQTT code resides or is it just local?

Dan: I completely agree that writes should be limited to prolong the life of the device.   I've been running some home automation software for a few years now.  All sensor data and graphs are stored in a compressed ramdisk (zram) and is synced up to a cloud several times per day.  If the device reboots it just downloads the last "cloud backup" back into zram disk and continues as normal.  ( more on zram at the end )

It appears to me that SIP will be a good platform to build on.  Environment data could be kept in small arrays in RAM.  Weather forecast, temperature, wind, soil moisture constantly change.  Gerald is right in that it will be the software logic that tie the data together.

I'll keep reading through the code to familiarize myself with the back-end of SIP.

==== zram ====
# if you are not worried about RAM size just use tmpfs /dev/shm.  If you need more ram-disk space use zram as follows:
modprobe zram num_devices=1
echo 10M > /sys/block/zram0/disksize
mkfs.ext2 /dev/zram0
mount /dev/zram0 /my_storage
#https://wiki.gentoo.org/wiki/Zram

Dean M.
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)