Skip to content

Read data from Ruuvi sensor and publish on Venus OS D-Bus

License

Notifications You must be signed in to change notification settings

mpvader/dbus-ruuvi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dbus-ruuvi

Read data from Ruuvi sensor and publish on Venus OS D-Bus

Dependencies

There are currently two dependencies, and since this is all a bit hacked together as a proof of concept now, I simply took the folders I needed from the repos where I got it from:

Installation

Clone this repo, and the run more or less these commands on the commandline of the GX Device:

/opt/victronenergy/swupdate-scripts/resize2fs.sh
/opt/victronenergy/swupdate-scripts/set-feed.sh release
opkg update
opkg install python-terminal
opkg install python-resource

And then from your host, run:

scp -r -P 4000 ./dbus-ruuvi root@localhost:~/

Finally, back on the GX Device, make for a way to run this code at boot, or even better - as a service watched by daemontools.

Things to do

As said, this is merely a proof of concept. Even though it seems to run rather stable on the system where this all began since I needed to monitor a few temperatures.

Roughly what needs doing is:

  • Replace ext/velib_python by a proper submodule
  • Make it invalidate data if no more updates come in.
  • Support configuring a Custom name
  • Add publishing of humidity, battery level, motion and possible other data
  • Remove all the ruuvitag-sensor code, and replace by something more elegant. This starts hcidump as a process and parses its output.

And more work and outside of the Python scope: find a way to extend the range.

About

Read data from Ruuvi sensor and publish on Venus OS D-Bus

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages