robinvdvleuten

robinvdvleuten

P1meter.dev - a LiveView powered virtual P1 smart meter simulator

I’ve been working on p1meter.dev (source: GitHub - mijnverbruik/p1meter.dev: Source behind p1meter.dev, the virtual P1 smart meter simulator · GitHub ), a small Phoenix LiveView project that provides a virtual smart meter P1 port for development and testing.

The idea is simple: if you are building software around Dutch or Belgian smart meters, home energy dashboards, DSMR parsing, P1 integrations, or TCP-based meter readers, you often need realistic telegram data. But having a physical smart meter, P1 cable, adapter, or test setup nearby is not always convenient.

p1meter.dev simulates a live DSMR 5.0 smart meter and streams telegrams over raw TCP.

You can try the live TCP stream with:

nc p1meter.dev 8080

The web interface shows a live preview of the simulated smart meter data, while the TCP endpoint emits the same kind of telegram stream that a P1 reader would receive.

The project itself is built with Phoenix LiveView. The simulated telegrams are generated using my dsmr package, which handles DSMR telegram data structures and formatting.

It is mainly useful for:

  • testing DSMR/P1 parsers without a real meter nearby

  • developing energy monitoring tools

  • experimenting with TCP-based P1 readers

  • demos, examples, and documentation

  • reproducing parser or integration issues with predictable input

The project is still intentionally small, but I’d like to keep improving it. Some things I’m considering:

  • more realistic usage patterns throughout the day

  • configurable meters or scenarios

  • support for more edge cases in telegram data

  • examples for consuming the stream from Elixir and other ecosystems

Feedback, ideas, bug reports, and contributions are very welcome.

Website:

Related DSMR package:

Repo:

Where Next?

Popular in Announcing Top

josevalim
Yes, yet another parser combinator library! Most of the parser combinators in the ecosystem are either compile-time, often using AST tra...
159 19103 141
New
seancribbs
Today I released a new dialyzer Mix task as the dialyzex package! At the time we started writing this task, the existing dialyzer integra...
New
mplatts
With HEEX released we decided to start a components library using Tailwind CSS - check it out here: Petal Components. We also have a boi...
New
Crowdhailer
I have been updating a library that allows you to pipe between functions that use the erlang result tuple convention. Assuming you have...
New
mbuhot
Leverage Open Api 3.0 (Swagger) to document, test, validate and explore your Plug and Phoenix APIs. Generate and serve a JSON Open API ...
New
bluzky
You may know https://ui.shadcn.com/, a UI component library for React. I really love it’s design style and components. I’ve built some co...
384 13673 119
New
hpopp
After just over two years in development, this latest version of Pigeon is what I finally consider done in regards to my original vision ...
New
Hal9000
Here is my first stab at this. README pasted below. https://github.com/Hal9000/elixir_random Comments and critiques are welcome. Th...
New
Qqwy
TypeCheck: Fast and flexible runtime type-checking for your Elixir projects. Core ideas Type- and function specifications are const...
336 14302 100
New
mattludwigs
Grizzly is a library for working with Z-Wave devices. Z-Wave is a low-frequency radio protocol for controlling smart home devices on a me...
New

Other popular topics Top

sen
Hi All, I set a environment variables in dev.exs , like below code. when i start server, how can i set the ${enable} value? thanks. d...
New
TunkShif
This post is an instruction guide to help you setup your Neovim for Elixir development from scratch. It includes general information on h...
274 41454 115
New
chrismccord
Phoenix 1.4.0 released Phoenix 1.4 is out! This release ships with exciting new features, most notably with HTTP2 support, improved deve...
688 30840 112
New
albydarned
Hello all! I am typing this post from my new MacBook Pro with the M1 chip. I’m loving it so far, and will probably use it as my daily dr...
New
lessless
I believe there are people here who are dealing with CSV files import on the daily basis, and since Excel is a really popular tool there ...
New
jononomo
I am trying to figure out how Mix knows whether the environment is test, dev, or prod -- where is this set? Thanks.
New
stefanluptak
Hello everybody, usually, I use a 29" ultra-wide monitor for VSCode which can easily accomodate explorer (files panel) + file with code ...
New
bsollish-terakeet
Credo is smart enough to check for (something like) this: assert length(the_list) == 0 with this response: Checking if an enum is empt...
New
WestKeys
Currently suffering from paralysis by [HTTP client] analysis. This is rather unusual in Elixirland as there tends to be consensus on the ...
New
openscript
Hello! Sorry for this astonishing simple question, but I’m really stuck. I try to set up the intellij-elixir plugin, but I don’t know ho...
New

We're in Beta

About us Mission Statement