Comments (10)
Original comment by Dennis Siemensma (Bitbucket: dennissiemensma, GitHub: dennissiemensma):
DsmrReading
's extra_device_timestamp
& extra_device_delivered
should be nullable.
from dsmr-reader.
This issue is required for @danielterhorst as he does not have a meter which supports gas readings.
from dsmr-reader.
@danielterhorst heb je toevallig een snapshot van je DSMR telegram?
Of mis je gewoon deze velden onderaan?
0-1:24.1.0(003)
0-1:96.1.0(xxxxxx-lang-id-van-meter-xxxxxxxxxxxxxxxxxx)
0-1:24.2.1(160229190000W)(01234.567*m3)
from dsmr-reader.
Altered database to allow nullable extra devices. Tests work fine now, after defaulting some values to None:
if with_gas:
data += [
"0-1:24.1.0(003)\n",
"0-1:96.1.0(xxxxxxxxxxxxx)\n",
"0-1:24.2.1(151110190000W)(00845.206*m3)\n",
"0-1:24.4.0(1)\n",
]
Next up are all the services expecting to have at least gas consumption tracked.
from dsmr-reader.
Refactored the tests a bit. Created separate fixtures without gas data, sub classed the tests and altered the fixtures, having them execute the same tests, with different data.
Any code depending on gas readings came forward. Although it's all just based on asumptions without a production example.
from dsmr-reader.
Added some checks to interface. Will continue later. Merged to default for now.
from dsmr-reader.
Flushing the database for checking whether the views run without data does not work for postgresql and mysql. I'll have to refactor that later, by just calling the model's .objects.all().delete()
instead of call_command
.
from dsmr-reader.
Fixed tests, as they failed for mysql & postgres when calling flush
, which wrapped an transaction inside another transaction and failed.
from dsmr-reader.
As the gas is now optional, technically, I think I'll close this one and have #70 as followup. Which points to the actual interface and capabilities regarding gas & electricity returned.
from dsmr-reader.
./test-all.sh
once again passes the tests for all backends supported.
Merged & deployed.
from dsmr-reader.
Related Issues (20)
- API not working 404: not found HOT 1
- Postgres14.5 en backup lokatie NAS , DSMR op PI probleem nu met backup file. HOT 5
- Mindergas upload tijd randomiseren ? HOT 3
- Tijd van upload naar minder gas instelbaar maken HOT 1
- Mqtt input messages for readings HOT 1
- Gebruik Influx URL i.p.v. Influx hostname + port combinatie HOT 1
- Database grootte waarschuwing HOT 1
- OperationalError: database is locked HOT 6
- Statistieken van afgelopen 365 dagen HOT 1
- MQTT: Rejecting message for topic due to maximum queue size (5000) HOT 2
- READ! MQTT Broker; no incoming data from DSMR Reader, fix! HOT 2
- Not able to configure dmsr-reader: CSRF verification failed. Request aborted. HOT 11
- "How to get Homewizard P1 meter telegrams into DSMR Reader using automations" HOT 5
- welke body meegeven in opsturen P1 telegram met V1 api http://[ip]/api/v1/datalogger/dsmrreading HOT 6
- Django settings ontsluiten via envvars
- geen data meer (??) HOT 6
- Too many outgoing InfluxDB measurements queued for transit HOT 3
- No readings after meter change HOT 2
- DSMR-reader not sending MQTT and lagging web server HOT 3
- [vraag] nieuwe meter, alles gereset HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dsmr-reader.