llagendijk / iskra-me162 Goto Github PK
View Code? Open in Web Editor NEWScript that feeds ME162 readings as a P1 meter to Domoticz
License: GNU General Public License v3.0
Script that feeds ME162 readings as a P1 meter to Domoticz
License: GNU General Public License v3.0
good evening,
the code won't start at a RPI 3
i'f got the following error code:
pi@HuisAutomatisering:~/iskra-me162 $ sudo iskra-me162
Traceback (most recent call last):
File "/usr/local/bin/iskra-me162", line 23, in
from parse import *
ImportError: No module named 'parse'
if i hash the :
from parse import *
from parse import compile
the program runs and display a Telegram from te ISKRA-MT174
but can not sent data to Domoticz.
what could i do to get the program running?
Greeds
Frank Hoogeveen
Line 63 in aa3d780
My IR output is like this:
['1-0:0.0.0255(73950935)',
'1-0:0.2.0255(1.03)',
'0-0:C.1.0255(73950935)',
'0-0:C.1.6255(FDF5)',
'1-0:1.8.0255(0019233.896kWh)',
'1-0:1.8.1255(0000000.000kWh)',
'1-0:1.8.2255(0019233.896kWh)',
'1-0:2.8.0255(0000000.000kWh)',
'1-0:2.8.1255(0000000.000kWh)',
'1-0:2.8.2255(0000000.000kWh)',
'0-0:F.F.0*255(0000000)',
'!']
im trying to run ur script aganst a iskra mt-171 but im getting this error:
Meter Reading failed at 2018-09-13 23:04:22 will continue
sleeping for 79 seconds
Open COM port /dev/ttyUSB0 at 300 baud
Send initialization: /?
Initialization done.
IR-baud = 300
Sent: 000
Datatransfer complete.
Number of received elements: 12
Array of received elements:
['1-0:0.0.0255(70107655)',
'1-0:0.2.0255(1.03)',
'0-0:C.1.0255(70107655)',
'0-0:C.1.6255(FDF5)',
'1-0:1.8.0255(0000138.662kWh)',
'1-0:1.8.1255(0000000.000kWh)',
'1-0:1.8.2255(0000138.662kWh)',
'1-0:2.8.0255(0000879.528kWh)',
'1-0:2.8.1255(0000000.000kWh)',
'1-0:2.8.2255(0000879.528kWh)',
'0-0:F.F.0*255(0000000)',
'!']
Telegram ontvangen op: 2018-09-13 23:05:53
Process new readings
Previous readings found, update domoticz
Traceback (most recent call last):
File "./iskra-me162", line 302, in
main()
File "./iskra-me162", line 293, in main
do_work()
File "./iskra-me162", line 258, in do_work
consumption = int((current_readings.total_usage - previous_readings.total_usage) / interval * 3600)
TypeError: unsupported operand type(s) for -: 'NoneType' and 'NoneType'
When using this (very useful!!) script for my Iskra ME-162, I found that I always get nill for the current production. I found that line 259 of the executable contains an error. It now reads:
production = int((current_readings.total_return - current_readings.total_return) / interval * 3600)
which by definition is nill. Obviously the second current_readings.total_return should be previous_readings.total_return. This should give the correct current production.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.