Code Monkey home page Code Monkey logo

iskra-me162's People

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

tkorstanje xevxx

iskra-me162's Issues

Code won't start

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

if result[0] == id: doesn't work; if id in result[0] does.

if result[0] == id:

My IR output is like this:

['1-0:0.0.0255(73950935)',
'1-0:0.2.0
255(1.03)',
'0-0:C.1.0255(73950935)',
'0-0:C.1.6
255(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)',
'!']

Iskra -mt171

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.0
255(1.03)',
'0-0:C.1.0255(70107655)',
'0-0:C.1.6
255(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'

Error in calculating production

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.

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.