Coder Social home page Coder Social logo

dsmr-rs's Introduction

dsmr-rs

CI build

A utility tool to ship data from a smart energy meter over HTTP.

Running

Copy the sample SupervisorD configuration to /etc/supervisor/conf.d. Issue sudo supervisorctl reload followed by sudo supervisorctl start dsmr_native_logger.

Efficiency

The standard datalogger that ships with DSMR reader is written in Python.

Using sudo pmap <pid> | tail -n 1, its memory usage is reported as 37120K. This native logger uses only 14996K, a reduction of almost 60%.

Using ps aux | grep python3, CPU usage of the Python logger is reported between 1.5% and 3% on my Raspberry Pi 4. This native logger usually takes less than 1% of CPU time.

Development

Testing

Run tests with cargo t.

Building

Build a debug binary with cargo b. For a release binary, add --release.

If you want to run on a Raspberry Pi, you need to download the GNU Toolchain from ARM. Cross Compiling Rust for the Raspberry Pi explains the details for that. After that, add --target armv7-unknown-linux-gnueabihf to the above command.

dsmr-rs's People

Contributors

dependabot-preview[bot] avatar dependabot[bot] avatar mthmulders avatar

Watchers

 avatar

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.