saberone / pimatic-smartmeter

Read energy usage data from a "smartmeter" through it's P1 port
MIT License
0 stars 6 forks source link

Problems with node 0.10.24 #14

Open sweebee opened 8 years ago

sweebee commented 8 years ago

Some people have problems with serialport 2.0.6 on the older node version. While for others it works fine.

Could you create a separate branch for pimatic 0.9.x ? and publish both to npm. One for pimatic 0.8 and one for 0.9.

0.8 needs serialport 1.4.5:

"dependencies": {
    "serialport": "~1.4.5"
  },
saberone commented 8 years ago

Ok will do the branching. But what about the separate npm package name? Maybe it's better to "upgrade" the default branch, and create a compatibility branch with pimatic-classic ;) as npm package name?

sweebee commented 8 years ago

Yes, there must be a separate branch for pimatic 0.8 in npm. So people on 0.8 will automatically get the "older" one and 0.9 users get the newer one. Like pimatic-homeduino, pimatic-ping does.

saberone commented 8 years ago

Hmm.. I made the branch and publish that version to npm as pimatic-smartmeter-old.

sweebee commented 8 years ago

Its possible to keep the same name. It knows which pimatic version it has and it will install automatically the right one. Don't ask me how to do it :P but sweetpi does the same with homeduino and ping. Maybe you can ask him.

mwittig commented 8 years ago

Suggested procedure:

Back on the master branch you can prepare a version with the fixed serialport version using the original package name, e.g. 0.0.17 and publish it as a normal version.